git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12979 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2015-01-20 23:25:40 +00:00
parent 1833a9abc4
commit e59417b0f7
11 changed files with 26 additions and 15 deletions

View File

@ -21,6 +21,7 @@
#include "atom.h"
#include "memory.h"
#include "error.h"
#include "force.h"
using namespace LAMMPS_NS;
@ -58,7 +59,7 @@ int ReaderXYZ::read_time(bigint &ntimestep)
// first line has to have the number of atoms
natoms = ATOBIGINT(line);
natoms = force->bnumeric(FLERR,line);
if (natoms < 1)
error->one(FLERR,"Dump file is incorrectly formatted");