Gravity_accelListOfBlocks(integer(IN) :: blockCount, integer(:)(IN) :: blockList, integer(:)(IN) :: component, integer(IN) :: accelIndex, integer(IN),optional :: potentialIndex)
Compute components of the zone-averaged gravitational acceleration on all mesh blocks. Either a single component of the acceleration or all three can be computed.
blockCount : The number of blocks in the list blockList(:) : The list of blocks on which to calculate acceleration. component : The directional component of the acceleration to compute. Permitted values are IAXIS, JAXIS, KAXIS, and ALLDIR. These constants are defined in constants.h. accelIndex : grid variable to store the acceleration, e.g., GRAC potentialIndex : Variable to take as potential if present. If not present, GPOT is assumed by default.
This routine can be used as a wrapper to Gravity_accelOneRow. Each implementation of the Gravity unit has a version of Gravity_accelOneRow, but this wrapper remains constant.