38 stringstream default_prec;
39 default_prec << std::numeric_limits<double>::max_digits10;
40 return IT::Record(
"OutputStream",
"Configuration of the spatial output of a single balance equation.")
43 "File path to the connected output file.")
46 "File format of the output stream and possible parameters.")
48 "Output times used for fields that do not have their own output times defined.")
50 "Output mesh record enables output on a refined mesh. [Not impemented]")
52 "The number of decimal digits used in output of floating point values.\n" 53 "Default is 17 decimal digits which are necessary to reproduce double values exactly after write-read cycle.")
55 "Array of observe points.")
61 return IT::Abstract(
"OutputTime",
"Format of output stream and possible parameters.")
132 else output_mesh_ = std::make_shared<OutputMesh>(*_mesh);
148 if (this->
time < field_time) {
149 this->
time = field_time;
164 if(extension.compare( this->_base_filename.extension() ) != 0) {
217 if (this->
rank == 0) {
260 #define OUTPUT_PREPARE_COMPUTE_DATA(TYPE) \ 261 template ElementDataCache<TYPE> & OutputTime::prepare_compute_data<TYPE>(std::string field_name, DiscreteSpace space_type, \ 262 unsigned int n_rows, unsigned int n_cols) std::shared_ptr< Observe > observe()
Classes for auxiliary output mesh.
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_
std::shared_ptr< OutputMeshDiscontinuous > output_mesh_discont_
Discontinuous (non-conforming) mesh. Used for CORNER_DATA.
void fix_main_file_extension(std::string extension)
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_
void update_time(double field_time)
static const Input::Type::Record & get_input_type()
The specification of output mesh.
#define OUTPUT_PREPARE_COMPUTE_DATA(TYPE)
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.
std::shared_ptr< OutputMeshBase > get_output_mesh_ptr(bool discont=false)
void set_stream_precision(std::ofstream &stream)
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...
Input::Iterator< Input::Record > get_output_mesh_record()
std::shared_ptr< OutputMeshBase > create_output_mesh_ptr(bool init_input, bool discont=false)
#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()
static const Input::Type::Array get_input_type()
OutputDataFieldVec output_data_vec_[N_DISCRETE_SPACES]
#define WarningOut()
Macro defining 'warning' record of log.
#define FLOW123D_FORCE_LINK_IN_PARENT(x)
std::string equation_name_