replace defines with static constexpr declarations

This commit is contained in:
Axel Kohlmeyer
2024-01-21 14:51:35 -05:00
parent a473d6f347
commit 12422ff510
358 changed files with 636 additions and 561 deletions

View File

@ -216,21 +216,21 @@ void Dump::init()
index = proclist = nullptr;
irregular = nullptr;
if ((has_id == 0) && (me == 0))
error->warning(FLERR,"Dump {} includes no atom IDs and is not sorted by ID. This may complicate "
"post-processing tasks or visualization", id);
error->warning(FLERR,"Dump {} includes no atom IDs and is not sorted by ID. "
"This may complicate post-processing tasks or visualization", id);
}
if (sort_flag) {
if (multiproc > 1)
error->all(FLERR,
"Cannot sort dump when 'nfile' or 'fileper' keywords are set to non-default values");
"Cannot sort dump when 'nfile' or 'fileper' keywords have non-default values");
if (sortcol == 0 && atom->tag_enable == 0)
error->all(FLERR,"Cannot sort dump on atom IDs with no atom IDs defined");
if (sortcol && sortcol > size_one)
error->all(FLERR,"Dump sort column is invalid");
error->all(FLERR,"Dump sort column index {} is invalid", sortcol);
if ((sortcol != 0) && (has_id == 0) && (me == 0))
error->warning(FLERR,"Dump {} includes no atom IDs and is not sorted by ID. This may complicate "
"post-processing tasks or visualization", id);
error->warning(FLERR,"Dump {} includes no atom IDs and is not sorted by ID. "
"This may complicate post-processing tasks or visualization", id);
if (nprocs > 1 && irregular == nullptr)
irregular = new Irregular(lmp);