mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
BlackoilOutputWriter rewritten to use opm-output
Changes to BlackoilOutputWriter as mandated by the split and rewrite of opm-output. Notable changes: * BlackoilOutputWriter is no longer a child class of OutputWriter. * Minor interface changes; writeTimeStep requires a Wells pointer * restore requires a Wells* pointer * VTK/Matlab support rewrites; no longer inherits OutputWriter * WellStateFullyImplicitBlackoil::report added, to write its data to a opm-output understood format Relies on utility/Compat.hpp for quick conversion to the opm-output defined formats.
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include <opm/core/simulator/SimulatorReport.hpp>
|
||||
#include <opm/core/simulator/SimulatorTimer.hpp>
|
||||
#include <opm/core/utility/StopWatch.hpp>
|
||||
#include <opm/core/utility/DataMap.hpp>
|
||||
#include <opm/output/vtk/writeVtkData.hpp>
|
||||
#include <opm/core/utility/miscUtilities.hpp>
|
||||
#include <opm/core/utility/miscUtilitiesBlackoil.hpp>
|
||||
@@ -158,6 +159,7 @@ namespace Opm
|
||||
if (!vtkfile) {
|
||||
OPM_THROW(std::runtime_error, "Failed to open " << vtkfilename.str());
|
||||
}
|
||||
|
||||
Opm::DataMap dm;
|
||||
dm["saturation"] = &state.saturation();
|
||||
dm["pressure"] = &state.pressure();
|
||||
|
||||
Reference in New Issue
Block a user