FLASH-X
Doxygen Generated Documentation From Interface Source Code
Functions/Subroutines
Grid_getBlkCenterCoords.F90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine Grid_getBlkCenterCoords (blockDesc, blockCenter)
 

Function/Subroutine Documentation

◆ Grid_getBlkCenterCoords()

subroutine Grid_getBlkCenterCoords ( type(Grid_tile_t)  blockDesc,
real  blockCenter 
)

Gets the coordinates of the center of the block identified by blockDesc. Returns the coordinates in an array blockCenter

blockDesc - block sescriptor with metadata of the block. (May be ignored for UG since there is only one block.) blockCenter - returned array of size MDIM holding the blockCenter coords

Example In 2 dimensions, if physical coordinates are ...

________________(0.5 1.0) | | | | | | | | | | | | | | |_______________ | (-0.5, 0.0)

then the values returned in blockCenter are blockCenter(IAXIS) = 0.0 blockCenter(JAXIS) = 0.5 blockCenter(KAXIS) = 0.0 since the dimension is not included

Definition at line 44 of file Grid_getBlkCenterCoords.F90.