21 throw std::logic_error(
"Unassigned field function in line "
22 "field function interpolator.");
36 for (
size_t ff=0; ff<num_ff; ff++)
42 const auto& sdm = ff_context.ref_ff->GetSpatialDiscretization();
43 const auto& grid = sdm.Grid();
50 for (
const auto& cell : grid.local_cells)
55 if (grid.CheckPointInsideCell(cell, point))
57 ff_context.interpolation_points_ass_cell[p] = cell.local_id_;
58 ff_context.interpolation_points_has_ass_cell[p] =
true;
std::vector< chi_physics::FieldFunctionGridBasedPtr > field_functions_
std::vector< chi_mesh::Vector3 > interpolation_points_
void Initialize() override
std::vector< FieldFunctionContext > ff_contexts_
Vector3 Normalized() const