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

@ -219,10 +219,10 @@ void PairSWGPU::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);
}
}

View File

@ -223,10 +223,10 @@ void PairTersoffGPU::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);
}
}

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);
}
}

View File

@ -239,10 +239,10 @@ void PairTersoffZBLGPU::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);
}
}

View File

@ -218,10 +218,10 @@ void PairVashishtaGPU::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);
}
}