17 #include "libmesh/enum_xdr_mode.h" 42 :
SampledOutput(parameters), _binary(getParam<bool>(
"_binary"))
51 std::string mesh_name = es_name;
54 if (es_name.size() < 4)
55 mooseError(
"Unacceptable filename, you must include an extension (.xda or .xdr).");
58 mesh_name.insert(mesh_name.size() - 4,
"_mesh");
66 es_name, mode, EquationSystems::WRITE_DATA | EquationSystems::WRITE_ADDITIONAL_DATA);
void write(std::string_view name, const XdrMODE, const unsigned int write_flags=(WRITE_DATA), bool partition_agnostic=true) const
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.
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
Based class for providing re-positioning and oversampling support to output objects.
unsigned int _padding
Number of digits to pad the extensions.
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
registerMooseObjectAliased("MooseApp", XDA, "XDR")
static InputParameters validParams()
virtual void write(const std::string &name) const=0
libMesh::EquationSystems * _es_ptr
Reference the the libMesh::EquationSystems object that contains the data.
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()