19 params.
addParam<std::string>(
"submesh",
20 "Submesh to output variables on. Leave blank to use base mesh.");
26 _problem_data(static_cast<
MFEMProblem *>(_problem_ptr)->getProblemData()),
27 _pmesh(parameters.isParamValid(
"submesh")
28 ? _problem_data.submeshes.GetRef(getParam<
std::string>(
"submesh"))
29 : const_cast<mfem::ParMesh &>(*_problem_data.pmesh.
get()))
39 if (dc.GetMesh() == gf_ptr->FESpace()->GetMesh())
40 dc.RegisterField(gf_name, gf_ptr.get());
44 " is not defined on the same mesh as the output DataCollection.");
void mooseInfo(Args &&... args) const
virtual Real time() override
Get the output time.
MFEMProblemData & _problem_data
Reference to the MFEMProblemData struct storing the output variables.
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
unsigned int getFileNumber()
Return the current file number for this outputter.
static InputParameters validParams()
MFEMDataCollection(const InputParameters ¶meters)
static InputParameters validParams()
void output() override
Overload this function with the desired output activities.
unsigned int & _file_num
A file number counter, initialized to 0 (this must be controlled by the child class, see Exodus)
An outputter with filename support.
virtual mfem::DataCollection & getDataCollection()=0
Moose::MFEM::GridFunctions gridfunctions