Merge branch 'fix_sph_example' of github.com:timteichmann/lammps into collected-small-changes
This commit is contained in:
@ -22,7 +22,7 @@ pair_style hybrid/overlay sph/rhosum 1 sph/idealgas
|
||||
pair_coeff * * sph/rhosum 4.0
|
||||
pair_coeff * * sph/idealgas 0.75 4.0
|
||||
|
||||
compute rhoatom all shp/rho/atom
|
||||
compute rhoatom all sph/rho/atom
|
||||
compute ieatom all sph/e/atom
|
||||
compute esph all reduce sum c_ieatom # total internal energy
|
||||
compute ke all ke
|
||||
|
||||
@ -122,7 +122,7 @@ void Error::universe_one(const std::string &file, int line, const std::string &s
|
||||
void Error::universe_warn(const std::string &file, int line, const std::string &str)
|
||||
{
|
||||
++numwarn;
|
||||
if ((numwarn > maxwarn) || (allwarn > maxwarn) || (maxwarn < 0)) return;
|
||||
if ((maxwarn != 0) && ((numwarn > maxwarn) || (allwarn > maxwarn) || (maxwarn < 0))) return;
|
||||
if (universe->uscreen)
|
||||
fmt::print(universe->uscreen,"WARNING on proc {}: {} ({}:{})\n",
|
||||
universe->me,str,truncpath(file),line);
|
||||
@ -254,7 +254,7 @@ void Error::_one(const std::string &file, int line, fmt::string_view format,
|
||||
void Error::warning(const std::string &file, int line, const std::string &str)
|
||||
{
|
||||
++numwarn;
|
||||
if ((numwarn > maxwarn) || (allwarn > maxwarn) || (maxwarn < 0)) return;
|
||||
if ((maxwarn != 0) && ((numwarn > maxwarn) || (allwarn > maxwarn) || (maxwarn < 0))) return;
|
||||
std::string mesg = fmt::format("WARNING: {} ({}:{})\n",
|
||||
str,truncpath(file),line);
|
||||
if (screen) fputs(mesg.c_str(),screen);
|
||||
|
||||
Reference in New Issue
Block a user