File problem_initialize_mhd_data.H

Functions

AMREX_GPU_HOST_DEVICE AMREX_INLINE void problem_initialize_mhd_data (int i, int j, int k, Array4< Real > const &B, const int idir, const GeometryData &geomdata)

Initialize the simulation state data

Parameters:
  • i – x-index

  • j – y-index

  • k – z-index

  • B – face-centered magnetic field in direction idir (Fab)

  • idir – direction of the face to fill (0=x, 1=y, 2=z)

  • geomdata – geometry data