From: Wolfgang Bangerth Date: Tue, 15 Nov 2016 17:17:29 +0000 (-0700) Subject: Ensure that cloning a mapping also copies all internal variables. X-Git-Tag: v8.5.0-rc1~398^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce5d9b36c14e6b2d30bf05953f5e6cd92ef0ceeb;p=dealii.git 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. --- 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); }