diff --git a/src/reader.h b/src/reader.h index 4b75c953cc..541fa7a8d9 100644 --- a/src/reader.h +++ b/src/reader.h @@ -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 *); diff --git a/src/reader_native.cpp b/src/reader_native.cpp index 840813dab3..567f37a0a0 100644 --- a/src/reader_native.cpp +++ b/src/reader_native.cpp @@ -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