MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / CheckElement

Method CheckElement

fem/diffop.hpp:198–204  ·  view source on GitHub ↗

comment out this line when implementation is complete

Source from the content-addressed store, hash-verified

196
197 using FiniteElementType = FiniteElement; // comment out this line when implementation is complete
198 static void CheckElement(const FiniteElement& fel)
199 {
200 if constexpr (!std::is_same_v<FiniteElement, typename DOP::FiniteElementType>)
201 if (!dynamic_cast<const typename DOP::FiniteElementType*>(&fel))
202 throw Exception(string("expected ") + typeid(typename DOP::FiniteElementType).name() + " got " +
203 typeid(fel).name());
204 };
205
206 };
207

Callers 6

CheckElementMethod · 0.45
CheckElementMethod · 0.45
CheckElementMethod · 0.45
CheckElementMethod · 0.45
CheckElementMethod · 0.45
CheckElementMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected