29 if (sdm->Type() == LagrangeC and
30 std::addressof(sdm->Grid()) == std::addressof(grid) and
31 sdm->GetCoordinateSystemType() == cs_type)
33 auto fe_ptr = std::dynamic_pointer_cast<FiniteElementBase>(sdm);
37 if (fe_ptr->GetQuadratureOrder() != q_order)
break;
40 std::dynamic_pointer_cast<LagrangeContinuous>(fe_ptr);
47 auto new_sdm = std::shared_ptr<LagrangeContinuous>(
#define ChiLogicalErrorIf(condition, message)
static std::vector< chi_math::SpatialDiscretizationPtr > sdm_stack
static std::shared_ptr< LagrangeContinuous > New(const chi_mesh::MeshContinuum &grid, QuadratureOrder q_order=QuadratureOrder::SECOND, CoordinateSystemType cs_type=CoordinateSystemType::CARTESIAN)
LagrangeContinuous(const chi_mesh::MeshContinuum &grid, QuadratureOrder q_order, CoordinateSystemType cs_type)
SpatialDiscretizationType