Skip to content
Snippets Groups Projects
Commit e27b61ed authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] Add interpolateCoordinates for elements.

parent b0d14636
No related branches found
No related tags found
No related merge requests found
...@@ -60,4 +60,17 @@ double interpolateXCoordinate( ...@@ -60,4 +60,17 @@ double interpolateXCoordinate(
return fe.interpolateZerothCoordinate(N); return fe.interpolateZerothCoordinate(N);
} }
template <typename ShapeFunction, typename ShapeMatricesType>
std::array<double, 3> interpolateCoordinates(
MeshLib::Element const& e,
typename ShapeMatricesType::ShapeMatrices::ShapeType const& N)
{
using FemType = NumLib::TemplateIsoparametric<
ShapeFunction, ShapeMatricesType>;
FemType fe(*static_cast<const typename ShapeFunction::MeshElement*>(&e));
return fe.interpolateCoordinates(N);
}
} // namespace ProcessLib } // namespace ProcessLib
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment