From 808342159dd00f2de72959a0c9276a292d8464b1 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 7 Mar 2003 20:54:49 +0000 Subject: [PATCH] Allow xlC to compile this file by declaring a local exception, rather than drawing from a wildly unrelated class. git-svn-id: https://svn.dealii.org/trunk@7284 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/mapping_q1.h | 5 +++++ deal.II/deal.II/source/fe/mapping_q1.cc | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/deal.II/deal.II/include/fe/mapping_q1.h b/deal.II/deal.II/include/fe/mapping_q1.h index 547b44653b..f941af5cf1 100644 --- a/deal.II/deal.II/include/fe/mapping_q1.h +++ b/deal.II/deal.II/include/fe/mapping_q1.h @@ -340,6 +340,11 @@ class MappingQ1 : public Mapping unsigned int n_shape_functions; }; + /** + * Exception + */ + DeclException0 (ExcAccessToUninitializedField); + protected: /** diff --git a/deal.II/deal.II/source/fe/mapping_q1.cc b/deal.II/deal.II/source/fe/mapping_q1.cc index 1fafea274b..b389455a2d 100644 --- a/deal.II/deal.II/source/fe/mapping_q1.cc +++ b/deal.II/deal.II/source/fe/mapping_q1.cc @@ -788,7 +788,7 @@ MappingQ1::transform_covariant (Tensor<1,dim> *begin, const InternalData &data=*data_ptr; Assert (data.update_flags & update_covariant_transformation, - typename FEValuesBase::ExcAccessToUninitializedField()); + ExcAccessToUninitializedField()); //TODO: [GK] Can we do a similar assertion? // Assert (dst.size() == data.contravariant.size(), @@ -817,7 +817,7 @@ MappingQ1::transform_covariant (Tensor<2,dim> *begin, const InternalData &data=*data_ptr; Assert (data.update_flags & update_covariant_transformation, - typename FEValuesBase::ExcAccessToUninitializedField()); + ExcAccessToUninitializedField()); //TODO: [GK] Can we do a similar assertion? // Assert (dst.size() == data.contravariant.size(), @@ -846,7 +846,7 @@ MappingQ1::transform_contravariant (Tensor<1,dim> *begin, const InternalData &data=*data_ptr; Assert (data.update_flags & update_contravariant_transformation, - typename FEValuesBase::ExcAccessToUninitializedField()); + ExcAccessToUninitializedField()); typename std::vector >::const_iterator tensor = data.contravariant.begin(); @@ -870,7 +870,7 @@ MappingQ1::transform_contravariant (Tensor<2,dim> *begin, const InternalData &data=*data_ptr; Assert (data.update_flags & update_contravariant_transformation, - typename FEValuesBase::ExcAccessToUninitializedField()); + ExcAccessToUninitializedField()); typename std::vector >::const_iterator tensor = data.contravariant.begin(); -- 2.39.5