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

This commit is contained in:
sjplimp
2016-08-03 19:32:03 +00:00
parent 1f6518400e
commit efaa84a4ea
6 changed files with 149 additions and 9 deletions

View File

@ -145,6 +145,7 @@ bool System::ReadIn(istream& in){
in >> body1 >> body2;
if( !(body1<numbodies) || !(body2<numbodies) ){
cerr << "Body index out of range" << endl;
delete [] bodyarray;
return false;
}
@ -159,6 +160,7 @@ bool System::ReadIn(istream& in){
// read in the rest of its data
if(!joint->ReadIn(in)){
delete [] bodyarray;
return false;
}
}