mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Capture some variables in FlowMainEbos.
Make Opm::FlowMainEbos capture the variables argc, argv, outputCout, and outputFiles. Passing the variables to the constructor and saving them as class variables in Opm::FlowMainEbos makes the implementation of the Python interface simpler. For example, the step_init() method does not need to ask Opm::Main about the values of the variables when it needs to run execute() in FlowMainEbos. Another advantage of this refactoring could be that less variables needs to be passed around from Opm::Main, to flow_ebos_xxx.cpp, and then again to FlowMainEbos.
This commit is contained in:
1 parent
8158e64351
commit
f9d47b7c68
12 files changed
+70
-52
No files matched your search
@@ -62,8 +62,9 @@ int flowEbosEnergyMain(int argc, char** argv, bool outputCout, bool outputFiles)
|
||||
Dune::MPIHelper::instance(argc, argv).rank();
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowEnergyProblem)> mainfunc;
|
||||
return mainfunc.execute(argc, argv, outputCout, outputFiles);
|
||||
Opm::FlowMainEbos<TTAG(EclFlowEnergyProblem)>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user