]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix clang warnings
authorTimo Heister <timo.heister@gmail.com>
Thu, 21 Nov 2013 16:24:24 +0000 (16:24 +0000)
committerTimo Heister <timo.heister@gmail.com>
Thu, 21 Nov 2013 16:24:24 +0000 (16:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@31751 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/derivative_form.h

index 87ef8c844dca74e32a8e276f9cd410677c943b99..4f12b6389ef51914158ae36dd4ad855cde6c8aa7 100644 (file)
@@ -178,9 +178,9 @@ DerivativeForm<order, dim, spacedim>::DerivativeForm(const Tensor<2,dim> &T)
 {
   Assert( (dim == spacedim) && (order==1),
           ExcMessage("Only allowed for square tensors."));
-
-  for (unsigned int j=0; j<dim; ++j)
-    (*this)[j] = T[j];
+  if ((dim == spacedim) && (order==1))
+    for (unsigned int j=0; j<dim; ++j)
+      (*this)[j] = T[j];
 }
 
 

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.