From b8284fea9cf7cb7f774660f0e0f23e0dfe1a7da2 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 4 Apr 2024 13:31:57 +0200 Subject: [PATCH] adjust to Parameters::hideParam change --- .../flow/BlackoilModelParameters.hpp | 2 +- opm/simulators/flow/FlowBaseVanguard.hpp | 4 +- opm/simulators/flow/FlowMain.hpp | 112 +++++++++--------- opm/simulators/flow/FlowProblem.hpp | 4 +- .../flow/SimulatorFullyImplicitBlackoil.hpp | 4 +- 5 files changed, 63 insertions(+), 63 deletions(-) diff --git a/opm/simulators/flow/BlackoilModelParameters.hpp b/opm/simulators/flow/BlackoilModelParameters.hpp index 8f3f4f2f9..6f3408cc9 100644 --- a/opm/simulators/flow/BlackoilModelParameters.hpp +++ b/opm/simulators/flow/BlackoilModelParameters.hpp @@ -800,7 +800,7 @@ namespace Opm Parameters::registerParam ("Whether or not to emit cell partitions as a debugging aid."); - Parameters::hideParam("DebugEmitCellPartition"); + Parameters::hideParam(); } }; } // namespace Opm diff --git a/opm/simulators/flow/FlowBaseVanguard.hpp b/opm/simulators/flow/FlowBaseVanguard.hpp index 91c2a2713..e8e66762f 100644 --- a/opm/simulators/flow/FlowBaseVanguard.hpp +++ b/opm/simulators/flow/FlowBaseVanguard.hpp @@ -278,13 +278,13 @@ public: "from a JSON file by giving the filename here, ending with '.json.' " "See https://sandialabs.github.io/Zoltan/ug_html/ug.html " "for available Zoltan options."); - Parameters::hideParam("ZoltanParams"); + Parameters::hideParam(); Parameters::registerParam ("Name of file from which to load an externally generated " "partitioning of the model's active cells for MPI " "distribution purposes. If empty, the built-in partitioning " "method will be employed."); - Parameters::hideParam("ExternalPartition"); + Parameters::hideParam(); #endif Parameters::registerParam ("Allow the perforations of a well to be distributed to interior of multiple processes"); diff --git a/opm/simulators/flow/FlowMain.hpp b/opm/simulators/flow/FlowMain.hpp index 15617e22b..6bb256cf4 100644 --- a/opm/simulators/flow/FlowMain.hpp +++ b/opm/simulators/flow/FlowMain.hpp @@ -128,83 +128,83 @@ namespace Opm { registerAllParameters_(/*finalizeRegistration=*/false); // hide the parameters unused by flow. TODO: this is a pain to maintain - Parameters::hideParam("EnableGravity"); - Parameters::hideParam("EnableGridAdaptation"); + Parameters::hideParam(); + Parameters::hideParam(); // this parameter is actually used in eWoms, but the flow well model // hard-codes the assumption that the intensive quantities cache is enabled, // so flow crashes. Let's hide the parameter for that reason. - Parameters::hideParam("EnableIntensiveQuantityCache"); + Parameters::hideParam(); // thermodynamic hints are not implemented/required by the eWoms blackoil // model - Parameters::hideParam("EnableThermodynamicHints"); + Parameters::hideParam(); // in flow only the deck file determines the end time of the simulation - Parameters::hideParam("EndTime"); + Parameters::hideParam(); // time stepping is not done by the eWoms code in flow - Parameters::hideParam("InitialTimeStepSize"); - Parameters::hideParam("MaxTimeStepDivisions"); - Parameters::hideParam("MaxTimeStepSize"); - Parameters::hideParam("MinTimeStepSize"); - Parameters::hideParam("PredeterminedTimeStepsFile"); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); // flow also does not use the eWoms Newton method - Parameters::hideParam("NewtonMaxError"); - Parameters::hideParam("NewtonTolerance"); - Parameters::hideParam("NewtonTargetIterations"); - Parameters::hideParam("NewtonVerbose"); - Parameters::hideParam("NewtonWriteConvergence"); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); // the default eWoms checkpoint/restart mechanism does not work with flow - Parameters::hideParam("RestartTime"); - Parameters::hideParam("RestartWritingInterval"); + Parameters::hideParam(); + Parameters::hideParam(); // hide all vtk related it is not currently possible to do this dependet on if the vtk writing is used //if(not(EWOMS_GET_PARAM(TypeTag,bool,EnableVtkOutput))){ - Parameters::hideParam("VtkWriteOilFormationVolumeFactor"); - Parameters::hideParam("VtkWriteOilSaturationPressure"); - Parameters::hideParam("VtkWriteOilVaporizationFactor"); - Parameters::hideParam("VtkWritePorosity"); - Parameters::hideParam("VtkWritePotentialGradients"); - Parameters::hideParam("VtkWritePressures"); - Parameters::hideParam("VtkWritePrimaryVars"); - Parameters::hideParam("VtkWritePrimaryVarsMeaning"); - Parameters::hideParam("VtkWriteProcessRank"); - Parameters::hideParam("VtkWriteRelativePermeabilities"); - Parameters::hideParam("VtkWriteSaturatedGasOilVaporizationFactor"); - Parameters::hideParam("VtkWriteSaturatedOilGasDissolutionFactor"); - Parameters::hideParam("VtkWriteSaturationRatios"); - Parameters::hideParam("VtkWriteSaturations"); - Parameters::hideParam("VtkWriteTemperature"); - Parameters::hideParam("VtkWriteViscosities"); - Parameters::hideParam("VtkWriteWaterFormationVolumeFactor"); - Parameters::hideParam("VtkWriteGasDissolutionFactor"); - Parameters::hideParam("VtkWriteGasFormationVolumeFactor"); - Parameters::hideParam("VtkWriteGasSaturationPressure"); - Parameters::hideParam("VtkWriteIntrinsicPermeabilities"); - Parameters::hideParam("VtkWriteTracerConcentration"); - Parameters::hideParam("VtkWriteExtrusionFactor"); - Parameters::hideParam("VtkWriteFilterVelocities"); - Parameters::hideParam("VtkWriteDensities"); - Parameters::hideParam("VtkWriteDofIndex"); - Parameters::hideParam("VtkWriteMobilities"); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); //} - Parameters::hideParam("VtkWriteAverageMolarMasses"); - Parameters::hideParam("VtkWriteFugacities"); - Parameters::hideParam("VtkWriteFugacityCoeffs"); - Parameters::hideParam("VtkWriteMassFractions"); - Parameters::hideParam("VtkWriteMolarities"); - Parameters::hideParam("VtkWriteMoleFractions"); - Parameters::hideParam("VtkWriteTotalMassFractions"); - Parameters::hideParam("VtkWriteTotalMoleFractions"); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); - Parameters::hideParam("VtkWriteTortuosities"); - Parameters::hideParam("VtkWriteDiffusionCoefficients"); - Parameters::hideParam("VtkWriteEffectiveDiffusionCoefficients"); + Parameters::hideParam(); + Parameters::hideParam(); + Parameters::hideParam(); // hide average density option - Parameters::hideParam("UseAverageDensityMsWells"); + Parameters::hideParam(); Parameters::endParamRegistration(); diff --git a/opm/simulators/flow/FlowProblem.hpp b/opm/simulators/flow/FlowProblem.hpp index 8b0ba5a2c..c28200906 100644 --- a/opm/simulators/flow/FlowProblem.hpp +++ b/opm/simulators/flow/FlowProblem.hpp @@ -238,10 +238,10 @@ public: "Valid values are: none, log, all (default)"); Parameters::registerParam ("Number of pressure points (in each direction) in tables used for equilibration"); - Parameters::hideParam("NumPressurePointsEquil"); // Users will typically not need to modify this parameter.. + Parameters::hideParam(); // Users will typically not need to modify this parameter.. Parameters::registerParam ("Use pressure from end of the last time step when evaluating rock compaction"); - Parameters::hideParam("ExplicitRockCompaction"); // Users will typically not need to modify this parameter.. + Parameters::hideParam(); // Users will typically not need to modify this parameter.. } diff --git a/opm/simulators/flow/SimulatorFullyImplicitBlackoil.hpp b/opm/simulators/flow/SimulatorFullyImplicitBlackoil.hpp index c271a781b..b3d2db07d 100644 --- a/opm/simulators/flow/SimulatorFullyImplicitBlackoil.hpp +++ b/opm/simulators/flow/SimulatorFullyImplicitBlackoil.hpp @@ -246,11 +246,11 @@ public: Parameters::registerParam ("FileName for .OPMRST file used for saving serialized state. " "If empty, CASENAME.OPMRST is used."); - Parameters::hideParam("SaveFile"); + Parameters::hideParam(); Parameters::registerParam ("FileName for .OPMRST file used to load serialized state. " "If empty, CASENAME.OPMRST is used."); - Parameters::hideParam("LoadFile"); + Parameters::hideParam(); } /// Run the simulation.