mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
some minor cleanups
this fixes a few warnings and removes now-unnecessary function arguments.
This commit is contained in:
parent
cede806bd5
commit
ab93f58371
@ -91,6 +91,10 @@ SET_BOOL_PROP(EclFlowProblem, UseVolumetricResidual, false);
|
||||
// SWATINIT is done by the flow part of flow_ebos. this can be removed once the legacy
|
||||
// code for fluid and satfunc handling gets fully retired.
|
||||
SET_BOOL_PROP(EclFlowProblem, EnableSwatinit, false);
|
||||
|
||||
// Silence the deprecation warnings about the SimulatorParameter mechanism. This needs to
|
||||
// be removed once the SimulatorParameter mechanism bites the dust!
|
||||
SET_TYPE_PROP(EclFlowProblem, SimulatorParameter, Ewoms::EmptySimulationParameters);
|
||||
}}
|
||||
|
||||
namespace Opm {
|
||||
|
@ -93,19 +93,17 @@ namespace Opm
|
||||
/// simulator classes, based on user command-line input. The
|
||||
/// content of this function used to be in the main() function of
|
||||
/// flow.cpp.
|
||||
int execute(int argc, char** argv,
|
||||
std::shared_ptr<Opm::Deck> deck = std::shared_ptr<Opm::Deck>(),
|
||||
std::shared_ptr<Opm::EclipseState> eclipseState = std::shared_ptr<Opm::EclipseState>() )
|
||||
int execute(int argc, char** argv)
|
||||
{
|
||||
try {
|
||||
setupParallelism(argc, argv);
|
||||
setupParallelism();
|
||||
printStartupMessage();
|
||||
const bool ok = setupParameters(argc, argv);
|
||||
if (!ok) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
setupEbosSimulator( deck, eclipseState );
|
||||
setupEbosSimulator();
|
||||
setupOutput();
|
||||
setupLogging();
|
||||
printPRTHeader();
|
||||
@ -145,7 +143,7 @@ namespace Opm
|
||||
}
|
||||
|
||||
protected:
|
||||
void setupParallelism(int argc, char** argv)
|
||||
void setupParallelism()
|
||||
{
|
||||
// determine the rank of the current process and the number of processes
|
||||
// involved in the simulation. MPI must have already been initialized here.
|
||||
@ -410,7 +408,7 @@ namespace Opm
|
||||
detail::ParallelFileMerger(output_path, deck_filename.stem().string()));
|
||||
}
|
||||
|
||||
void setupEbosSimulator( std::shared_ptr<Opm::Deck>& dck, std::shared_ptr<Opm::EclipseState>& eclipseState)
|
||||
void setupEbosSimulator()
|
||||
{
|
||||
std::string progName("flow_ebos");
|
||||
std::string deckFile("--ecl-deck-file-name=");
|
||||
|
@ -455,7 +455,7 @@ public:
|
||||
{ return ebosSimulator_.gridManager().grid(); }
|
||||
|
||||
protected:
|
||||
void handleAdditionalWellInflow(SimulatorTimer& timer,
|
||||
void handleAdditionalWellInflow(SimulatorTimer& /*timer*/,
|
||||
WellsManager& /* wells_manager */,
|
||||
WellState& /* well_state */,
|
||||
const Wells* /* wells */)
|
||||
|
Loading…
Reference in New Issue
Block a user