Added assert on manually set pruning interval.
Change-Id: I438f98a0a42335d8f79bf7604b53b51943e7db8c
``GMX_NSTLIST_DYNAMICPRUNING``
overrides the dynamic pair-list pruning interval chosen heuristically
- by mdrun. Values should be between 1 and :mdp:`nstlist - 1`.
+ by mdrun. Values should be between the pruning frequency value
+ (1 for CPU and 2 for GPU) and :mdp:`nstlist - 1`.
``GMX_USE_TREEREDUCE``
use tree reduction for nbnxn force reduction. Potentially faster for large number of
* rolling pruning interval slightly shorter than nstlistTune,
* thus giving correct results, but a slightly lower efficiency.
*/
+ GMX_RELEASE_ASSERT(listParams->nstlistPrune >= c_nbnxnGpuRollingListPruningInterval,
+ ( "With dynamic list pruning on GPUs pruning frequency must be at least as large as the rolling pruning interval (" +
+ std::to_string(c_nbnxnGpuRollingListPruningInterval) +
+ ").").c_str() );
listParams->numRollingParts = listParams->nstlistPrune/c_nbnxnGpuRollingListPruningInterval;
}
else