From 754a1f3fbea9b4893a904f18911b1809bfce95d7 Mon Sep 17 00:00:00 2001 From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de> Date: Tue, 30 Jan 2018 16:50:47 +0100 Subject: [PATCH] [mpfa][ivdatahandle] ensure compatibility with tracer model --- .../cellcentered/mpfa/interactionvolumedatahandle.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dumux/discretization/cellcentered/mpfa/interactionvolumedatahandle.hh b/dumux/discretization/cellcentered/mpfa/interactionvolumedatahandle.hh index 7a41428485..025154b7f9 100644 --- a/dumux/discretization/cellcentered/mpfa/interactionvolumedatahandle.hh +++ b/dumux/discretization/cellcentered/mpfa/interactionvolumedatahandle.hh @@ -203,7 +203,8 @@ public: { for (unsigned int cIdx = 0; cIdx < numComponents; ++cIdx) { - if (pIdx == cIdx) + using FluidSystem = typename GET_PROP_TYPE(TypeTag, FluidSystem); + if (cIdx == FluidSystem::getMainComponent(pIdx)) continue; // resize transmissibility matrix & mole fraction vector -- GitLab