diff --git a/dumux/multidomain/fvassembler.hh b/dumux/multidomain/fvassembler.hh index d11bebbef141c2508a646a91e036373cad3f1f23..1ef43029a5e94ac9b6c8d10787955c34adf0d6e6 100644 --- a/dumux/multidomain/fvassembler.hh +++ b/dumux/multidomain/fvassembler.hh @@ -152,6 +152,26 @@ public: std::cout << "Instantiated assembler for a stationary problem." << std::endl; } + /*! + * \brief The constructor for instationary problems + * \note this constructor is deprecated (use the one receiving the previous solution instead) + */ + [[deprecated("Please use constructor taking the previous solution instead. Will be removed after release 3.2!")]] + MultiDomainFVAssembler(ProblemTuple&& problem, + FVGridGeometryTuple&& fvGridGeometry, + GridVariablesTuple&& gridVariables, + std::shared_ptr<CouplingManager> couplingManager, + std::shared_ptr<const TimeLoop> timeLoop) + : couplingManager_(couplingManager) + , problemTuple_(problem) + , fvGridGeometryTuple_(fvGridGeometry) + , gridVariablesTuple_(gridVariables) + , timeLoop_(timeLoop) + , isStationaryProblem_(false) + { + std::cout << "Instantiated assembler for an instationary problem." << std::endl; + } + /*! * \brief The constructor for instationary problems * \note the grid variables might be temporarily changed during assembly (if caching is enabled) @@ -161,12 +181,14 @@ public: FVGridGeometryTuple&& fvGridGeometry, GridVariablesTuple&& gridVariables, std::shared_ptr<CouplingManager> couplingManager, - std::shared_ptr<const TimeLoop> timeLoop) + std::shared_ptr<const TimeLoop> timeLoop, + const SolutionVector& prevSol) : couplingManager_(couplingManager) , problemTuple_(problem) , fvGridGeometryTuple_(fvGridGeometry) , gridVariablesTuple_(gridVariables) , timeLoop_(timeLoop) + , prevSol_(&prevSol) , isStationaryProblem_(false) { std::cout << "Instantiated assembler for an instationary problem." << std::endl;