Skip to content
Snippets Groups Projects
Commit c43cb82a authored by Timo Koch's avatar Timo Koch
Browse files

[md][ff-pm] Expose solution vector storage for use in meta-coupling manager

parent f0d13ca7
No related branches found
No related tags found
1 merge request!2826[md][ff-pm] Add freeflow porous medium coupling managers and test
......@@ -48,9 +48,14 @@ template<class Traits>
class StaggeredFreeFlowCouplingManager
: public CouplingManager<Traits>
{
using ParentType = CouplingManager<Traits>;
public:
static constexpr auto freeFlowMomentumIndex = typename Traits::template SubDomain<0>::Index();
static constexpr auto freeFlowMassIndex = typename Traits::template SubDomain<1>::Index();
// this can be used if the coupling manager is used inside a meta-coupling manager (e.g. multi-binary)
// to manager the solution vector storage outside this class
using SolutionVectorStorage = typename ParentType::SolutionVectorStorage;
private:
template<std::size_t id> using SubDomainTypeTag = typename Traits::template SubDomain<id>::TypeTag;
template<std::size_t id> using PrimaryVariables = GetPropType<SubDomainTypeTag<id>, Properties::PrimaryVariables>;
......@@ -69,8 +74,6 @@ private:
using Scalar = typename Traits::Scalar;
using SolutionVector = typename Traits::SolutionVector;
using ParentType = CouplingManager<Traits>;
using CouplingStencilType = std::vector<std::size_t>;
using GridVariablesTuple = typename Traits::template TupleOfSharedPtr<GridVariables>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment