From 4a20a9cc3730cb4e080ad735c82b6522918a6f1a Mon Sep 17 00:00:00 2001 From: Giovanni Bussi <giovanni.bussi@gmail.com> Date: Mon, 16 Apr 2018 10:14:39 +0200 Subject: [PATCH] fixed warnings --- src/gridtools/FindContourSurface.cpp | 2 +- src/gridtools/GridVessel.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gridtools/FindContourSurface.cpp b/src/gridtools/FindContourSurface.cpp index f12c36396..d2cdac39d 100644 --- a/src/gridtools/FindContourSurface.cpp +++ b/src/gridtools/FindContourSurface.cpp @@ -209,7 +209,7 @@ void FindContourSurface::finishAveraging() { } void FindContourSurface::compute( const unsigned& current, MultiValue& myvals ) const { - std::vector<unsigned> neighbours; unsigned num_neighbours; unsigned nfound=0; double minv=0, minp=0; + std::vector<unsigned> neighbours; unsigned num_neighbours; unsigned nfound=0; double minp=0; std::vector<unsigned> bins_n( ingrid->getNbin() ); unsigned shiftn=current; std::vector<unsigned> ind( ingrid->getDimension() ); std::vector<double> point( ingrid->getDimension() ); #ifndef DNDEBUG diff --git a/src/gridtools/GridVessel.cpp b/src/gridtools/GridVessel.cpp index 3bacfa1b8..fcaddbc8d 100644 --- a/src/gridtools/GridVessel.cpp +++ b/src/gridtools/GridVessel.cpp @@ -38,10 +38,10 @@ void GridVessel::registerKeywords( Keywords& keys ) { GridVessel::GridVessel( const vesselbase::VesselOptions& da ): AveragingVessel(da), bounds_set(false), - cube_units(1.0), - noderiv(false), npoints(0), - wasforced(false) + cube_units(1.0), + wasforced(false), + noderiv(false) { std::string geom; parse("TYPE",geom); if( geom=="flat" ) gtype=flat; -- GitLab