ECLFluxCalc: Remove Unused 'useEPS' Constructor Parameter

Recent developments have rendered this parameter unused.  Remove
it to make API simpler.  The library now always loads arrays as
if the caller requests end-point scaling behaviour and we defer
effects of actual end-point scaling until client code queries
the flux calculator at run time.
This commit is contained in:
Bård Skaflestad
2018-12-18 11:27:25 +01:00
parent a9c7773ef7
commit 6839c1cf77
3 changed files with 3 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ namespace RigFlowDiagInterfaceTools {
{
auto satfunc = Opm::ECLSaturationFunc(G, init);
Opm::ECLFluxCalc calc(G, init, 9.80665, true);
Opm::ECLFluxCalc calc(G, init, 9.80665);
auto getFlux = [&calc, &rstrt]
(const Opm::ECLPhaseIndex p)

View File

@@ -185,8 +185,7 @@ namespace Opm
ECLFluxCalc::ECLFluxCalc(const ECLGraph& graph,
const ECLInitFileData& init,
const double grav,
const bool /* useEPS */)
const double grav)
: graph_(graph)
, satfunc_(graph, init)
, rmap_(pvtnumVector(graph, init))

View File

@@ -56,8 +56,7 @@ namespace Opm
/// result set.
ECLFluxCalc(const ECLGraph& graph,
const ECLInitFileData& init,
const double grav,
const bool useEPS);
const double grav);
/// Retrive phase flux on all connections defined by \code
/// graph.neighbours() \endcode.