From 68d6d1728fd1e3c882bcf0553684fa38a5aa1cdf Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 21 Nov 2013 15:54:28 +0000 Subject: [PATCH] remove one clang compiler warning git-svn-id: https://svn.dealii.org/trunk@31750 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/fe/mapping_q1.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deal.II/source/fe/mapping_q1.cc b/deal.II/source/fe/mapping_q1.cc index 7c708daea1..e8f7ec4dd5 100644 --- a/deal.II/source/fe/mapping_q1.cc +++ b/deal.II/source/fe/mapping_q1.cc @@ -1240,6 +1240,9 @@ void MappingQ1::transform_fields( Assert (data.update_flags & update_volume_elements, typename FEValuesBase::ExcAccessToUninitializedField()); Assert (rank==1, ExcMessage("Only for rank 1")); + if (rank!=1) + return; + for (unsigned int i=0; i