From: Peter Munch Date: Tue, 16 Mar 2021 19:20:58 +0000 (+0100) Subject: DataOut::build_patches(): make mapping dependent on tria X-Git-Tag: v9.3.0-rc1~318^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11924%2Fhead;p=dealii.git DataOut::build_patches(): make mapping dependent on tria --- 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); }