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:
Andreas Lauser 2012-09-19 19:45:41 +02:00
parent cb5b5d4761
commit 345b78c723
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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}@*/