39 return IT::Record(
"OutputStream",
"Configuration of the spatial output of a single balance equation.")
42 "File path to the connected output file.")
45 "Format of output stream and possible parameters.")
47 "Output times used for equations without is own output times key.")
49 "Output mesh record enables output on a refined mesh.")
51 "The number of decimal digits used in output of floating point values.")
53 "Array of observe points.")
59 return IT::Abstract(
"OutputTime",
"Format of output stream and possible parameters.")
127 output_mesh_->select_error_control_field(output_fields);
128 output_mesh_discont_->select_error_control_field(output_fields);
138 WarningOut() <<
"Ignoring output mesh record.\n Output in GMSH format available only on computational mesh!";
159 if(extension.compare( this->_base_filename.extension() ) != 0) {
212 if (this->
rank == 0) {
254 #define INSTANCE_register_field(spacedim, value) \ 255 template void OutputTime::register_data<spacedim, value> \ 256 (const DiscreteSpace ref_type, Field<spacedim, value> &field); 258 #define INSTANCE_register_multifield(spacedim, value) \ 259 template void OutputTime::register_data<spacedim, value> \ 260 (const DiscreteSpace ref_type, MultiField<spacedim, value> &field); 263 #define INSTANCE_OutputData(spacedim, value) \ 264 template class OutputData<value>; 267 #define INSTANCE_DIM_DEP_VALUES( MACRO, dim_from, dim_to) \ 268 MACRO(dim_from, FieldValue<dim_to>::VectorFixed ) \ 269 MACRO(dim_from, FieldValue<dim_to>::TensorFixed ) 271 #define INSTANCE_TO_ALL( MACRO, dim_from) \ 272 MACRO(dim_from, FieldValue<0>::Enum ) \ 273 MACRO(dim_from, FieldValue<0>::Integer) \ 274 MACRO(dim_from, FieldValue<0>::Scalar) \ 275 INSTANCE_DIM_DEP_VALUES(MACRO, dim_from, 2) \ 276 INSTANCE_DIM_DEP_VALUES(MACRO, dim_from, 3) \ 278 #define INSTANCE_ALL(MACRO) \ 279 INSTANCE_TO_ALL( MACRO, 3) \ 280 INSTANCE_TO_ALL( MACRO, 2) std::shared_ptr< Observe > observe()
Classes for auxiliary output mesh.
Container for various descendants of FieldCommonBase.
std::shared_ptr< OutputMesh > output_mesh_
Output mesh.
virtual void init_from_input(const std::string &equation_name, Mesh &mesh, const Input::Record &in_rec)
Constructor of OutputTime object. It opens base file for writing.
Input::Record input_record_
#define INSTANCE_register_multifield(spacedim, value)
std::shared_ptr< OutputMeshDiscontinuous > output_mesh_discont_
Discontinuous (non-conforming) mesh. Used for CORNER_DATA.
void fix_main_file_extension(std::string extension)
#define INSTANCE_ALL(MACRO)
static const Input::Type::Record & get_input_type()
std::string format(CStringRef format_str, ArgList args)
static Input::Type::Abstract & get_input_format_type()
The specification of output file format.
std::shared_ptr< Observe > observe_
static const Input::Type::Record & get_input_type()
The specification of output mesh.
void make_output_mesh(FieldSet &output_fields)
OutputTime()
Default constructor. Only for testing.
#define LogOut()
Macro defining 'log' record of log.
#define START_TIMER(tag)
Starts a timer with specified tag.
string parent_path() const
virtual ~OutputTime()
Destructor of OutputTime. It doesn't do anything, because all necessary destructors will be called in...
void clear_data(void)
Clear data for output computed by method compute_field_data.
The class for outputting data during time.
Dedicated class for storing path to input and output files.
Input::Iterator< Input::Array > get_time_set_array()
static std::shared_ptr< OutputTime > create_output_stream(const std::string &equation_name, Mesh &mesh, const Input::Record &in_rec)
This method delete all object instances of class OutputTime stored in output_streams vector...
#define ASSERT_PTR(ptr)
Definition of assert macro checking non-null pointer (PTR)
virtual int write_data(void)=0
Virtual method for writing data to output file.
void compute_discontinuous_output_mesh()
#define INSTANCE_register_field(spacedim, value)
static const Input::Type::Array get_input_type()
OutputDataFieldVec output_data_vec_[N_DISCRETE_SPACES]
#define WarningOut()
Macro defining 'warning' record of log.
bool enable_refinement_
Auxliary flag for refinement enabling, due to gmsh format.
#define FLOW123D_FORCE_LINK_IN_PARENT(x)
std::string equation_name_