From fa1f3358f007c0618a39fa2435a47f45aaa992d7 Mon Sep 17 00:00:00 2001
From: Bernd Flemisch <bernd@iws.uni-stuttgart.de>
Date: Tue, 16 Aug 2011 07:09:21 +0000
Subject: [PATCH] avoid compiler warnings: changed order of initialization,
 removed unused variables and typedefs

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6494 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 dumux/decoupled/common/onemodelproblem.hh | 6 +++---
 test/decoupled/2p/test_transport.cc       | 4 ----
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/dumux/decoupled/common/onemodelproblem.hh b/dumux/decoupled/common/onemodelproblem.hh
index dbbad9d182..9c41b61513 100644
--- a/dumux/decoupled/common/onemodelproblem.hh
+++ b/dumux/decoupled/common/onemodelproblem.hh
@@ -95,6 +95,7 @@ public:
         : gridView_(gridView),
           bboxMin_(std::numeric_limits<double>::max()),
           bboxMax_(-std::numeric_limits<double>::max()),
+          deleteTimeManager_(true),
           variables_(gridView),
           outputInterval_(1)
     {
@@ -109,7 +110,6 @@ public:
         }
 
         timeManager_ = new TimeManager(verbose);
-        deleteTimeManager_ = true;
 
         model_ = new Model(asImp_()) ;
 
@@ -126,9 +126,9 @@ public:
           bboxMin_(std::numeric_limits<double>::max()),
           bboxMax_(-std::numeric_limits<double>::max()),
           timeManager_(&timeManager),
+          deleteTimeManager_(false),
           variables_(gridView),
-          outputInterval_(1),
-          deleteTimeManager_(false)
+          outputInterval_(1)
     {
         // calculate the bounding box of the grid view
         VertexIterator vIt = gridView.template begin<dim>();
diff --git a/test/decoupled/2p/test_transport.cc b/test/decoupled/2p/test_transport.cc
index c7132a0533..90f19e76cc 100644
--- a/test/decoupled/2p/test_transport.cc
+++ b/test/decoupled/2p/test_transport.cc
@@ -51,13 +51,9 @@ int main(int argc, char** argv)
 {
     try {
         typedef TTAG(TransportTestProblem) TypeTag;
-        typedef GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
         typedef GET_PROP_TYPE(TypeTag, PTAG(Grid)) Grid;
         typedef GET_PROP_TYPE(TypeTag, PTAG(Problem)) Problem;
         typedef GET_PROP_TYPE(TypeTag, PTAG(TimeManager)) TimeManager;
-        typedef Dune::FieldVector<Scalar, Grid::dimensionworld> GlobalPosition;
-
-        static const int dim = Grid::dimension;
 
         // initialize MPI, finalize is done automatically on exit
         Dune::MPIHelper::instance(argc, argv);
-- 
GitLab