]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
Prefer 'get_triangulation' to 'get_tria'.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 9 Jan 2016 20:12:26 +0000 (15:12 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 9 Jan 2016 21:46:35 +0000 (16:46 -0500)
The latter has been deprecated.

cdr/common/include/deal.II-cdr/write_pvtu_output.templates.h

index ec479a5e75f2f67b600ab565b24b8fb29ea04be9..ee0930dd2314b85aa3f937fd92ea1d99d73060f0 100644 (file)
@@ -31,10 +31,11 @@ namespace CDR
     data_out.attach_dof_handler(dof_handler);
     data_out.add_data_vector(solution, "u");
 
-    Vector<float> subdomain (dof_handler.get_tria().n_active_cells());
+    const auto &triangulation = dof_handler.get_triangulation();
+    Vector<float> subdomain (triangulation.n_active_cells());
     for (auto &domain : subdomain)
       {
-        domain = dof_handler.get_tria().locally_owned_subdomain();
+        domain = triangulation.locally_owned_subdomain();
       }
     data_out.add_data_vector(subdomain, "subdomain");
     data_out.build_patches(patch_level);
@@ -53,7 +54,7 @@ namespace CDR
       }
     else
       {
-        subdomain_n = dof_handler.get_tria().locally_owned_subdomain();
+        subdomain_n = triangulation.locally_owned_subdomain();
       }
 
     std::ofstream output

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.