From 26503c948a5ae0e15f829902bf6aef2bf0d950fb Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 25 Jul 2024 16:59:41 -0400 Subject: [PATCH] improve detection of triclinic box trajectory files --- src/reader_native.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader_native.cpp b/src/reader_native.cpp index 4dac65e3cb..10d16ac859 100644 --- a/src/reader_native.cpp +++ b/src/reader_native.cpp @@ -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);