mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-16 20:24:48 -06:00
Merge pull request #724 from jokva/eclipse-writer-nnc-constructor
Pass NNC to OutputWriter constructor
This commit is contained in:
commit
d6b3650160
@ -240,8 +240,8 @@ try
|
||||
<< std::flush;
|
||||
|
||||
Opm::BlackoilOutputWriter
|
||||
outputWriter(cGrid, param, eclipseState, pu,
|
||||
new_props->permeability());
|
||||
outputWriter(cGrid, param, eclipseState, Opm::NNC(), pu,
|
||||
new_props->permeability() );
|
||||
|
||||
SimulatorReport fullReport;
|
||||
// Create and run simulator.
|
||||
|
@ -655,6 +655,7 @@ namespace Opm
|
||||
output_writer_.reset(new BlackoilOutputWriter(grid_init_->grid(),
|
||||
param_,
|
||||
eclipse_state_,
|
||||
geoprops_->nonCartesianConnections(),
|
||||
Opm::phaseUsageFromDeck(deck_),
|
||||
fluidprops_->permeability()));
|
||||
}
|
||||
@ -740,7 +741,7 @@ namespace Opm
|
||||
fullReport.reportParam(tot_os);
|
||||
}
|
||||
} else {
|
||||
output_writer_->writeInit( geoprops_->nonCartesianConnections() );
|
||||
output_writer_->writeInit();
|
||||
if (output_cout_) {
|
||||
std::cout << "\n\n================ Simulation turned off ===============\n" << std::flush;
|
||||
}
|
||||
|
@ -109,8 +109,7 @@ namespace Opm
|
||||
adaptiveTimeStepping.reset( new AdaptiveTimeStepping( param_, terminal_output_ ) );
|
||||
}
|
||||
|
||||
// init output writer
|
||||
output_writer_.writeInit( geo_.nonCartesianConnections() );
|
||||
output_writer_.writeInit();
|
||||
|
||||
std::string restorefilename = param_.getDefault("restorefile", std::string("") );
|
||||
if( ! restorefilename.empty() )
|
||||
|
@ -73,7 +73,7 @@ namespace Opm
|
||||
}
|
||||
|
||||
// init output writer
|
||||
output_writer_.writeInit( geo_.nonCartesianConnections());
|
||||
output_writer_.writeInit();
|
||||
|
||||
std::string restorefilename = param_.getDefault("restorefile", std::string("") );
|
||||
if( ! restorefilename.empty() )
|
||||
|
@ -247,10 +247,10 @@ namespace Opm
|
||||
|
||||
void
|
||||
BlackoilOutputWriter::
|
||||
writeInit(const NNC& nnc)
|
||||
writeInit()
|
||||
{
|
||||
if( eclWriter_ ) {
|
||||
eclWriter_->writeInit( nnc );
|
||||
eclWriter_->writeInit();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -210,11 +210,12 @@ namespace Opm
|
||||
BlackoilOutputWriter(const Grid& grid,
|
||||
const parameter::ParameterGroup& param,
|
||||
Opm::EclipseStateConstPtr eclipseState,
|
||||
const NNC&,
|
||||
const Opm::PhaseUsage &phaseUsage,
|
||||
const double* permeability );
|
||||
|
||||
/** \copydoc Opm::OutputWriter::writeInit */
|
||||
void writeInit(const NNC& non_cartesian_connections);
|
||||
void writeInit();
|
||||
|
||||
/** \copydoc Opm::OutputWriter::writeTimeStep */
|
||||
void writeTimeStep(const SimulatorTimerInterface& timer,
|
||||
@ -282,6 +283,7 @@ namespace Opm
|
||||
BlackoilOutputWriter(const Grid& grid,
|
||||
const parameter::ParameterGroup& param,
|
||||
Opm::EclipseStateConstPtr eclipseState,
|
||||
const NNC& nnc,
|
||||
const Opm::PhaseUsage &phaseUsage,
|
||||
const double* permeability )
|
||||
: output_( param.getDefault("output", true) ),
|
||||
@ -299,7 +301,8 @@ namespace Opm
|
||||
param.getDefault("output_ecl", true) ?
|
||||
new EclipseWriter(eclipseState,
|
||||
parallelOutput_->numCells(),
|
||||
parallelOutput_->globalCell() )
|
||||
parallelOutput_->globalCell(),
|
||||
nnc )
|
||||
: 0 ),
|
||||
eclipseState_(eclipseState),
|
||||
asyncOutput_()
|
||||
|
Loading…
Reference in New Issue
Block a user