small bug fixes

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15527 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
sjplimp
2016-08-31 20:26:15 +00:00
parent e3d0a32272
commit 083ff54c0c
34 changed files with 91 additions and 66 deletions

View File

@ -911,6 +911,7 @@ void Modify::delete_fix(const char *id)
int Modify::find_fix(const char *id)
{
if(id==NULL) return -1;
int ifix;
for (ifix = 0; ifix < nfix; ifix++)
if (strcmp(id,fix[ifix]->id) == 0) break;
@ -1040,6 +1041,7 @@ void Modify::delete_compute(const char *id)
int Modify::find_compute(const char *id)
{
if(id==NULL) return -1;
int icompute;
for (icompute = 0; icompute < ncompute; icompute++)
if (strcmp(id,compute[icompute]->id) == 0) break;