mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Re-enable output for 2-phase sims.
This was disabled when the facilities were moved to opm-output. Now that the simulators are in the opm-simulators module and not opm-core we can re-enable it.
This commit is contained in:
parent
e83518108e
commit
a031c25ced
@ -34,10 +34,7 @@
|
|||||||
#include <opm/core/simulator/SimulatorReport.hpp>
|
#include <opm/core/simulator/SimulatorReport.hpp>
|
||||||
#include <opm/core/simulator/SimulatorTimer.hpp>
|
#include <opm/core/simulator/SimulatorTimer.hpp>
|
||||||
#include <opm/core/utility/StopWatch.hpp>
|
#include <opm/core/utility/StopWatch.hpp>
|
||||||
// 17.03.2016 Temporarily removed while moving functionality to opm-output
|
#include <opm/output/vtk/writeVtkData.hpp>
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
#include <opm/core/io/vtk/writeVtkData.hpp>
|
|
||||||
#endif
|
|
||||||
#include <opm/core/utility/miscUtilities.hpp>
|
#include <opm/core/utility/miscUtilities.hpp>
|
||||||
#include <opm/core/utility/miscUtilitiesBlackoil.hpp>
|
#include <opm/core/utility/miscUtilitiesBlackoil.hpp>
|
||||||
|
|
||||||
@ -141,8 +138,6 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 17.03.2016 Temporarily removed while moving functionality to opm-output
|
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
static void outputStateVtk(const UnstructuredGrid& grid,
|
static void outputStateVtk(const UnstructuredGrid& grid,
|
||||||
const Opm::BlackoilState& state,
|
const Opm::BlackoilState& state,
|
||||||
const int step,
|
const int step,
|
||||||
@ -171,11 +166,9 @@ namespace Opm
|
|||||||
dm["velocity"] = &cell_velocity;
|
dm["velocity"] = &cell_velocity;
|
||||||
Opm::writeVtkData(grid, dm, vtkfile);
|
Opm::writeVtkData(grid, dm, vtkfile);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// 17.03.2016 Temporarily removed while moving functionality to opm-output
|
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
static void outputStateMatlab(const UnstructuredGrid& grid,
|
static void outputStateMatlab(const UnstructuredGrid& grid,
|
||||||
const Opm::BlackoilState& state,
|
const Opm::BlackoilState& state,
|
||||||
const int step,
|
const int step,
|
||||||
@ -210,7 +203,7 @@ namespace Opm
|
|||||||
std::copy(d.begin(), d.end(), std::ostream_iterator<double>(file, "\n"));
|
std::copy(d.begin(), d.end(), std::ostream_iterator<double>(file, "\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
static void outputWaterCut(const Opm::Watercut& watercut,
|
static void outputWaterCut(const Opm::Watercut& watercut,
|
||||||
@ -357,13 +350,9 @@ namespace Opm
|
|||||||
timer.report(std::cout);
|
timer.report(std::cout);
|
||||||
if (output_ && (timer.currentStepNum() % output_interval_ == 0)) {
|
if (output_ && (timer.currentStepNum() % output_interval_ == 0)) {
|
||||||
if (output_vtk_) {
|
if (output_vtk_) {
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
outputStateVtk(grid_, state, timer.currentStepNum(), output_dir_);
|
outputStateVtk(grid_, state, timer.currentStepNum(), output_dir_);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
outputStateMatlab(grid_, state, timer.currentStepNum(), output_dir_);
|
outputStateMatlab(grid_, state, timer.currentStepNum(), output_dir_);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SimulatorReport sreport;
|
SimulatorReport sreport;
|
||||||
@ -528,13 +517,9 @@ namespace Opm
|
|||||||
|
|
||||||
if (output_) {
|
if (output_) {
|
||||||
if (output_vtk_) {
|
if (output_vtk_) {
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
outputStateVtk(grid_, state, timer.currentStepNum(), output_dir_);
|
outputStateVtk(grid_, state, timer.currentStepNum(), output_dir_);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
outputStateMatlab(grid_, state, timer.currentStepNum(), output_dir_);
|
outputStateMatlab(grid_, state, timer.currentStepNum(), output_dir_);
|
||||||
#endif
|
|
||||||
outputWaterCut(watercut, output_dir_);
|
outputWaterCut(watercut, output_dir_);
|
||||||
if (wells_) {
|
if (wells_) {
|
||||||
outputWellReport(wellreport, output_dir_);
|
outputWellReport(wellreport, output_dir_);
|
||||||
|
@ -35,10 +35,7 @@
|
|||||||
#include <opm/core/simulator/SimulatorReport.hpp>
|
#include <opm/core/simulator/SimulatorReport.hpp>
|
||||||
#include <opm/core/simulator/SimulatorTimer.hpp>
|
#include <opm/core/simulator/SimulatorTimer.hpp>
|
||||||
#include <opm/core/utility/StopWatch.hpp>
|
#include <opm/core/utility/StopWatch.hpp>
|
||||||
// 17.03.2016 Temporarily removed while moving functionality to opm-output
|
#include <opm/output/vtk/writeVtkData.hpp>
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
#include <opm/core/io/vtk/writeVtkData.hpp>
|
|
||||||
#endif
|
|
||||||
#include <opm/core/utility/miscUtilities.hpp>
|
#include <opm/core/utility/miscUtilities.hpp>
|
||||||
#include <opm/core/utility/Event.hpp>
|
#include <opm/core/utility/Event.hpp>
|
||||||
|
|
||||||
@ -184,7 +181,6 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
// 17.03.2016 Temporarily removed while moving functionality to opm-output
|
// 17.03.2016 Temporarily removed while moving functionality to opm-output
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
static void outputStateVtk(const UnstructuredGrid& grid,
|
static void outputStateVtk(const UnstructuredGrid& grid,
|
||||||
const Opm::TwophaseState& state,
|
const Opm::TwophaseState& state,
|
||||||
const int step,
|
const int step,
|
||||||
@ -213,7 +209,8 @@ namespace Opm
|
|||||||
dm["velocity"] = &cell_velocity;
|
dm["velocity"] = &cell_velocity;
|
||||||
Opm::writeVtkData(grid, dm, vtkfile);
|
Opm::writeVtkData(grid, dm, vtkfile);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void outputVectorMatlab(const std::string& name,
|
static void outputVectorMatlab(const std::string& name,
|
||||||
const std::vector<int>& vec,
|
const std::vector<int>& vec,
|
||||||
const int step,
|
const int step,
|
||||||
@ -236,8 +233,6 @@ namespace Opm
|
|||||||
std::copy(vec.begin(), vec.end(), std::ostream_iterator<double>(file, "\n"));
|
std::copy(vec.begin(), vec.end(), std::ostream_iterator<double>(file, "\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 17.03.2016 Temporarily removed while moving functionality to opm-output
|
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
static void outputStateMatlab(const UnstructuredGrid& grid,
|
static void outputStateMatlab(const UnstructuredGrid& grid,
|
||||||
const Opm::TwophaseState& state,
|
const Opm::TwophaseState& state,
|
||||||
const int step,
|
const int step,
|
||||||
@ -271,7 +266,6 @@ namespace Opm
|
|||||||
std::copy(d.begin(), d.end(), std::ostream_iterator<double>(file, "\n"));
|
std::copy(d.begin(), d.end(), std::ostream_iterator<double>(file, "\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
static void outputWaterCut(const Opm::Watercut& watercut,
|
static void outputWaterCut(const Opm::Watercut& watercut,
|
||||||
@ -469,13 +463,9 @@ namespace Opm
|
|||||||
timer.report(*log_);
|
timer.report(*log_);
|
||||||
if (output_ && (timer.currentStepNum() % output_interval_ == 0)) {
|
if (output_ && (timer.currentStepNum() % output_interval_ == 0)) {
|
||||||
if (output_vtk_) {
|
if (output_vtk_) {
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
outputStateVtk(grid_, state, timer.currentStepNum(), output_dir_);
|
outputStateVtk(grid_, state, timer.currentStepNum(), output_dir_);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
outputStateMatlab(grid_, state, timer.currentStepNum(), output_dir_);
|
outputStateMatlab(grid_, state, timer.currentStepNum(), output_dir_);
|
||||||
#endif
|
|
||||||
if (use_reorder_) {
|
if (use_reorder_) {
|
||||||
// This use of dynamic_cast is not ideal, but should be safe.
|
// This use of dynamic_cast is not ideal, but should be safe.
|
||||||
outputVectorMatlab(std::string("reorder_it"),
|
outputVectorMatlab(std::string("reorder_it"),
|
||||||
@ -633,13 +623,9 @@ namespace Opm
|
|||||||
|
|
||||||
if (output_) {
|
if (output_) {
|
||||||
if (output_vtk_) {
|
if (output_vtk_) {
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
outputStateVtk(grid_, state, timer.currentStepNum(), output_dir_);
|
outputStateVtk(grid_, state, timer.currentStepNum(), output_dir_);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#ifdef DISABLE_OUTPUT
|
|
||||||
outputStateMatlab(grid_, state, timer.currentStepNum(), output_dir_);
|
outputStateMatlab(grid_, state, timer.currentStepNum(), output_dir_);
|
||||||
#endif
|
|
||||||
if (use_reorder_) {
|
if (use_reorder_) {
|
||||||
// This use of dynamic_cast is not ideal, but should be safe.
|
// This use of dynamic_cast is not ideal, but should be safe.
|
||||||
outputVectorMatlab(std::string("reorder_it"),
|
outputVectorMatlab(std::string("reorder_it"),
|
||||||
|
Loading…
Reference in New Issue
Block a user