improve warning and explanation about too short communication cutoff

This commit is contained in:
Axel Kohlmeyer
2025-04-30 16:46:22 -04:00
parent f9ba063c4a
commit 2ab7eda64a
3 changed files with 15 additions and 11 deletions

View File

@ -209,8 +209,8 @@ void CommBrick::setup()
double cut = get_comm_cutoff();
if ((cut == 0.0) && (me == 0))
error->warning(FLERR,"Communication cutoff is 0.0. No ghost atoms "
"will be generated. Atoms may get lost.");
error->warning(FLERR,"Communication cutoff is 0.0. No ghost atoms will be generated. "
"Energies and forces may be wrong and atoms may get lost.");
if (mode == Comm::MULTI) {
double **cutcollectionsq = neighbor->cutcollectionsq;