use finishInit() properly for all problems

this means that all code which could potentially throw an exception is
moved to this method(). (In particular FluidSystem::init() proved
troublesome in the past.) Besides avoiding segmentation the faults
which stem from exceptions thrown in constructors, this also has the
advantage that simulations which spend a noticable amount of time to
initialize stop at the "correct" place, i.e. after the "Finish init of
the problem" message was printed by the simulator...
This commit is contained in:
Andreas Lauser
2014-08-06 16:31:48 +02:00
parent 344d613280
commit 6e478f6f18

View File

@@ -216,8 +216,11 @@ public:
EclProblem(Simulator &simulator)
: ParentType(simulator)
, wellManager_(simulator)
{}
{ }
/*!
* \copydoc FvBaseProblem::finishInit
*/
void finishInit()
{
ParentType::finishInit();