Skip to content
Snippets Groups Projects
Commit fa1f3358 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

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
parent abe49ada
No related branches found
No related tags found
No related merge requests found
......@@ -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>();
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment