From 461a149ac7c9be375a2b9361a8150de32c76ff34 Mon Sep 17 00:00:00 2001 From: Timo Koch <timokoch@uio.no> Date: Sat, 5 Oct 2024 02:11:31 +0200 Subject: [PATCH] [multidomain] Accept const references to solution storage for multibinary cm --- .../freeflowporenetwork/ffmassporenetwork/couplingmanager.hh | 2 +- .../ffmomentumporenetwork/couplingmanager.hh | 2 +- .../ffmasspm/couplingmanager_staggered_cctpfa.hh | 2 +- .../ffmomentumpm/couplingmanager_staggered_cctpfa.hh | 2 +- dumux/multidomain/freeflow/couplingmanager_cvfe.hh | 2 +- dumux/multidomain/freeflow/couplingmanager_staggered.hh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dumux/multidomain/boundary/freeflowporenetwork/ffmassporenetwork/couplingmanager.hh b/dumux/multidomain/boundary/freeflowporenetwork/ffmassporenetwork/couplingmanager.hh index 254152a177..62da7f7f6f 100644 --- a/dumux/multidomain/boundary/freeflowporenetwork/ffmassporenetwork/couplingmanager.hh +++ b/dumux/multidomain/boundary/freeflowporenetwork/ffmassporenetwork/couplingmanager.hh @@ -97,7 +97,7 @@ public: void init(std::shared_ptr<Problem<freeFlowMassIndex>> freeFlowMassProblem, std::shared_ptr<Problem<poreNetworkIndex>> pnmProblem, std::shared_ptr<CouplingMapper> couplingMapper, - SolutionVectorStorage& curSol) + const SolutionVectorStorage& curSol) { couplingMapper_ = couplingMapper; this->setSubProblems(std::make_tuple(freeFlowMassProblem, pnmProblem)); diff --git a/dumux/multidomain/boundary/freeflowporenetwork/ffmomentumporenetwork/couplingmanager.hh b/dumux/multidomain/boundary/freeflowporenetwork/ffmomentumporenetwork/couplingmanager.hh index c92c999e64..1e5bf4dac8 100644 --- a/dumux/multidomain/boundary/freeflowporenetwork/ffmomentumporenetwork/couplingmanager.hh +++ b/dumux/multidomain/boundary/freeflowporenetwork/ffmomentumporenetwork/couplingmanager.hh @@ -100,7 +100,7 @@ public: std::shared_ptr<Problem<poreNetworkIndex>> porousMediumProblem, GridVariablesTuple&& gridVariables, std::shared_ptr<CouplingMapper> couplingMapper, - SolutionVectorStorage& curSol) + const SolutionVectorStorage& curSol) { couplingMapper_ = couplingMapper; gridVariables_ = gridVariables; diff --git a/dumux/multidomain/boundary/freeflowporousmedium/ffmasspm/couplingmanager_staggered_cctpfa.hh b/dumux/multidomain/boundary/freeflowporousmedium/ffmasspm/couplingmanager_staggered_cctpfa.hh index 16fb3d0751..2094bf0b3b 100644 --- a/dumux/multidomain/boundary/freeflowporousmedium/ffmasspm/couplingmanager_staggered_cctpfa.hh +++ b/dumux/multidomain/boundary/freeflowporousmedium/ffmasspm/couplingmanager_staggered_cctpfa.hh @@ -104,7 +104,7 @@ public: //! Initialize the coupling manager void init(std::shared_ptr<Problem<freeFlowMassIndex>> freeFlowMassProblem, std::shared_ptr<Problem<porousMediumIndex>> darcyProblem, - SolutionVectorStorage& curSol) + const SolutionVectorStorage& curSol) { this->setSubProblems(std::make_tuple(freeFlowMassProblem, darcyProblem)); this->attachSolution(curSol); diff --git a/dumux/multidomain/boundary/freeflowporousmedium/ffmomentumpm/couplingmanager_staggered_cctpfa.hh b/dumux/multidomain/boundary/freeflowporousmedium/ffmomentumpm/couplingmanager_staggered_cctpfa.hh index 6e0c3c0cbd..2ff2736967 100644 --- a/dumux/multidomain/boundary/freeflowporousmedium/ffmomentumpm/couplingmanager_staggered_cctpfa.hh +++ b/dumux/multidomain/boundary/freeflowporousmedium/ffmomentumpm/couplingmanager_staggered_cctpfa.hh @@ -103,7 +103,7 @@ public: //! Initialize the coupling manager void init(std::shared_ptr<Problem<freeFlowMomentumIndex>> freeFlowMomentumProblem, std::shared_ptr<Problem<porousMediumIndex>> porousMediumProblem, - SolutionVectorStorage& curSol) + const SolutionVectorStorage& curSol) { this->setSubProblems(std::make_tuple(freeFlowMomentumProblem, porousMediumProblem)); this->attachSolution(curSol); diff --git a/dumux/multidomain/freeflow/couplingmanager_cvfe.hh b/dumux/multidomain/freeflow/couplingmanager_cvfe.hh index 3084232588..59c6516ca9 100644 --- a/dumux/multidomain/freeflow/couplingmanager_cvfe.hh +++ b/dumux/multidomain/freeflow/couplingmanager_cvfe.hh @@ -146,7 +146,7 @@ public: void init(std::shared_ptr<Problem<freeFlowMomentumIndex>> momentumProblem, std::shared_ptr<Problem<freeFlowMassIndex>> massProblem, GridVariablesTuple&& gridVariables, - typename ParentType::SolutionVectorStorage& curSol) + const typename ParentType::SolutionVectorStorage& curSol) { this->setSubProblems(std::make_tuple(momentumProblem, massProblem)); gridVariables_ = gridVariables; diff --git a/dumux/multidomain/freeflow/couplingmanager_staggered.hh b/dumux/multidomain/freeflow/couplingmanager_staggered.hh index 62a73a382c..d80e34c868 100644 --- a/dumux/multidomain/freeflow/couplingmanager_staggered.hh +++ b/dumux/multidomain/freeflow/couplingmanager_staggered.hh @@ -139,7 +139,7 @@ public: void init(std::shared_ptr<Problem<freeFlowMomentumIndex>> momentumProblem, std::shared_ptr<Problem<freeFlowMassIndex>> massProblem, GridVariablesTuple&& gridVariables, - typename ParentType::SolutionVectorStorage& curSol) + const typename ParentType::SolutionVectorStorage& curSol) { this->setSubProblems(std::make_tuple(momentumProblem, massProblem)); gridVariables_ = gridVariables; -- GitLab