From e4aea23e6aa5eed184cb6492b70313f8d55c4155 Mon Sep 17 00:00:00 2001 From: Christoph Grueninger <christoph.grueninger@iws.uni-stuttgart.de> Date: Mon, 10 Feb 2014 13:26:10 +0000 Subject: [PATCH] [decoupled] Reduce number of unused variables. Remove one unused variable. Mark other variables as unused. (reviewed by faigle) git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@12440 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- .../diffusion/fvmpfa/lmethod/fvmpfal3dpressure2padaptive.hh | 4 ++-- .../diffusion/fvmpfa/lmethod/fvmpfal3dpressurevelocity2p.hh | 2 +- .../fvmpfa/lmethod/fvmpfal3dpressurevelocity2padaptive.hh | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressure2padaptive.hh b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressure2padaptive.hh index a866c2d17b..053de2140a 100644 --- a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressure2padaptive.hh +++ b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressure2padaptive.hh @@ -497,8 +497,8 @@ void FvMpfaL3dPressure2pAdaptive<TypeTag>::assembleHangingNodeInteractionVolume( Scalar volume4 = elementPointer4->geometry().volume(); Scalar volume5 = elementPointer5->geometry().volume(); Scalar volume6 = elementPointer6->geometry().volume(); - Scalar volume7 = elementPointer7->geometry().volume(); - Scalar volume8 = elementPointer8->geometry().volume(); + Scalar volume7 DUNE_UNUSED = elementPointer7->geometry().volume(); + Scalar volume8 DUNE_UNUSED = elementPointer8->geometry().volume(); // cell index int globalIdx1 = problem_.variables().index(*elementPointer1); diff --git a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressurevelocity2p.hh b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressurevelocity2p.hh index 54470c2e01..a2d52cf8a7 100644 --- a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressurevelocity2p.hh +++ b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressurevelocity2p.hh @@ -308,7 +308,7 @@ void FvMpfaL3dPressureVelocity2p<TypeTag>::calculateVelocity(const Intersection& ElementPointer elementPtrI = intersection.inside(); ElementPointer elementPtrJ = intersection.outside(); - int globalIdxI = problem_.variables().index(*elementPtrI); + int globalIdxI DUNE_UNUSED = problem_.variables().index(*elementPtrI); int globalIdxJ = problem_.variables().index(*elementPtrJ); CellData& cellDataJ = problem_.variables().cellData(globalIdxJ); diff --git a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressurevelocity2padaptive.hh b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressurevelocity2padaptive.hh index de382c7400..a356ba95de 100644 --- a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressurevelocity2padaptive.hh +++ b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal3dpressurevelocity2padaptive.hh @@ -312,8 +312,6 @@ void FvMpfaL3dPressureVelocity2pAdaptive<TypeTag>::calculateVelocity() template<class TypeTag> void FvMpfaL3dPressureVelocity2pAdaptive<TypeTag>::calculateVelocity(const Intersection& intersection, CellData& cellData) { - int numVertices = intersection.geometry().corners(); - ElementPointer elementPtrI = intersection.inside(); ElementPointer elementPtrJ = intersection.outside(); -- GitLab