From: David Wells Date: Sat, 9 Jan 2016 20:12:26 +0000 (-0500) Subject: Prefer 'get_triangulation' to 'get_tria'. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56d49f95e77bf47947b215bb28b6331052aa3561;p=code-gallery.git Prefer 'get_triangulation' to 'get_tria'. The latter has been deprecated. --- diff --git a/cdr/common/include/deal.II-cdr/write_pvtu_output.templates.h b/cdr/common/include/deal.II-cdr/write_pvtu_output.templates.h index ec479a5..ee0930d 100644 --- a/cdr/common/include/deal.II-cdr/write_pvtu_output.templates.h +++ b/cdr/common/include/deal.II-cdr/write_pvtu_output.templates.h @@ -31,10 +31,11 @@ namespace CDR data_out.attach_dof_handler(dof_handler); data_out.add_data_vector(solution, "u"); - Vector subdomain (dof_handler.get_tria().n_active_cells()); + const auto &triangulation = dof_handler.get_triangulation(); + Vector 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