From f70775bd527a8a29b1b75a82bfdc0cf93465c767 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 26 Oct 2020 18:49:30 -0400 Subject: [PATCH] cannot determine communication without a box --- src/info.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/info.cpp b/src/info.cpp index 823832123c..63ea4dccce 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -348,18 +348,20 @@ void Info::command(int narg, char **arg) commstyles[comm->style], commlayout[comm->layout], comm->ghost_velocity ? "yes" : "no"); - if (comm->mode == 0) - fmt::print(out,"Communication mode = single\n" - "Communication cutoff = {}\n", - comm->get_comm_cutoff()); + if (domain->box_exist) { + if (comm->mode == 0) + fmt::print(out,"Communication mode = single\n" + "Communication cutoff = {}\n", + comm->get_comm_cutoff()); - if (comm->mode == 1) { - fputs("Communication mode = multi\n",out); - double cut; - for (int i=1; i <= atom->ntypes && neighbor->cuttype; ++i) { - cut = neighbor->cuttype[i]; - if (comm->cutusermulti) cut = MAX(cut,comm->cutusermulti[i]); - fmt::print(out,"Communication cutoff for type {} = {:.8}\n", i, cut); + if (comm->mode == 1) { + fputs("Communication mode = multi\n",out); + double cut; + for (int i=1; i <= atom->ntypes && neighbor->cuttype; ++i) { + cut = neighbor->cuttype[i]; + if (comm->cutusermulti) cut = MAX(cut,comm->cutusermulti[i]); + fmt::print(out,"Communication cutoff for type {} = {:.8}\n", i, cut); + } } } fmt::print(out,"Nprocs = {}, Nthreads = {}\n",comm->nprocs,comm->nthreads);