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

[fvassembler] add constructor for instationary problems

parent 78b57faf
......@@ -89,6 +89,22 @@ public:
static_assert(isImplicit, "Explicit assembler for stationary problem doesn't make sense!");
}
/*!
* \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!")]]
FVAssembler(std::shared_ptr<const Problem> problem,
std::shared_ptr<const FVGridGeometry> fvGridGeometry,
std::shared_ptr<GridVariables> gridVariables,
std::shared_ptr<const TimeLoop> timeLoop)
: problem_(problem)
, fvGridGeometry_(fvGridGeometry)
, gridVariables_(gridVariables)
, timeLoop_(timeLoop)
, isStationaryProblem_(!timeLoop)
{}
/*!
* \brief The constructor for instationary problems
* \note the grid variables might be temporarily changed during assembly (if caching is enabled)
......@@ -97,11 +113,13 @@ public:
FVAssembler(std::shared_ptr<const Problem> problem,
std::shared_ptr<const FVGridGeometry> fvGridGeometry,
std::shared_ptr<GridVariables> gridVariables,
std::shared_ptr<const TimeLoop> timeLoop)
std::shared_ptr<const TimeLoop> timeLoop,
const SolutionVector& prevSol)
: problem_(problem)
, fvGridGeometry_(fvGridGeometry)
, gridVariables_(gridVariables)
, timeLoop_(timeLoop)
, prevSol_(&prevSol)
, isStationaryProblem_(!timeLoop)
{}
......
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