1 #include "mesh_error_factory.h" 5 template <
int dim,
int nstate,
typename real,
typename MeshType>
8 if (!(dg->all_parameters->mesh_adaptation_param.use_goal_oriented_mesh_adaptation))
10 return std::make_unique<ResidualErrorEstimate<dim, real, MeshType>>(dg);
16 if(dim == dg->all_parameters->dimension)
21 if(nstate == dg->all_parameters->nstate)
23 return std::make_unique<DualWeightedResidualError<dim, nstate , real, MeshType>>(dg);
25 else if constexpr (nstate > 1)
32 std::cout<<
"Cannot create MeshErrorEstimate. Invalid input"<<std::endl;
static std::unique_ptr< MeshErrorEstimateBase< dim, real, MeshType > > create_mesh_error(std::shared_ptr< DGBase< dim, real, MeshType > > dg)
Returns pointer of the mesh error's abstract class.
Returns pointer to appropriate mesh error class depending on the input parameters.
Files for the baseline physics.
DGBase is independent of the number of state variables.