Commit 6f68a7b0 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[md][fvassembler] add constructor for instationary problems

parent cc05bae1
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment