]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Generate empty object when no mapping data needed 3120/head
authorJonathan Robey <class4kayaker@gmail.com>
Thu, 15 Sep 2016 20:30:58 +0000 (13:30 -0700)
committerJonathan Robey <class4kayaker@gmail.com>
Fri, 16 Sep 2016 13:37:02 +0000 (06:37 -0700)
source/fe/fe_values.cc

index 321916430ee7545257559fd932ae93f1e4d95844..67b3513edd486e5bc204539e806d06385e4d2f7d 100644 (file)
@@ -3681,6 +3681,8 @@ FEValues<dim,spacedim>::initialize (const UpdateFlags update_flags)
   this->fe_data.reset (fe_get_data.return_value());
   if (flags & update_mapping)
     this->mapping_data.reset (mapping_get_data.return_value());
+  else
+    this->mapping_data.reset (new typename Mapping<dim,spacedim>::InternalDataBase());
 }
 
 
@@ -3930,6 +3932,8 @@ FEFaceValues<dim,spacedim>::initialize (const UpdateFlags update_flags)
   this->fe_data.reset (fe_get_data.return_value());
   if (flags & update_mapping)
     this->mapping_data.reset (mapping_get_data.return_value());
+  else
+    this->mapping_data.reset (new typename Mapping<dim,spacedim>::InternalDataBase());
 }
 
 
@@ -4097,6 +4101,8 @@ FESubfaceValues<dim,spacedim>::initialize (const UpdateFlags update_flags)
   this->fe_data.reset (fe_get_data.return_value());
   if (flags & update_mapping)
     this->mapping_data.reset (mapping_get_data.return_value());
+  else
+    this->mapping_data.reset (new typename Mapping<dim,spacedim>::InternalDataBase());
 }
 
 

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.