38 #include <sys/types.h>
43#include "../libTierces/tinyxml2.h"
45#include "../Meshes/HeaderMesh.h"
46#include "../Order1/Cell.h"
71 Output(std::string nameRun,
int fileNumberRestartMeshMapping,
Input *input);
88 virtual void writeResults(std::vector<CellInterface*>* ) {
try {
throw ErrorECOGEN(
"writeResults not available for requested output format"); }
catch (
ErrorECOGEN&) {
throw; } };
89 void printTree(
Mesh* mesh, std::vector<Cell*>* cellsLvl,
int m_restartAMRsaveFreq);
115 const std::vector<AddPhys*>& addPhys,
int& nbCellsTotalAMR);
130 std::string
createFilename(
const char* name,
int lvl = -1,
int proc = -1,
int numFichier = -1)
const;
133 void getDataset(std::istringstream& data, std::vector<double>& dataset);
Base class for a mesh cell.
Definition Cell.h:59
Abstract class for a mesh.
Definition Mesh.h:53
void readTree(Mesh *mesh, TypeMeshContainer< Cell * > *cellsLvl, TypeMeshContainer< Cell * > *cellsLvlGhost, TypeMeshContainer< CellInterface * > *cellInterfacesLvl, const std::vector< AddPhys * > &addPhys, int &nbCellsTotalAMR)
Definition Output.cpp:290
std::string m_folderOutput
Folder to store results.
Definition Output.h:148
virtual Cell * locateProbeInAMRSubMesh(std::vector< Cell * > *, const int &)
Definition Output.h:80
std::string m_folderBoundaries
Boundaries flux results folder location.
Definition Output.h:155
const std::string & getFolderOutput()
Definition Output.h:121
const TypeOutput & getType() const
Definition Output.h:122
void saveInfoCells() const
Definition Output.cpp:358
int m_precision
Output files precision (number of digits) //default: 0.
Definition Output.h:163
virtual double getNextTime()
Definition Output.h:119
std::string m_fileNameResults
Filename of result file.
Definition Output.h:145
void readDomainDecompostion(Mesh *mesh)
Definition Output.cpp:275
std::string m_infoCalcul
Filename to save useful info of computation.
Definition Output.h:141
void writeDataset(std::vector< double > dataset, std::ofstream &fileStream, TypeData typeData)
Definition Output.cpp:372
std::string m_fileCollectionParaview
Chemin du file collection regroupant les fichiers resultats (for Paraview)
Definition Output.h:156
Output()
Default constructor for specific output without specific needs.
Definition Output.cpp:39
virtual void readResults(Mesh *, std::vector< Cell * > *)
Read results of a previous simulation to restart from it.
Definition Output.h:106
Cell m_cellRef
Reference cell to extract variables name.
Definition Output.h:171
std::string m_treeStructure
Filename for tree structure backup.
Definition Output.h:143
std::string m_filenameCollectionParaview
Name of the collection containing the results files (for Paraview)
Definition Output.h:146
void printWritingInfo() const
Definition Output.cpp:480
std::string m_infoMesh
Filename of mesh info file.
Definition Output.h:142
std::string m_endianMode
Definition Output.h:167
void saveInfos() const
Definition Output.cpp:491
virtual ~Output()
Definition Output.cpp:159
virtual void initializeSpecificOutput(std::vector< CellInterface * > *)
Definition Output.h:95
virtual void readResultsCpu(Mesh *, std::vector< Cell * > *, int)
Read results of a single partition of a previous simulation to restart from it.
Definition Output.h:112
virtual void initializeSpecificOutput()
Definition Output.h:94
virtual void writeProgress()
Definition Output.cpp:346
Run * m_run
Pointer to run.
Definition Output.h:136
int getNumFile() const
Definition Output.h:118
void initializeOutputMeshMapping(const Cell &cell)
To initialize output for Mesh Mapping Restart.
Definition Output.cpp:211
bool getReducedOutput() const
Definition Output.h:123
TypeOutput m_type
Type of output.
Definition Output.h:137
bool m_writeBinary
Choice to write binary/ASCII.
Definition Output.h:161
std::string m_folderCuts
Cuts results folder location.
Definition Output.h:152
void copyInputFiles() const
Definition Output.cpp:163
std::string m_folderDatasets
Folder to save the datasets.
Definition Output.h:150
std::string createFilename(const char *name, int lvl=-1, int proc=-1, int numFichier=-1) const
Definition Output.cpp:588
virtual void writeResults(Mesh *, std::vector< Cell * > *)
Definition Output.h:87
std::string m_folderGlobalQuantities
Global quantity (e.g. mass) results folder location.
Definition Output.h:154
virtual bool possesses()
Definition Output.h:120
Input * m_input
Pointer to input.
Definition Output.h:135
int m_numFichier
Definition Output.h:166
void initializeOutput(const Cell &cell)
Definition Output.cpp:176
std::string m_filenameCollectionVisIt
Name of the collection containing the results files (for VisIt)
Definition Output.h:147
virtual void locateProbeInMesh(const TypeMeshContainer< Cell * > &, const int &, bool=false)
Definition Output.h:79
std::string m_domainDecomposition
Filename for domain decomposition backup.
Definition Output.h:144
int readNbCpu()
Read and return the number of cpu from the infoCalcul file of a performed simulation.
Definition Output.cpp:573
int m_nbCpusRestarted
Number of CPUs of the simulation to be restarted.
Definition Output.h:168
virtual void initializeOutputInfos()
Definition Output.cpp:225
std::string m_simulationName
Test case name (defined in "main.xml")
Definition Output.h:140
std::string m_folderErrorsAndWarnings
File path for errors and warnings.
Definition Output.h:158
std::string m_folderSavesInput
Folder to store a copy of input files.
Definition Output.h:149
std::string m_folderProbes
Probes results folder location.
Definition Output.h:153
void readInfos()
Currently only used for OutputBoundaryMassflowGNU.
Definition Output.cpp:524
bool m_reducedOutput
Choice of reduced number of output variables when possible (depends on the model)
Definition Output.h:164
bool m_splitData
Choice print data in separate files.
Definition Output.h:162
std::string m_folderInfoMesh
Folder to store mesh info.
Definition Output.h:151
virtual void writeResults(std::vector< CellInterface * > *)
Definition Output.h:88
void printTree(Mesh *mesh, std::vector< Cell * > *cellsLvl, int m_restartAMRsaveFreq)
Definition Output.cpp:244
void getDataset(std::istringstream &data, std::vector< double > &dataset)
Definition Output.cpp:426
std::string m_fileCollectionVisIt
Chemin du file collection regroupant les fichiers resultats (for VisIt)
Definition Output.h:157
virtual void writeInfos()
Definition Output.cpp:335
Class regrouping all information for a simulation.
Definition Run.h:63
Definition tinyxml2.h:1149