change warning message and get the comm cutoff properly

This commit is contained in:
Axel Kohlmeyer
2022-10-12 16:18:56 -04:00
parent 3bf0595078
commit 2eb125d893
5 changed files with 10 additions and 10 deletions

View File

@ -221,10 +221,10 @@ void PairTersoffMODGPU::init_style()
if (gpu_mode == GPU_FORCE)
neighbor->add_request(this, NeighConst::REQ_FULL | NeighConst::REQ_GHOST);
if (comm->cutghostuser < (2.0 * cutmax + neighbor->skin)) {
if (comm->get_comm_cutoff() < (2.0 * cutmax + neighbor->skin)) {
comm->cutghostuser = 2.0 * cutmax + neighbor->skin;
if (comm->me == 0)
error->warning(FLERR, "Increasing communication cutoff to {:.3} for GPU pair style",
error->warning(FLERR, "Increasing communication cutoff to {:.8} for GPU pair style",
comm->cutghostuser);
}
}