From a9fc41ba5b6f8262432dabbb7903d92b8e13e525 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 7 Mar 2003 20:45:53 +0000 Subject: [PATCH] Make xlC compile this file by declaring a local exception class, rather than drawing from some really unrelated class. git-svn-id: https://svn.dealii.org/trunk@7282 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/mapping_cartesian.h | 4 ++++ deal.II/deal.II/source/fe/mapping_cartesian.cc | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/deal.II/deal.II/include/fe/mapping_cartesian.h b/deal.II/deal.II/include/fe/mapping_cartesian.h index d04df9be3f..f46808eb9d 100644 --- a/deal.II/deal.II/include/fe/mapping_cartesian.h +++ b/deal.II/deal.II/include/fe/mapping_cartesian.h @@ -182,6 +182,10 @@ class MappingCartesian : public Mapping * Exception */ DeclException0 (ExcInvalidData); + /** + * Exception + */ + DeclException0 (ExcAccessToUninitializedField); protected: /** diff --git a/deal.II/deal.II/source/fe/mapping_cartesian.cc b/deal.II/deal.II/source/fe/mapping_cartesian.cc index 338feae20a..c948e40534 100644 --- a/deal.II/deal.II/source/fe/mapping_cartesian.cc +++ b/deal.II/deal.II/source/fe/mapping_cartesian.cc @@ -444,7 +444,7 @@ MappingCartesian::transform_covariant (Tensor<1,dim> *begin, const InternalData &data = dynamic_cast (mapping_data); Assert (data.update_flags & update_covariant_transformation, - typename FEValuesBase::ExcAccessToUninitializedField()); + ExcAccessToUninitializedField()); // simply scale by inverse Jacobian // (which is diagonal here) @@ -469,7 +469,7 @@ MappingCartesian::transform_covariant (Tensor<2,dim> *begin, const InternalData &data = dynamic_cast (mapping_data); Assert (data.update_flags & update_covariant_transformation, - typename FEValuesBase::ExcAccessToUninitializedField()); + ExcAccessToUninitializedField()); // simply scale by inverse Jacobian // (which is diagonal here) @@ -499,7 +499,7 @@ MappingCartesian::transform_contravariant (Tensor<1,dim> *begin, const InternalData &data = dynamic_cast (mapping_data); Assert (data.update_flags & update_contravariant_transformation, - typename FEValuesBase::ExcAccessToUninitializedField()); + ExcAccessToUninitializedField()); // simply scale by Jacobian // (which is diagonal here) @@ -528,7 +528,7 @@ MappingCartesian::transform_contravariant (Tensor<2,dim> *begin, const InternalData &data = dynamic_cast (mapping_data); Assert (data.update_flags & update_contravariant_transformation, - typename FEValuesBase::ExcAccessToUninitializedField()); + ExcAccessToUninitializedField()); // simply scale by Jacobian // (which is diagonal here) -- 2.39.5