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

This commit is contained in:
sjplimp
2014-12-12 00:20:19 +00:00
parent 11d54badb4
commit 1af7b06052
8 changed files with 15 additions and 15 deletions

View File

@ -438,7 +438,7 @@ AtomVec *Atom::new_avec(const char *style, int trysuffix, int &sflag)
#include "style_atom.h" #include "style_atom.h"
#undef ATOM_CLASS #undef ATOM_CLASS
else error->all(FLERR,"Invalid atom style"); else error->all(FLERR,"Unknown atom style");
return NULL; return NULL;
} }

View File

@ -92,7 +92,7 @@ void AtomVecBody::process_args(int narg, char **arg)
#undef BodyStyle #undef BodyStyle
#undef BODY_CLASS #undef BODY_CLASS
else error->all(FLERR,"Invalid body style"); else error->all(FLERR,"Unknown body style");
bptr->avec = this; bptr->avec = this;
icp = bptr->icp; icp = bptr->icp;

View File

@ -1424,7 +1424,7 @@ void Domain::add_region(int narg, char **arg)
// create the Region // create the Region
if (strcmp(arg[1],"none") == 0) error->all(FLERR,"Invalid region style"); if (strcmp(arg[1],"none") == 0) error->all(FLERR,"Unknown region style");
#define REGION_CLASS #define REGION_CLASS
#define RegionStyle(key,Class) \ #define RegionStyle(key,Class) \
@ -1433,7 +1433,7 @@ void Domain::add_region(int narg, char **arg)
#include "style_region.h" #include "style_region.h"
#undef REGION_CLASS #undef REGION_CLASS
else error->all(FLERR,"Invalid region style"); else error->all(FLERR,"Unknown region style");
// initialize any region variables via init() // initialize any region variables via init()
// in case region is used between runs, e.g. to print a variable // in case region is used between runs, e.g. to print a variable

View File

@ -173,7 +173,7 @@ Pair *Force::new_pair(const char *style, int trysuffix, int &sflag)
return pair_creator(lmp); return pair_creator(lmp);
} }
error->all(FLERR,"Invalid pair style"); error->all(FLERR,"Unknown pair style");
return NULL; return NULL;
} }
@ -288,7 +288,7 @@ Bond *Force::new_bond(const char *style, int trysuffix, int &sflag)
#include "style_bond.h" #include "style_bond.h"
#undef BOND_CLASS #undef BOND_CLASS
else error->all(FLERR,"Invalid bond style"); else error->all(FLERR,"Unknown bond style");
return NULL; return NULL;
} }
@ -368,7 +368,7 @@ Angle *Force::new_angle(const char *style, int trysuffix, int &sflag)
#include "style_angle.h" #include "style_angle.h"
#undef ANGLE_CLASS #undef ANGLE_CLASS
else error->all(FLERR,"Invalid angle style"); else error->all(FLERR,"Unknown angle style");
return NULL; return NULL;
} }
@ -434,7 +434,7 @@ Dihedral *Force::new_dihedral(const char *style, int trysuffix, int &sflag)
#undef DihedralStyle #undef DihedralStyle
#undef DIHEDRAL_CLASS #undef DIHEDRAL_CLASS
else error->all(FLERR,"Invalid dihedral style"); else error->all(FLERR,"Unknown dihedral style");
return NULL; return NULL;
} }
@ -499,7 +499,7 @@ Improper *Force::new_improper(const char *style, int trysuffix, int &sflag)
#include "style_improper.h" #include "style_improper.h"
#undef IMPROPER_CLASS #undef IMPROPER_CLASS
else error->all(FLERR,"Invalid improper style"); else error->all(FLERR,"Unknown improper style");
return NULL; return NULL;
} }
@ -583,7 +583,7 @@ KSpace *Force::new_kspace(int narg, char **arg, int trysuffix, int &sflag)
#include "style_kspace.h" #include "style_kspace.h"
#undef KSPACE_CLASS #undef KSPACE_CLASS
else error->all(FLERR,"Invalid kspace style"); else error->all(FLERR,"Unknown kspace style");
return NULL; return NULL;
} }

View File

@ -759,7 +759,7 @@ void Modify::add_fix(int narg, char **arg, int trysuffix)
fix[ifix] = fix_creator(lmp,narg,arg); fix[ifix] = fix_creator(lmp,narg,arg);
} }
if (fix[ifix] == NULL) error->all(FLERR,"Invalid fix style"); if (fix[ifix] == NULL) error->all(FLERR,"Unknown fix style");
// check if Fix is in restart_global list // check if Fix is in restart_global list
// if yes, pass state info to the Fix so it can reset itself // if yes, pass state info to the Fix so it can reset itself
@ -930,7 +930,7 @@ void Modify::add_compute(int narg, char **arg, int trysuffix)
compute[ncompute] = compute_creator(lmp,narg,arg); compute[ncompute] = compute_creator(lmp,narg,arg);
} }
if (compute[ncompute] == NULL) error->all(FLERR,"Invalid compute style"); if (compute[ncompute] == NULL) error->all(FLERR,"Unknown compute style");
ncompute++; ncompute++;
} }

View File

@ -571,7 +571,7 @@ void Output::add_dump(int narg, char **arg)
#include "style_dump.h" #include "style_dump.h"
#undef DUMP_CLASS #undef DUMP_CLASS
else error->all(FLERR,"Invalid dump style"); else error->all(FLERR,"Unknown dump style");
every_dump[ndump] = force->inumeric(FLERR,arg[3]); every_dump[ndump] = force->inumeric(FLERR,arg[3]);
if (every_dump[ndump] <= 0) error->all(FLERR,"Illegal dump command"); if (every_dump[ndump] <= 0) error->all(FLERR,"Illegal dump command");

View File

@ -199,7 +199,7 @@ void ReadDump::setup_reader(int narg, char **arg)
// unrecognized style // unrecognized style
else error->all(FLERR,"Invalid dump reader style"); else error->all(FLERR,"Unknown dump reader style");
// pass any arguments to reader // pass any arguments to reader

View File

@ -62,7 +62,7 @@ void WriteDump::command(int narg, char **arg)
#include "style_dump.h" #include "style_dump.h"
#undef DUMP_CLASS #undef DUMP_CLASS
else error->all(FLERR,"Invalid dump style"); else error->all(FLERR,"Unknown dump style");
if (modindex < narg) dump->modify_params(narg-modindex-1,&arg[modindex+1]); if (modindex < narg) dump->modify_params(narg-modindex-1,&arg[modindex+1]);