5 #include <athena/athena.hpp>
6 #include <athena/coordinates/coordinates.hpp>
7 #include <athena/hydro/hydro.hpp>
8 #include <athena/mesh/mesh.hpp>
37 int f = pm->f2 + pm->f3;
39 interpn(&q.v1, loc + 2 - f, v1.data(), pcoord->GetCellCoords() + 2 - f,
40 pcoord->GetDimensions() + 2 - f, 1 + f, 1);
43 interpn(&q.v2, loc + 2 - f, v2.data(), pcoord->GetCellCoords() + 2 - f,
44 pcoord->GetDimensions() + 2 - f, 1 + f, 1);
50 interpn(&q.v3, loc + 2 - f, v3.data(), pcoord->GetCellCoords() + 2 - f,
51 pcoord->GetDimensions() + 2 - f, 1 + f, 1);
void SetVelocitiesFromHydro(Hydro const *phydro, Coordinates const *pcoord)
MeshBlock const * pmy_block_
pointer to parent MeshBlock
void interpn(double *val, double const *coor, double const *data, double const *axis, size_t const *len, int ndim, int nval)