add warning to fix reaxff/species to explain the impact of large averaging

This commit is contained in:
Axel Kohlmeyer
2021-10-07 20:45:27 -04:00
parent 30c146457a
commit b5061b69be
3 changed files with 13 additions and 3 deletions

View File

@ -115,7 +115,7 @@ FixReaxFFSpecies::FixReaxFFSpecies(LAMMPS *lmp, int narg, char **arg) :
} else fp = fopen(arg[6],"w");
if (!fp)
error->one(FLERR,"Cannot open fix reaxff/species file {}: {}",arg[6],utils::getsyserror()));
error->one(FLERR,"Cannot open fix reaxff/species file {}: {}",arg[6],utils::getsyserror());
}
x0 = nullptr;

View File

@ -2563,8 +2563,7 @@ void FixRigidSmall::write_restart_file(const char *file)
auto outfile = std::string(file) + ".rigid";
fp = fopen(outfile.c_str(),"w");
if (fp == nullptr)
error->one(FLERR,"Cannot open fix rigid restart file {}: {}",
outfile,utils::getsyserror());
error->one(FLERR,"Cannot open fix rigid restart file {}: {}",outfile,utils::getsyserror());
fmt::print(fp,"# fix rigid mass, COM, inertia tensor info for "
"{} bodies on timestep {}\n\n",nbody,update->ntimestep);