]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove one clang compiler warning
authorTimo Heister <timo.heister@gmail.com>
Thu, 21 Nov 2013 15:54:28 +0000 (15:54 +0000)
committerTimo Heister <timo.heister@gmail.com>
Thu, 21 Nov 2013 15:54:28 +0000 (15:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@31750 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/mapping_q1.cc

index 7c708daea1560159ed56a1d9de9432393072a969..e8f7ec4dd58ef3072f8572aa5587150544e7d423 100644 (file)
@@ -1240,6 +1240,9 @@ void MappingQ1<dim,spacedim>::transform_fields(
       Assert (data.update_flags & update_volume_elements,
               typename FEValuesBase<dim>::ExcAccessToUninitializedField());
       Assert (rank==1, ExcMessage("Only for rank 1"));
+      if (rank!=1)
+        return;
+
       for (unsigned int i=0; i<output.size(); ++i)
         {
           output[i] = apply_transformation(data.contravariant[i], input[i]);

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.