]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Ensure that cloning a mapping also copies all internal variables.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 15 Nov 2016 17:17:29 +0000 (10:17 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 15 Nov 2016 17:17:29 +0000 (10:17 -0700)
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

index 345b83998b3bf6b8acdb281081793454353fba26..c9e5d071cced1b17cebc3cc692b709073821b136 100644 (file)
@@ -504,7 +504,8 @@ template<int dim, int spacedim>
 Mapping<dim,spacedim> *
 MappingQ<dim,spacedim>::clone () const
 {
-  return new MappingQ<dim,spacedim>(this->polynomial_degree);
+  return new MappingQ<dim,spacedim>(this->polynomial_degree,
+                                    this->use_mapping_q_on_all_cells);
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.