35 template <
typename T_GRID,
typename T>
37 : m_grid(grid), m_inputs(inputs)
41 template <
typename T_GRID,
typename T>
46 template <
typename T_GRID,
typename T>
51 const auto& levelset_name = m_inputs.
name;
55 auto& phi = levelset.
phi();
59 for (
int i = 0; i < num_cells[0]; ++i)
60 for (
int j = 0; j < num_cells[1]; ++j)
61 for (
int k = 0; k < num_cells[2]; ++k) {
62 distance_vec = positions(i, j, k) - m_inputs.
center;
63 phi(i, j, k) = distance_vec.
mag() - m_inputs.
radius;
Array< T_GRID, T > & phi()
void compute(const GALS::CPU::Array< T_GRID, GALS::CPU::Vec3< T >> &positions, GALS::CPU::Levelset< T_GRID, T > &levelset)
static std::map< std::string, LevelsetFieldNames > levelset_name_map