File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/rascal/structure_managers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ namespace rascal {
152
152
int get_atom_type (int atom_tag) const {
153
153
// lammps atom types go from 1 to N, so we map it to rascal atom types
154
154
// by mapping 0 to N-1 to the corresponding number
155
- return this ->atom_types [this ->type [this -> get_atom_index ( atom_tag) ]-1 ];
155
+ return this ->atom_types [this ->type [atom_tag]-1 ];
156
156
}
157
157
158
158
// ! return number of I atoms in the list
@@ -193,7 +193,7 @@ namespace rascal {
193
193
}
194
194
195
195
int get_atom_index (int atom_tag) const {
196
- return this ->atom_index_from_atom_tag_list . at ( atom_tag) ;
196
+ return this ->atom_index_from_atom_tag_list [ atom_tag] ;
197
197
}
198
198
199
199
/* *
@@ -270,7 +270,7 @@ namespace rascal {
270
270
int ** firstneigh{}; // !< pointer to first neighbour
271
271
double ** x{}; // !< atomic positions
272
272
double ** f{}; // !< atomic forces
273
- int * type{}; // !< atom types
273
+ int * type{}; // !< lammps atom types
274
274
double * eatom{}; // !< energy of atoms
275
275
double ** vatom{}; // !< virial stress of atoms
276
276
int nb_pairs{}; // ! number of clusters with cluster_size=2 (pairs)
You can’t perform that action at this time.
0 commit comments