mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-11 17:01:55 -06:00
parameter system: major overhaul
"runtime" parameters are gone now, as are groups. both where flawed concepts: parameters can be overwritten at runtime by definition, and a parameter that has no compile-time fallback just degrades performance and is a hassle to deal with because it has to be specified in a parameter file. The other killed feature, parameter groups, just made it harder to figure out what the correct command line argument was to change the parameter (was it --linear.solver-tolerance, --linear-solver.tolerance or --linear-solver-tolerance?) and did not provide much value otherwise. as a consequence all parameters now have compile-time defaults which allows us to remove the auto-loading of a parameter file at startup. (These files became quite obnoxious in eWoms when problems declared their independence from models.) Finally all parameters must now be registered before they can be used which allows to properly include them in the usage message.
This commit is contained in:
parent
cb5b5d4761
commit
345b78c723
@ -1,5 +1,5 @@
|
||||
EndTime = 100e3 # duration of the simulation [s]
|
||||
InitialTimeStepSize = 1000 # initial time step size [s]
|
||||
InitialTimeStepSize = 50 # initial time step size [s]
|
||||
DomainSizeX = 300 # x-coordinate of the upper-right corner of the physical domain [m]
|
||||
DomainSizeY = 60 # y-coordinate of the upper-right corner of the physical domain [m]
|
||||
CellsX = 100 # x-resolution of the grid
|
||||
|
@ -95,7 +95,7 @@ public:
|
||||
}; /*@\label{tutorial-decoupled:2p-system-end}@*/
|
||||
|
||||
SET_TYPE_PROP(TutorialProblemDecoupled, EvalCflFluxFunction, Dumux::EvalCflFluxCoats<TypeTag>); /*@\label{tutorial-decoupled:cflflux}@*/
|
||||
SET_SCALAR_PROP(TutorialProblemDecoupled, CFLFactor, 0.95); /*@\label{tutorial-decoupled:cflfactor}@*/
|
||||
SET_SCALAR_PROP(TutorialProblemDecoupled, ImpetCflFactor, 0.95); /*@\label{tutorial-decoupled:cflfactor}@*/
|
||||
|
||||
// Disable gravity
|
||||
SET_BOOL_PROP(TutorialProblemDecoupled, EnableGravity, false); /*@\label{tutorial-decoupled:gravity}@*/
|
||||
|
Loading…
Reference in New Issue
Block a user