improve detection of triclinic box trajectory files

This commit is contained in:
Axel Kohlmeyer
2024-07-25 16:59:41 -04:00
parent ff27bb8865
commit 26503c948a

View File

@ -254,7 +254,7 @@ bigint ReaderNative::read_header(double box[3][3], int &boxinfo, int &triclinic,
triclinic = 0;
box[0][2] = box[1][2] = box[2][2] = 0.0;
read_lines(1);
if (line[strlen("ITEM: BOX BOUNDS ")] == 'x') triclinic = 1;
if (utils::strmatch(line,"ITEM: BOX BOUNDS.*xy\\s+xz\\s+yz")) triclinic = 1;
try {
read_lines(1);