From be2bdfdf214db73c65f0f97e707d5c674d85c26d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?=
 <christoph.grueninger@iws.uni-stuttgart.de>
Date: Wed, 13 Apr 2016 11:28:48 +0200
Subject: [PATCH] [cleanup] Improve FV3dPressure2P2CAdaptive

* Remove return at end of void method
* Remove unused variables
---
 .../2p2c/sequential/fv3dpressureadaptive.hh          | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/dumux/porousmediumflow/2p2c/sequential/fv3dpressureadaptive.hh b/dumux/porousmediumflow/2p2c/sequential/fv3dpressureadaptive.hh
index a17e52230f..bb3c76aad9 100644
--- a/dumux/porousmediumflow/2p2c/sequential/fv3dpressureadaptive.hh
+++ b/dumux/porousmediumflow/2p2c/sequential/fv3dpressureadaptive.hh
@@ -404,13 +404,8 @@ void FV3dPressure2P2CAdaptive<TypeTag>::initializeMatrixRowSize()
                     // if mpfa is used, more entries might be needed if all interactionRegions are regarded
                     if (intersection.outside().level() > element.level()) //look from larger cell
                     {
-                        auto outerCorner = intersection.inside().template subEntity<dim>(0); //initialize with rubbish
-                        // prepare additional pointer to cells
-                        auto additional2 = intersection.inside(); //initialize with something wrong!
-                        auto additional3 = intersection.inside();
-
                         // Prepare MPFA
-                        /** get geometric Info, transmissibility matrix */
+                        /* get geometric Info, transmissibility matrix */
                         GlobalPosition globalPos3(0.);
                         int eIdxGlobal3=-1;
                         GlobalPosition globalPos4(0.);
@@ -565,7 +560,6 @@ void FV3dPressure2P2CAdaptive<TypeTag>::initializeMatrixRowSize()
             }
         } //end second loop
     }
-    return;
 }
 
 //!Determine position of matrix entries
@@ -633,7 +627,6 @@ void FV3dPressure2P2CAdaptive<TypeTag>::initializeMatrixIndices()
             }
         }
     }
-    return;
 }
 
 //! \copydoc FV2dPressure2P2CAdaptive::assemble()
@@ -770,8 +763,6 @@ void FV3dPressure2P2CAdaptive<TypeTag>::assemble(bool first)
             this->f_[eIdxGlobalI] = this->pressure()[eIdxGlobalI];
         }
     } // end grid traversal
-
-    return;
 }
 
 //! Compute flux through an irregular interface using a \a mpfa method
@@ -1305,7 +1296,6 @@ void FV3dPressure2P2CAdaptive<TypeTag>::updateMaterialLaws(bool fromPostTimestep
             maxError = std::max(maxError, fabs(cellData.volumeError()));
         }
         this->maxError_ = maxError/problem().timeManager().timeStepSize();
-        return;
     }
     else
     {
-- 
GitLab