print warning about adjusting the communication cutoff only during integrator or minimizer setup phase

This commit is contained in:
Axel Kohlmeyer 2020-01-20 16:23:26 -05:00
parent 0bed348073
commit 946bd8f3c0
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@
#include "accelerator_kokkos.h"
#include "memory.h"
#include "error.h"
#include "update.h"
#ifdef _OPENMP
#include <omp.h>
@ -688,7 +689,7 @@ double Comm::get_comm_cutoff()
// print warning if neighborlist cutoff overrides user cutoff
if (me == 0) {
if ((me == 0) && (update->setupflag == 1)) {
if ((cutghostuser > 0.0) && (maxcommcutoff > cutghostuser)) {
char mesg[128];
snprintf(mesg,128,"Communication cutoff adjusted to %g",maxcommcutoff);