git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12827 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -438,7 +438,7 @@ AtomVec *Atom::new_avec(const char *style, int trysuffix, int &sflag)
|
||||
#include "style_atom.h"
|
||||
#undef ATOM_CLASS
|
||||
|
||||
else error->all(FLERR,"Invalid atom style");
|
||||
else error->all(FLERR,"Unknown atom style");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@ -92,7 +92,7 @@ void AtomVecBody::process_args(int narg, char **arg)
|
||||
#undef BodyStyle
|
||||
#undef BODY_CLASS
|
||||
|
||||
else error->all(FLERR,"Invalid body style");
|
||||
else error->all(FLERR,"Unknown body style");
|
||||
|
||||
bptr->avec = this;
|
||||
icp = bptr->icp;
|
||||
|
||||
@ -1424,7 +1424,7 @@ void Domain::add_region(int narg, char **arg)
|
||||
|
||||
// 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 RegionStyle(key,Class) \
|
||||
@ -1433,7 +1433,7 @@ void Domain::add_region(int narg, char **arg)
|
||||
#include "style_region.h"
|
||||
#undef REGION_CLASS
|
||||
|
||||
else error->all(FLERR,"Invalid region style");
|
||||
else error->all(FLERR,"Unknown region style");
|
||||
|
||||
// initialize any region variables via init()
|
||||
// in case region is used between runs, e.g. to print a variable
|
||||
|
||||
@ -173,7 +173,7 @@ Pair *Force::new_pair(const char *style, int trysuffix, int &sflag)
|
||||
return pair_creator(lmp);
|
||||
}
|
||||
|
||||
error->all(FLERR,"Invalid pair style");
|
||||
error->all(FLERR,"Unknown pair style");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -288,7 +288,7 @@ Bond *Force::new_bond(const char *style, int trysuffix, int &sflag)
|
||||
#include "style_bond.h"
|
||||
#undef BOND_CLASS
|
||||
|
||||
else error->all(FLERR,"Invalid bond style");
|
||||
else error->all(FLERR,"Unknown bond style");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -368,7 +368,7 @@ Angle *Force::new_angle(const char *style, int trysuffix, int &sflag)
|
||||
#include "style_angle.h"
|
||||
#undef ANGLE_CLASS
|
||||
|
||||
else error->all(FLERR,"Invalid angle style");
|
||||
else error->all(FLERR,"Unknown angle style");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -434,7 +434,7 @@ Dihedral *Force::new_dihedral(const char *style, int trysuffix, int &sflag)
|
||||
#undef DihedralStyle
|
||||
#undef DIHEDRAL_CLASS
|
||||
|
||||
else error->all(FLERR,"Invalid dihedral style");
|
||||
else error->all(FLERR,"Unknown dihedral style");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -499,7 +499,7 @@ Improper *Force::new_improper(const char *style, int trysuffix, int &sflag)
|
||||
#include "style_improper.h"
|
||||
#undef IMPROPER_CLASS
|
||||
|
||||
else error->all(FLERR,"Invalid improper style");
|
||||
else error->all(FLERR,"Unknown improper style");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -583,7 +583,7 @@ KSpace *Force::new_kspace(int narg, char **arg, int trysuffix, int &sflag)
|
||||
#include "style_kspace.h"
|
||||
#undef KSPACE_CLASS
|
||||
|
||||
else error->all(FLERR,"Invalid kspace style");
|
||||
else error->all(FLERR,"Unknown kspace style");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@ -759,7 +759,7 @@ void Modify::add_fix(int narg, char **arg, int trysuffix)
|
||||
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
|
||||
// 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);
|
||||
}
|
||||
|
||||
if (compute[ncompute] == NULL) error->all(FLERR,"Invalid compute style");
|
||||
if (compute[ncompute] == NULL) error->all(FLERR,"Unknown compute style");
|
||||
|
||||
ncompute++;
|
||||
}
|
||||
|
||||
@ -571,7 +571,7 @@ void Output::add_dump(int narg, char **arg)
|
||||
#include "style_dump.h"
|
||||
#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]);
|
||||
if (every_dump[ndump] <= 0) error->all(FLERR,"Illegal dump command");
|
||||
|
||||
@ -199,7 +199,7 @@ void ReadDump::setup_reader(int narg, char **arg)
|
||||
|
||||
// unrecognized style
|
||||
|
||||
else error->all(FLERR,"Invalid dump reader style");
|
||||
else error->all(FLERR,"Unknown dump reader style");
|
||||
|
||||
// pass any arguments to reader
|
||||
|
||||
|
||||
@ -62,7 +62,7 @@ void WriteDump::command(int narg, char **arg)
|
||||
#include "style_dump.h"
|
||||
#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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user