[md] Constructor of MultiDomainFVAssembler only accepts rvalue argument tuples
MultiDomainFVAssembler(ProblemTuple&& problem,
GridGeometryTuple&& gridGeometry,
GridVariablesTuple&& gridVariables,
std::shared_ptr<CouplingManager> couplingManager)
The constructor of MultiDomainFVAssembler only accepts rvalue tuples for gridGeometry
and gridVariables
.
What is the rationale behind this? Can we change it to
template<class GGT, class GVT>
MultiDomainFVAssembler(ProblemTuple&& problem,
GGT&& gridGeometry,
GVT&& gridVariables,
std::shared_ptr<CouplingManager> couplingManager)
{
static_assert(std::is_same_v<std::decay_t<decltype(GGT)>, GridGeometryTuple>);
static_assert(std::is_same_v<std::decay_t<decltype(GVT)>, GridVariablesTuple>);
}
I am asking because I need to pass the same tuples also to couplingmanager
so I could reuse the tuple here.