From 56d49f95e77bf47947b215bb28b6331052aa3561 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 9 Jan 2016 15:12:26 -0500 Subject: [PATCH] Prefer 'get_triangulation' to 'get_tria'. The latter has been deprecated. --- .../include/deal.II-cdr/write_pvtu_output.templates.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5