]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixes for compiling with PGI 4397/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 15 May 2017 13:43:10 +0000 (15:43 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 15 May 2017 13:43:10 +0000 (15:43 +0200)
include/deal.II/base/symmetric_tensor.h
source/base/utilities.cc
source/grid/tria_accessor.cc

index c685ef65a90930201bc880dfe3bf590d6b01bc24..baac20c32d0714df1ad9919ed5b1e9481d9c74fb 100644 (file)
@@ -1022,7 +1022,7 @@ namespace internal
     dealii::Tensor<2,dim,Number>
     convert_to_tensor (const dealii::SymmetricTensor<2,dim,Number> &s)
     {
-      Number t[dim][dim];
+      dealii::Tensor<2,dim,Number> t;
 
       // diagonal entries are stored first
       for (unsigned int d=0; d<dim; ++d)
@@ -1035,7 +1035,7 @@ namespace internal
             t[d][e] = s.access_raw_entry(dim+c);
             t[e][d] = s.access_raw_entry(dim+c);
           }
-      return dealii::Tensor<2,dim,Number>(t);
+      return t;
     }
 
 
index 8e58d34cd96099d0e0f57b20e6f1cf07bd50bced..b53cd7e230a6b958c00fd84a3a305d223924cfae 100644 (file)
@@ -46,6 +46,10 @@ DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 #include <limits>
 #include <sstream>
 
+#if defined(DEAL_II_HAVE_UNISTD_H) && defined(DEAL_II_HAVE_GETHOSTNAME)
+#  include <unistd.h>
+#endif
+
 #ifndef DEAL_II_MSVC
 #  include <stdlib.h>
 #endif
index 73a767f36c7692d7b4a237c97625f2b94819527f..f569bbb85e566786bfcc419f42c6c28ee733a36f 100644 (file)
@@ -1,4 +1,4 @@
-// ---------------------------------------------------------------------
+// ---------------------------------------------------------------------
 //
 // Copyright (C) 1998 - 2016 by the deal.II authors
 //

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.