]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
some output should only occur if debug>2
authorjanssen <janssen@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 5 Feb 2010 16:19:23 +0000 (16:19 +0000)
committerjanssen <janssen@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 5 Feb 2010 16:19:23 +0000 (16:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@20511 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/multigrid.templates.h

index 34562a2e90ddc71436662785dc021bc6c1827d1c..99a99a3cb3c30fc126d4b1757b164eef44c6dc9b 100644 (file)
@@ -163,22 +163,25 @@ Multigrid<VECTOR>::level_v_step(const unsigned int level)
                                   // contain the global defect, the
                                   // refined parts its restriction.
   for (unsigned int l = level;l>minlevel;--l)
+  {
+    t[l-1] = 0.;
+    if (l==level && edge_out != 0)
     {
-      t[l-1] = 0.;
-      if (l==level && edge_out != 0)
-      {
-        edge_out->vmult_add(level, t[level], solution[level]);
+      edge_out->vmult_add(level, t[level], solution[level]);
+      if(debug>2)
         deallog << "Norm t[" << level << "] " << t[level].l2_norm() << std::endl;
-      }
+    }
+
+    if (l==level && edge_down != 0)
+      edge_down->vmult(level, t[level-1], solution[level]);
 
-      if (l==level && edge_down != 0)
-       edge_down->vmult(level, t[level-1], solution[level]);
-      
-      transfer->restrict_and_add (l, t[l-1], t[l]);
+    transfer->restrict_and_add (l, t[l-1], t[l]);
+    if(debug>2)
       deallog << "restrict t[" << l-1 << "] " << t[l-1].l2_norm() << std::endl;
-      defect[l-1] -= t[l-1];
+    defect[l-1] -= t[l-1];
+    if(debug>2)
       deallog << "defect d[" << l-1 << "] " << defect[l-1].l2_norm() << std::endl;
-    }
+  }
   
                                   // do recursion
   solution[level-1] = 0.;

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.