entity-toolkit / entity

New generation astrophysical plasma simulation code with CPU/GPU portability
https://entity-toolkit.github.io/wiki/
Other
27 stars 2 forks source link

Mixed coordinate shape #31

Closed haykh closed 7 months ago

haykh commented 8 months ago

General properly formatted support for mixed coordinates.

PrtlCoordD is a macros compiled to D if using MINKOWSKI_METRIC or GRPIC_ENGINE and Dim3 otherwise. This is done to facilitate the necessity in 2D axisymmetric simulations to having 3D coordinate vector.

Ultimate solution would be to capture this from the Metric<D> object, passed as template argument to respective kernels (see, e.g. DepositCurrents_kernel).