mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-12 01:11:55 -06:00
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:
parent
be54eee3c2
commit
f6fc258b70
@ -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();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user