change warning message and get the comm cutoff properly
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user