diff --git a/Apps/Common/SIMSolverAdap.h b/Apps/Common/SIMSolverAdap.h index b38680b9..69152a6a 100644 --- a/Apps/Common/SIMSolverAdap.h +++ b/Apps/Common/SIMSolverAdap.h @@ -28,7 +28,11 @@ template class SIMSolverAdap : public SIMSolver { public: //! \brief The constructor forwards to the parent class constructor. - SIMSolverAdap(T1& s1) : SIMSolver(s1), aSim(s1,false) {} + SIMSolverAdap(T1& s1) : SIMSolver(s1), aSim(s1,false) + { + this->S1.setSol(&aSim.getSolution()); + } + //! \brief Empty destructor. virtual ~SIMSolverAdap() {} @@ -39,7 +43,6 @@ public: if (exporter) exporter->setNormPrefixes(aSim.getNormPrefixes()); - this->S1.setSol(&aSim.getSolution()); aSim.setupProjections(); aSim.initAdaptor(0,2);