https://mooseframework.inl.gov
MFEMConduitDataCollection.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #ifdef MFEM_ENABLED
11 
13 
15 
18 {
20  params.addClassDescription("Output for controlling MFEMConduitDataCollection inherited data.");
21  MooseEnum protocol("hdf5 json conduit_json conduit_bin", "hdf5", false);
22  params.addParam<MooseEnum>("protocol",
23  protocol,
24  "Conduit relay I/O protocol to use. Options: hdf5 (default), json, "
25  "conduit_json, conduit_bin.");
26  return params;
27 }
28 
30  : MFEMDataCollection(parameters),
31  _conduit_dc((_file_base).c_str(), &_pmesh),
32  _protocol(getParam<MooseEnum>("protocol"))
33 {
34  _conduit_dc.SetProtocol(_protocol);
36 }
37 
38 #endif
MFEMConduitDataCollection(const InputParameters &parameters)
registerMooseObject("MooseApp", MFEMConduitDataCollection)
Class for output information saved in MFEM DataCollections.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:33
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
mfem::ConduitDataCollection _conduit_dc
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object...
Class for output information saved in MFEM ConduitDataCollections.
static InputParameters validParams()