17#include "libmesh/enum_xdr_mode.h"
40 :
SampledOutput(parameters), _binary(getParam<bool>(
"_binary"))
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);
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObject("MooseApp", XDA)
registerMooseObjectAliased("MooseApp", XDA, "XDR")
unsigned int _padding
Number of digits to pad the extensions.
std::string _file_base
The base filename from the input paramaters.
unsigned int & _file_num
A file number counter, initialized to 0 (this must be controlled by the child class,...
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
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")
Based class for providing re-positioning and oversampling support to output objects.
static InputParameters validParams()
Class for output data to the XDAII format.
static InputParameters validParams()
XDA(const InputParameters ¶meters)
Class consturctor.
bool _binary
Flag for binary output.
virtual void output() override
Overload the Output::output method, this is required for XDA output due to the method utlized for out...
virtual std::string filename() override
Returns the current filename, this method handles adding the timestep suffix.
void write(std::string_view name, const XdrMODE, const unsigned int write_flags=(WRITE_DATA), bool partition_agnostic=true) const