Skip to content

Commit

Permalink
Avoid real_to_unit from MappingFEField
Browse files Browse the repository at this point in the history
  • Loading branch information
fdrmrc committed Jan 6, 2024
1 parent 56b686d commit 3e28942
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/agglomeration_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,14 @@ AgglomerationHandler<dim, spacedim>::agglomerated_quadrature(

// Map back each point in real space by using the map associated to the
// bounding box.
std::vector<Point<dim>> unit_points(vec_pts.size());
euler_mapping->transform_points_real_to_unit_cell(master_cell,
vec_pts,
unit_points);
std::vector<Point<dim>> unit_points;
unit_points.reserve(vec_pts.size());
for (const auto &p : vec_pts)
unit_points.push_back(
bboxes[master_cell->active_cell_index()].real_to_unit(p));


return Quadrature<dim>(unit_points, vec_JxWs);
return {unit_points, vec_JxWs};
}


Expand Down

0 comments on commit 3e28942

Please sign in to comment.