|
ARTEMIS
|
Functions | |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | getCellCoordinates (int i, int j, int k, amrex::GpuArray< int, 3 > const mf_type, amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const domain_lo, amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const dx, amrex::Real &x, amrex::Real &y, amrex::Real &z) |
| Compute physical coordinates (x,y,z) that correspond to a given (i,j,k) and the corresponding staggering, mf_type. More... | |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void WarpXUtilAlgo::getCellCoordinates | ( | int | i, |
| int | j, | ||
| int | k, | ||
| amrex::GpuArray< int, 3 > const | mf_type, | ||
| amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const | domain_lo, | ||
| amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const | dx, | ||
| amrex::Real & | x, | ||
| amrex::Real & | y, | ||
| amrex::Real & | z | ||
| ) |
Compute physical coordinates (x,y,z) that correspond to a given (i,j,k) and the corresponding staggering, mf_type.
| [in] | i | index along x |
| [in] | j | index along y |
| [in] | k | index along z |
| [in] | mf_type | GpuArray containing the staggering type to convert (i,j,k) to (x,y,z) |
| [in] | domain_lo | Physical coordinates of the lowest corner of the simulation domain |
| [in] | dx | Cell size of the simulation domain |
| [out] | x | physical coordinate along x |
| [out] | y | physical coordinate along y |
| [out] | z | physical coordinate along z |