diff --git a/src/reader_native.cpp b/src/reader_native.cpp index dd1a032bda..b029b2fe37 100644 --- a/src/reader_native.cpp +++ b/src/reader_native.cpp @@ -486,10 +486,9 @@ void ReaderNative::read_atoms(int n, int nfield, double **fields) iatom_chunk++; - // hit the end of current chunk - if (iatom_chunk == natom_chunk) - { - iatom_chunk = 0; + // hit the end of current chunk + if (iatom_chunk == natom_chunk) { + iatom_chunk = 0; ichunk++; } }