if (useGpuForUpdate)
{
- GMX_RELEASE_ASSERT(!DOMAINDECOMP(cr),
- "Domain decomposition is not supported with the GPU update.\n");
+ GMX_RELEASE_ASSERT(!DOMAINDECOMP(cr)
+ || (simulationWork.useGpuDirectCommunication
+ && simulationWork.useGpuPmePpCommunication),
+ "Domain decomposition is not supported with the GPU update when not "
+ "using direct GPU communication.\n");
GMX_RELEASE_ASSERT(useGpuForPme || (useGpuForNonbonded && simulationWork.useGpuBufferOps),
"Either PME or short-ranged non-bonded interaction tasks must run on "
"the GPU to use GPU update.\n");