Commit 6f67266
authored
[lammps] Fix handling types when restoring (#344)
For LAMMPS, only unique masses are stored, instead the mass "type" of each particle is stored, and the mass of the `i`th particle can be retrieved as `masses[types][i]`. For this reason we store `(masses, types)` in place of a `masses`, this requires special handling when restoring which we missed initially. Fixing it here.1 parent 5f5bfc7 commit 6f67266
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
| |||
166 | 176 | | |
167 | 177 | | |
168 | 178 | | |
169 | | - | |
| 179 | + | |
170 | 180 | | |
171 | 181 | | |
172 | 182 | | |
| |||
0 commit comments