From: Jonathan Robey Date: Thu, 15 Sep 2016 20:30:58 +0000 (-0700) Subject: Generate empty object when no mapping data needed X-Git-Tag: v8.5.0-rc1~666^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9e0fd563a1319abe81d44503caa62ad9d288f69;p=dealii.git Generate empty object when no mapping data needed --- diff --git a/source/fe/fe_values.cc b/source/fe/fe_values.cc index 321916430e..67b3513edd 100644 --- a/source/fe/fe_values.cc +++ b/source/fe/fe_values.cc @@ -3681,6 +3681,8 @@ FEValues::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::InternalDataBase()); } @@ -3930,6 +3932,8 @@ FEFaceValues::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::InternalDataBase()); } @@ -4097,6 +4101,8 @@ FESubfaceValues::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::InternalDataBase()); }