44 const int dim = T_GRID::dim;
50 const auto &one_over_dx = grid.oneOverDX();
52 T eta = (x_interp[0] - x_base[0]) * one_over_dx[0];
54 T alpha_interpolated = (1. - eta) * alpha(base_node_id) + eta * alpha(base_node_id_p1);
63 return alpha_interpolated;
75 const T_GRID &grid = alpha.grid();
83 for (
int i = 0; i < x_interp.grid().numCells()[0]; ++i)
84 for (
int j = 0; j < x_interp.grid().numCells()[1]; ++j)
85 for (
int k = 0; k < x_interp.grid().numCells()[2]; ++k)
86 alpha_interpolated(i, j, k) = linearInterpolation(grid, x_interp(i, j, k), alpha);
#define GALS_FUNCTION_NOT_IMPLEMENTED(var)
const Vec3< T > & dX() const