From ce5d9b36c14e6b2d30bf05953f5e6cd92ef0ceeb Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 15 Nov 2016 10:17:29 -0700 Subject: [PATCH] Ensure that cloning a mapping also copies all internal variables. MappingQ has a member variable 'use_mapping_q_on_all_cells', but this variable is not replicated when calling MappingQ::clone(). Fix this. --- source/fe/mapping_q.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/fe/mapping_q.cc b/source/fe/mapping_q.cc index 345b83998b..c9e5d071cc 100644 --- a/source/fe/mapping_q.cc +++ b/source/fe/mapping_q.cc @@ -504,7 +504,8 @@ template Mapping * MappingQ::clone () const { - return new MappingQ(this->polynomial_degree); + return new MappingQ(this->polynomial_degree, + this->use_mapping_q_on_all_cells); } -- 2.39.5