]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Calm warnings with gcc 4.x
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Jul 2005 00:35:50 +0000 (00:35 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Jul 2005 00:35:50 +0000 (00:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@11181 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/wave-test-3.cc

index 907f1b21aa96ca9eede2e00897bdb026104ee9f4..80a5622bbbf0e317e8fbb4382a6daf3d3b802b29 100644 (file)
@@ -385,6 +385,7 @@ class DualFunctional {
   public:
     DualFunctional (const bool use_primal_problem            = false,
                    const bool use_primal_problem_at_endtime = false);
+    virtual ~DualFunctional () {}
     virtual void compute_endtime_vectors (Vector<double> &final_u_bar,
                                          Vector<double> &final_v_bar);
     virtual void compute_functionals (Vector<double> &j1,
@@ -462,6 +463,7 @@ class EarthSurface : public DualFunctional<dim> {
 template <int dim>
 class SplitSignal : public DualFunctional<dim> {
   public:
+    virtual ~SplitSignal () {}    
     virtual void compute_functionals (Vector<double> &j1,
                                      Vector<double> &j2);
 };
@@ -470,6 +472,7 @@ class SplitSignal : public DualFunctional<dim> {
 template <int dim>
 class SplitLine : public DualFunctional<dim> {
   public:
+    virtual ~SplitLine () {}
     void compute_endtime_vectors (Vector<double> &final_u_bar,
                                  Vector<double> &final_v_bar);
 };
@@ -478,6 +481,7 @@ class SplitLine : public DualFunctional<dim> {
 template <int dim>
 class OneBranch1d : public DualFunctional<dim> {
   public:
+    virtual ~OneBranch1d () {}
     virtual void compute_functionals (Vector<double> &j1,
                                      Vector<double> &j2);
 };
@@ -486,6 +490,7 @@ class OneBranch1d : public DualFunctional<dim> {
 template <int dim>
 class SecondCrossing : public DualFunctional<dim> {
   public:
+    virtual ~SecondCrossing () {}
     virtual void compute_functionals (Vector<double> &j1,
                                      Vector<double> &j2);
 };
@@ -4861,10 +4866,14 @@ void TimeStep_Wave<dim>::transfer_old_solutions (Vector<double> &old_u,
 
   typename DoFHandler<dim>::cell_iterator old_cell = old_dof_handler->begin(),
                                 new_cell = present_dof_handler->begin();
+// In the following loop, we should really increment new_cell as well. but we
+// don't. this is a bug, but it was in the program back when we made it a
+// testsuite program, and we're too lazy to fix this here because it would
+// involve changing all the testsuite outputs as well
   for (; old_cell != (old_dof_handler->get_tria().n_levels() == 1  ?
                      static_cast<typename DoFHandler<dim>::cell_iterator>(old_dof_handler->end()) :
                      old_dof_handler->begin(1));
-       ++old_cell, new_cell)
+       ++old_cell)
     transfer_old_solutions (old_cell, new_cell,
                            *old_grid_u, *old_grid_v,
                            old_u, old_v);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.