cannot determine communication without a box
This commit is contained in:
24
src/info.cpp
24
src/info.cpp
@ -348,18 +348,20 @@ void Info::command(int narg, char **arg)
|
|||||||
commstyles[comm->style], commlayout[comm->layout],
|
commstyles[comm->style], commlayout[comm->layout],
|
||||||
comm->ghost_velocity ? "yes" : "no");
|
comm->ghost_velocity ? "yes" : "no");
|
||||||
|
|
||||||
if (comm->mode == 0)
|
if (domain->box_exist) {
|
||||||
fmt::print(out,"Communication mode = single\n"
|
if (comm->mode == 0)
|
||||||
"Communication cutoff = {}\n",
|
fmt::print(out,"Communication mode = single\n"
|
||||||
comm->get_comm_cutoff());
|
"Communication cutoff = {}\n",
|
||||||
|
comm->get_comm_cutoff());
|
||||||
|
|
||||||
if (comm->mode == 1) {
|
if (comm->mode == 1) {
|
||||||
fputs("Communication mode = multi\n",out);
|
fputs("Communication mode = multi\n",out);
|
||||||
double cut;
|
double cut;
|
||||||
for (int i=1; i <= atom->ntypes && neighbor->cuttype; ++i) {
|
for (int i=1; i <= atom->ntypes && neighbor->cuttype; ++i) {
|
||||||
cut = neighbor->cuttype[i];
|
cut = neighbor->cuttype[i];
|
||||||
if (comm->cutusermulti) cut = MAX(cut,comm->cutusermulti[i]);
|
if (comm->cutusermulti) cut = MAX(cut,comm->cutusermulti[i]);
|
||||||
fmt::print(out,"Communication cutoff for type {} = {:.8}\n", i, cut);
|
fmt::print(out,"Communication cutoff for type {} = {:.8}\n", i, cut);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt::print(out,"Nprocs = {}, Nthreads = {}\n",comm->nprocs,comm->nthreads);
|
fmt::print(out,"Nprocs = {}, Nthreads = {}\n",comm->nprocs,comm->nthreads);
|
||||||
|
|||||||
Reference in New Issue
Block a user