]> https://gitweb.dealii.org/ - dealii.git/commitdiff
astyle
authorTimo Heister <timo.heister@gmail.com>
Tue, 20 Oct 2015 21:01:14 +0000 (17:01 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 20 Oct 2015 21:01:14 +0000 (17:01 -0400)
tests/multigrid/constrained_dofs_01.cc
tests/multigrid/transfer_04a.cc

index ea80f9143e3bd316621b3243ad72110c014e9c63..4a046d54bdcbed4125967c9cc78fe05ce2c52823 100644 (file)
@@ -141,21 +141,21 @@ void check_fe(FiniteElement<dim> &fe)
       bi.print(deallog);
 
       {
-       // check that refinement_edge_boundary_indices (deprecated) is really
-       // the intersection of the sets above:
-       IndexSet intersect = rei & bi;
-       std::vector<bool> ref = mg_constrained_dofs.get_refinement_edge_boundary_indices()[level];
-
-       unsigned int idx = 0;
-       for (std::vector<bool>::iterator it = ref.begin(); it != ref.end(); ++it, ++idx)
-         {
-           if ((*it == true) != intersect.is_element(idx))
-             deallog << "mismatch idx=" << idx << " "
-                     << (*it == true) << " " << intersect.is_element(idx) << std::endl;
-         }
+        // check that refinement_edge_boundary_indices (deprecated) is really
+        // the intersection of the sets above:
+        IndexSet intersect = rei & bi;
+        std::vector<bool> ref = mg_constrained_dofs.get_refinement_edge_boundary_indices()[level];
+
+        unsigned int idx = 0;
+        for (std::vector<bool>::iterator it = ref.begin(); it != ref.end(); ++it, ++idx)
+          {
+            if ((*it == true) != intersect.is_element(idx))
+              deallog << "mismatch idx=" << idx << " "
+                      << (*it == true) << " " << intersect.is_element(idx) << std::endl;
+          }
       }
-      
-      
+
+
       IndexSet relevant;
       DoFTools::extract_locally_relevant_mg_dofs (dofh,
                                                   relevant, level);
index 5e5fa2676f87a7854a1c879a1449b0602de18e00..ee4f830a9eb76ff5faa16fe48cf546876f02e7c5 100644 (file)
@@ -98,22 +98,22 @@ void check_fe(FiniteElement<dim> &fe)
   setup_tria(tr);
 
   if (false)
-  {
-    DataOut<dim> data_out;
-    Vector<float> subdomain (tr.n_active_cells());
-    for (unsigned int i=0; i<subdomain.size(); ++i)
-      subdomain(i) = tr.locally_owned_subdomain();
-    data_out.attach_triangulation (tr);
-    data_out.add_data_vector (subdomain, "subdomain");
-    data_out.build_patches (0);
-    const std::string filename = ("solution." +
-                                  Utilities::int_to_string
-                                  (tr.locally_owned_subdomain(), 4) +
-                                  ".vtu");
-    std::ofstream output (filename.c_str());
-    data_out.write_vtu (output);
+    {
+      DataOut<dim> data_out;
+      Vector<float> subdomain (tr.n_active_cells());
+      for (unsigned int i=0; i<subdomain.size(); ++i)
+        subdomain(i) = tr.locally_owned_subdomain();
+      data_out.attach_triangulation (tr);
+      data_out.add_data_vector (subdomain, "subdomain");
+      data_out.build_patches (0);
+      const std::string filename = ("solution." +
+                                    Utilities::int_to_string
+                                    (tr.locally_owned_subdomain(), 4) +
+                                    ".vtu");
+      std::ofstream output (filename.c_str());
+      data_out.write_vtu (output);
 
-  }
+    }
 
 
   ZeroFunction<dim> zero;

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.