This commit is contained in:
Axel Kohlmeyer
2025-06-12 22:34:56 -04:00
parent 3052bc7f4c
commit dcf604875c
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ namespace LAMMPS_NS {
class Reader : protected Pointers {
public:
enum { ID, TYPE, X, Y, Z, VX, VY, VZ, Q, APIP_LAMBDA, IX, IY, IZ, FX, FY, FZ };
enum { ID, TYPE, X, Y, Z, VX, VY, VZ, Q, IX, IY, IZ, FX, FY, FZ, APIP_LAMBDA };
enum { UNSET, NOSCALE_NOWRAP, NOSCALE_WRAP, SCALE_NOWRAP, SCALE_WRAP };
Reader(class LAMMPS *);

View File

@ -413,15 +413,15 @@ bigint ReaderNative::read_header(double box[3][3], int &boxinfo, int &triclinic,
else if (fieldtype[i] == Q)
fieldindex[i] = find_label("q", labels);
else if (fieldtype[i] == APIP_LAMBDA)
fieldindex[i] = find_label("apip_lambda", labels);
else if (fieldtype[i] == IX)
fieldindex[i] = find_label("ix", labels);
else if (fieldtype[i] == IY)
fieldindex[i] = find_label("iy", labels);
else if (fieldtype[i] == IZ)
fieldindex[i] = find_label("iz", labels);
else if (fieldtype[i] == APIP_LAMBDA)
fieldindex[i] = find_label("apip_lambda", labels);
}
// set fieldflag = -1 if any unfound fields