From d08477cc5f152f9fe8e2d916a9548aac798b75c9 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 24 Jul 2019 17:49:00 -0400 Subject: [PATCH] print warning, when explicitly specified communication cutoff is increased --- src/comm.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/comm.cpp b/src/comm.cpp index 3b4029e7d3..4e605808af 100644 --- a/src/comm.cpp +++ b/src/comm.cpp @@ -617,6 +617,11 @@ double Comm::get_comm_cutoff() } maxcommcutoff = MAX(maxcommcutoff,neighbor->cutneighmax); maxcommcutoff = MAX(maxcommcutoff,cutghostuser); + if ((me == 0) && (cutghostuser > 0.0) && (maxcommcutoff > cutghostuser)) { + char mesg[128]; + snprintf(mesg,128,"Communication cutoff is changed to %g",maxcommcutoff); + error->warning(FLERR,mesg); + } return maxcommcutoff; }