]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Undo accidental last checkin.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Sep 2008 12:54:25 +0000 (12:54 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Sep 2008 12:54:25 +0000 (12:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@16728 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-22/Makefile
deal.II/examples/step-22/step-22.cc
deal.II/examples/step-4/Makefile

index dbee705c634611a376ec1e60c7c07a1f0dadbeba..a4436031f68feb0de71ea835e3ee817a8881283a 100644 (file)
@@ -14,7 +14,7 @@ target = $(basename $(shell echo step-*.cc))
 # run-time checking of parameters and internal states is performed, so
 # you should set this value to `on' while you develop your program,
 # and to `off' when running production computations.
-debug-mode = off
+debug-mode = on
 
 
 # As third field, we need to give the path to the top-level deal.II
index e65e55cfbbc8eae108c1aa8efb68a62bd8b4022c..d95e4919745e502aa5ba9679d8e15e9e646e4755 100644 (file)
@@ -221,10 +221,7 @@ BoundaryValues<dim>::value (const Point<dim>  &p,
          ExcIndexRange (component, 0, this->n_components));
   
   if (component == 0)
-    if (p[1] < 0)
-      return (p[0] < -0.5 ? -1 : (p[0] > -0.5 ? 1 : 0));
-    else
-      return (p[0] < 0.5 ? -1 : (p[0] > 0.5 ? 1 : 0));      
+    return (p[0] < 0 ? -1 : (p[0] > 0 ? 1 : 0));
   return 0;
 }
 
@@ -1204,7 +1201,7 @@ StokesProblem<dim>::output_results (const unsigned int refinement_cycle)  const
            << ".vtk";
 
   std::ofstream output (filename.str().c_str());
-  data_out.write_gmv (output);
+  data_out.write_vtk (output);
 }
 
 
@@ -1275,14 +1272,13 @@ void StokesProblem<dim>::run ()
   {
     std::vector<unsigned int> subdivisions (dim, 1);
     subdivisions[0] = 4;
-    subdivisions[1] = 4;
 
     const Point<dim> bottom_left = (dim == 2 ?
                                    Point<dim>(-2,-1) :
-                                   Point<dim>(-2,-2,-1));
+                                   Point<dim>(-2,0,-1));
     const Point<dim> top_right   = (dim == 2 ?
                                    Point<dim>(2,0) :
-                                   Point<dim>(2,2,0));
+                                   Point<dim>(2,1,0));
     
     GridGenerator::subdivided_hyper_rectangle (triangulation,
                                               subdivisions,
index f315b1daa1805387df982aa67ad66c4c476ffe89..c277ba5a3af748b3cdf052f2e42593411e56e9f3 100644 (file)
@@ -14,7 +14,7 @@ target = $(basename $(shell echo step-*.cc))
 # run-time checking of parameters and internal states is performed, so
 # you should set this value to `on' while you develop your program,
 # and to `off' when running production computations.
-debug-mode = off
+debug-mode = on
 
 
 # As third field, we need to give the path to the top-level deal.II

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.