From 04a7fa991b6ce3954f1b76bcc43324a7c69b8728 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Thu, 1 Oct 2015 13:04:37 +0200 Subject: [PATCH] Comment out unused code to squelch a warning --- dune/solvers/iterationsteps/projectedgradientstep.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/dune/solvers/iterationsteps/projectedgradientstep.cc b/dune/solvers/iterationsteps/projectedgradientstep.cc index e7af64dc..debdd8a8 100644 --- a/dune/solvers/iterationsteps/projectedgradientstep.cc +++ b/dune/solvers/iterationsteps/projectedgradientstep.cc @@ -67,9 +67,7 @@ inline void ProjectedGradientStep<MatrixType, VectorType>::computeGeneralizedCP( // Check if we really have a local minimum in this segment if (localMin < 0) { - - field_type min = computeEnergy(*mat_,cauchyPoint,*rhs_); - + //field_type min = computeEnergy(*mat_,cauchyPoint,*rhs_); //std::cout<<"Generalized Cauchy Point "<<min<<" at previous breakpoint "<<oldBreakPoint<<std::endl; *this->x_ = cauchyPoint; @@ -79,10 +77,9 @@ inline void ProjectedGradientStep<MatrixType, VectorType>::computeGeneralizedCP( } else if (localMin<=(bP-oldBreakPoint)) { cauchyPoint.axpy(localMin,projGrad); - field_type min = computeEnergy(*mat_,cauchyPoint,*rhs_); - - // std::cout<<"Generalized Cauchy Point found "<<min<<" at local min "<<localMin - // <<" BP "<<bP+localMin<<std::endl; + //field_type min = computeEnergy(*mat_,cauchyPoint,*rhs_); + //std::cout<<"Generalized Cauchy Point found "<<min<<" at local min "<<localMin + // <<" BP "<<bP+localMin<<std::endl; *this->x_ = cauchyPoint; -- GitLab