rework the model and problem initialization procedure

basically the init() method was split into a finishInit() method which
fills the data structures allocated in the constructor with meaningful
data and into applyInitialSolution() which does just that (and no
more!)
This commit is contained in:
Andreas Lauser 2014-07-11 20:01:54 +02:00
parent be54eee3c2
commit f6fc258b70

View File

@ -194,7 +194,6 @@ public:
: ParentType(simulator)
{
eps_ = 3e-6;
FluidSystem::init();
temperature_ = 273.15 + 20; // -> 20°C
}
@ -223,10 +222,13 @@ public:
}
/*!
* \copydoc VcfvProblem::init
* \copydoc FvBaseProblem::finishInit()
*/
void init()
void finishInit()
{
ParentType::finishInit();
FluidSystem::init();
// parameters for the Van Genuchten law of the main imbibition
// and the main drainage curves.
@ -254,8 +256,6 @@ public:
K_ = this->toDimMatrix_(4.6e-10);
setupInitialFluidState_();
ParentType::init();
}
/*!