From c3307ae358dfe083ea84e28396dc18b24971130e Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Tue, 16 Mar 2021 20:20:58 +0100 Subject: [PATCH] DataOut::build_patches(): make mapping dependent on tria --- source/numerics/data_out.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source/numerics/data_out.cc b/source/numerics/data_out.cc index 610e1b5060..b467243d1f 100644 --- a/source/numerics/data_out.cc +++ b/source/numerics/data_out.cc @@ -1084,10 +1084,14 @@ template void DataOut::build_patches(const unsigned int n_subdivisions) { - build_patches(StaticMappingQ1::mapping, - n_subdivisions, - no_curved_cells); + AssertDimension(this->triangulation->get_reference_cells().size(), 1); + + build_patches( + this->triangulation->get_reference_cells()[0] + .template get_default_linear_mapping(), + n_subdivisions, + no_curved_cells); } -- 2.39.5