39 stringstream default_prec;
40 default_prec << std::numeric_limits<double>::max_digits10;
41 return IT::Record(
"OutputStream",
"Configuration of the spatial output of a single balance equation.")
44 "File path to the connected output file.")
47 "Format of output stream and possible parameters.")
49 "Output times used for equations without is own output times key.")
51 "Output mesh record enables output on a refined mesh [EXPERIMENTAL, VTK only]." 52 "Sofar refinement is performed only in discontinous sense." 53 "Therefore only corner and element data can be written on refined output mesh." 54 "Node data are to be transformed to corner data, native data cannot be written." 55 "Do not include any node or native data in output fields.")
57 "The number of decimal digits used in output of floating point values.\\ " 58 "Default is about 17 decimal digits which is enough to keep double values exect after write-read cycle.")
60 "Array of observe points.")
66 return IT::Abstract(
"OutputTime",
"Format of output stream and possible parameters.")
132 this->
nodes_ = mesh_ptr->nodes_;
134 this->
offsets_ = mesh_ptr->offsets_;
145 if (this->
time < field_time) {
146 this->
time = field_time;
153 if(extension.compare( this->_base_filename.extension() ) != 0) {
261 #define OUTPUT_PREPARE_COMPUTE_DATA(TYPE) \ 262 template ElementDataCache<TYPE> & OutputTime::prepare_compute_data<TYPE>(std::string field_name, DiscreteSpace space_type, \ 263 unsigned int n_rows, unsigned int n_cols) Classes for auxiliary output mesh.
virtual void set_output_data_caches(std::shared_ptr< OutputMeshBase > mesh_ptr)
Input::Record input_record_
void fix_main_file_extension(std::string extension)
std::shared_ptr< ElementDataCache< unsigned int > > connectivity_
Vector maps the nodes to their coordinates in vector nodes_.
std::shared_ptr< OutputMeshBase > output_mesh_
Output mesh.
std::shared_ptr< ElementDataCache< unsigned int > > offsets_
Vector of offsets of node indices of elements. Maps elements to their nodes in connectivity_.
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< OutputMeshBase > get_output_mesh_ptr()
static std::shared_ptr< OutputTime > create_output_stream(const std::string &equation_name, const Input::Record &in_rec, std::string unit_str)
This method delete all object instances of class OutputTime stored in output_streams vector...
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.
std::shared_ptr< ElementDataCache< double > > nodes_
Vector of node coordinates. [spacedim x n_nodes].
std::shared_ptr< Observe > observe(Mesh *mesh)
#define LogOut()
Macro defining 'log' record of log.
int get_parallel_current_step()
Return unique value current step for parallel or serial output.
bool parallel_
Parallel or serial version of file format (parallel has effect only for VTK)
virtual void add_dummy_fields()
Complete information about dummy fields, method has effect only for GMSH output.
#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.
void set_stream_precision(std::ofstream &stream)
string unit_string_
String representation of time unit.
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()
virtual void init_from_input(const std::string &equation_name, const Input::Record &in_rec, std::string unit_str)
Constructor of OutputTime object. It opens base file for writing.
Input::Iterator< Input::Record > get_output_mesh_record()
virtual int write_data(void)=0
Virtual method for writing data to output file.
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_