From a94f71b8eb7e072e0c537be86a399bc178233c1c Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Wed, 19 Dec 2018 15:26:53 +0100 Subject: [PATCH] Remove unused variable warning --- exercises/exercise-biomineralization/biominproblem.hh | 2 +- exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh | 2 +- .../exercise-coupling-ff-pm/models/ex_models_pmproblem.hh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/exercise-biomineralization/biominproblem.hh b/exercises/exercise-biomineralization/biominproblem.hh index f015d7ed..5b1a8b28 100644 --- a/exercises/exercise-biomineralization/biominproblem.hh +++ b/exercises/exercise-biomineralization/biominproblem.hh @@ -280,7 +280,6 @@ public: NumEqVector values(0.0); Scalar waterFlux = injVolumeflux_; // divide by area if area not 1! [m/s] - Scalar gasFlux = injCO2_; // divide by area if area not 1! [m/s] // Set values for Ca + urea injection above aquitard. // Use negative values for injection. @@ -297,6 +296,7 @@ public: // Set CO2 injection below aquitard after the injBioTime else { + // Scalar gasFlux = injCO2_; // divide by area if area not 1! [m/s] values = 0.0; //mol/m²/s } diff --git a/exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh b/exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh index fb4f258c..357d7909 100644 --- a/exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh +++ b/exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh @@ -190,7 +190,7 @@ public: for (auto&& scv : scvs(fvGeometry)) { - const auto& volVars = elemVolVars[scv]; + // const auto& volVars = elemVolVars[scv]; // insert calculation of the water mass here waterMass += 0.0; } diff --git a/exercises/solution/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh b/exercises/solution/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh index cb79f6a3..00a48073 100644 --- a/exercises/solution/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh +++ b/exercises/solution/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh @@ -231,11 +231,11 @@ public: for (auto&& scv : scvs(fvGeometry)) { - const auto& volVars = elemVolVars[scv]; for(int phaseIdx = 0; phaseIdx < FluidSystem::numPhases; ++phaseIdx) { // insert calculation of the water mass here #if EXNUMBER >= 2 + const auto& volVars = elemVolVars[scv]; waterMass += volVars.massFraction(phaseIdx, FluidSystem::H2OIdx) * volVars.density(phaseIdx) * volVars.saturation(phaseIdx) * volVars.porosity() * scv.volume() * volVars.extrusionFactor(); -- GitLab