Commit b769d03c authored by Benoit LE's avatar Benoit LE

Added a toExport function to PostProcessing

May be useful if exporting a certain quantity requires some computations, but
we want to do these computations only in the case where this quantity is
supposed to be exported.
parent 7abbf641
......@@ -95,6 +95,14 @@ void PostProcessing::reinit(xMesh& mesh) {
sensor_manager.reinit(&mesh);
}
bool PostProcessing::toExport(const std::string export_name) {
return sensor_manager.toExport(export_name);
}
bool PostProcessing::toExport(const std::string export_name, const int step) {
return export_manager.toExport(export_name, step, "");
}
void PostProcessing::exportOnSpace(const std::string export_name, const int step, const xLevelSet& ls) {
if(export_manager.toExport(export_name, step, "")) {
pexport.openFile(export_manager.getFileName());
......
......@@ -62,6 +62,9 @@ public:
void createCurvesPlotFiles(std::string);
bool toExport(const std::string export_name);
bool toExport(const std::string export_name, const int step);
void exportOnSpace(const std::string export_name, const int step, const xfem::xLevelSet& ls);
template<typename ITER>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment