fixed: need to pass the solution vector on instance creation

setting it in solveStep is too late as exported fields are
registered for output before
This commit is contained in:
Arne Morten Kvarving 2016-10-18 14:14:07 +02:00
parent 61098b41dc
commit d7575b0397

View File

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