]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove some code that can't work in parallel currently.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Sep 2008 00:54:06 +0000 (00:54 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Sep 2008 00:54:06 +0000 (00:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@16803 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-32/step-32.cc

index 6e1112c05a9bece93e11d75010cdbb20e7f8d034..a708b800d59194d08fb63986a6aee5a0980e45ed 100644 (file)
@@ -1308,19 +1308,20 @@ void BoussinesqFlowProblem<dim>::solve ()
          << " CG iterations for temperature."
          << std::endl;
 
-    double min_temperature = temperature_solution(0),
-          max_temperature = temperature_solution(0);
-    for (unsigned int i=0; i<temperature_solution.size(); ++i)
-      {
-       min_temperature = std::min<double> (min_temperature,
-                                           temperature_solution(i));
-       max_temperature = std::max<double> (max_temperature,
-                                           temperature_solution(i));
-      }
+// the following code doesn't work in parallel, of course
+//     double min_temperature = temperature_solution(0),
+//        max_temperature = temperature_solution(0);
+//     for (unsigned int i=0; i<temperature_solution.size(); ++i)
+//       {
+//     min_temperature = std::min<double> (min_temperature,
+//                                         temperature_solution(i));
+//     max_temperature = std::max<double> (max_temperature,
+//                                         temperature_solution(i));
+//       }
     
-    pcout << "   Temperature range: "
-         << min_temperature << ' ' << max_temperature
-         << std::endl;
+//     pcout << "   Temperature range: "
+//       << min_temperature << ' ' << max_temperature
+//       << std::endl;
   }
 }
 

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.