must use Error::message() to print the warning about suppressed warnings
This commit is contained in:
@ -418,8 +418,9 @@ bigint Thermo::lost_check()
|
||||
int maxwarn = error->get_maxwarn();
|
||||
if ((maxwarn > 0) && (warnbefore == 0) && (ntotal[1] > maxwarn)) {
|
||||
warnbefore = 1;
|
||||
error->warning(FLERR,fmt::format("Too many warnings: {} vs {}. All "
|
||||
"future warnings will be suppressed.\n",
|
||||
if (comm->me == 0)
|
||||
error->message(FLERR,fmt::format("WARNING: Too many warnings: {} vs {}. All "
|
||||
"future warnings will be suppressed",
|
||||
ntotal[1],maxwarn));
|
||||
}
|
||||
error->set_allwarn(ntotal[1]);
|
||||
|
||||
Reference in New Issue
Block a user