17 #include "libmesh/enum_xdr_mode.h" 49 std::string mesh_name = es_name;
52 if (es_name.size() < 4)
53 mooseError(
"Unacceptable filename, you must include an extension (.xda or .xdr).");
56 mesh_name.insert(mesh_name.size() - 4,
"_mesh");
64 es_name, mode, EquationSystems::WRITE_DATA | EquationSystems::WRITE_ADDITIONAL_DATA);
Based class for providing re-positioning and oversampling support to output objects.
virtual void output() override
Overload the Output::output method, this is required for XDA output due to the method utlized for out...
registerMooseObject("MooseApp", XDA)
virtual std::string filename() override
Returns the current filename, this method handles adding the timestep suffix.
bool _binary
Flag for binary output.
std::string _file_base
The base filename from the input paramaters.
Class for output data to the XDAII format.
unsigned int _padding
Number of digits to pad the extensions.
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
EquationSystems * _es_ptr
Reference the the libMesh::EquationSystems object that contains the data.
registerMooseObjectAliased("MooseApp", XDA, "XDR")
static InputParameters validParams()
MooseMesh * _mesh_ptr
A convenience pointer to the current mesh (reference or displaced depending on "use_displaced") ...
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
unsigned int & _file_num
A file number counter, initialized to 0 (this must be controlled by the child class, see Exodus)
XDA(const InputParameters ¶meters)
Class consturctor.
static InputParameters validParams()