diff --git a/examples/rerun/in.rerun b/examples/rerun/in.rerun index 4d498835f6..44b8951542 100644 --- a/examples/rerun/in.rerun +++ b/examples/rerun/in.rerun @@ -55,11 +55,11 @@ thermo 1 run 0 -read_dump dump.xyz 0 x y z format xyz box no +read_dump dump.xyz 1 x y z format xyz box no run 0 pre yes post no -read_dump dump.melt 250 x y z format native box yes +read_dump dump.melt 50 x y z format native box yes run 0 pre yes post no diff --git a/src/read_dump.cpp b/src/read_dump.cpp index 33031587b2..ffcc7f0d2d 100644 --- a/src/read_dump.cpp +++ b/src/read_dump.cpp @@ -733,9 +733,8 @@ void ReadDump::process_atoms(int n) MPI_Allreduce(ucflag,ucflag_all,n,MPI_INT,MPI_SUM,world); int nlocal_previous = atom->nlocal; - double lamda[3],one[3]; - double *coord; - + double one[3]; + for (i = 0; i < n; i++) { if (ucflag_all[i]) continue; diff --git a/src/reader_native.cpp b/src/reader_native.cpp index a32c883abb..85dc19dfe9 100644 --- a/src/reader_native.cpp +++ b/src/reader_native.cpp @@ -279,7 +279,7 @@ void ReaderNative::read_atoms(int n, int nfield, double **fields) int i,m; char *eof; - for (int i = 0; i < n; i++) { + for (i = 0; i < n; i++) { eof = fgets(line,MAXLINE,fp); if (eof == NULL) error->one(FLERR,"Unexpected end of dump file");