/root/tmp/opm-core-release-2015.10-final/opm/core/io/OutputWriter.hpp

Interface for writing non-compositional (blackoil, two-phase) simulation state to files.

Use the create() function to setup a chain of writer based on the configuration values, e.g.

ParameterGroup params (argc, argv, false);
auto parser = std::make_shared <const Deck> (
params.get <string> ("deck_filename"));
std::unique_ptr <OutputWriter> writer =
OutputWriter::create (params, parser);
// before the first timestep
writer->writeInit (timer);
// after each timestep
writer->writeTimeStep (timer, state, wellState);