]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make ddet_F_dC constexpr conditionally 9080/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 22 Nov 2019 19:10:58 +0000 (14:10 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 22 Nov 2019 19:27:18 +0000 (14:27 -0500)
include/deal.II/physics/elasticity/standard_tensors.h

index 822d2b0c1e221e036131a035e9bebe3519e49831..ad9395919d72f0905f9e8986b0e78940075ebf81 100644 (file)
@@ -273,8 +273,8 @@ namespace Physics
        * @dealiiHolzapfelA{228,6.82}
        */
       template <typename Number>
-      static constexpr SymmetricTensor<2, dim, Number>
-      ddet_F_dC(const Tensor<2, dim, Number> &F);
+      static DEAL_II_CONSTEXPR SymmetricTensor<2, dim, Number>
+                               ddet_F_dC(const Tensor<2, dim, Number> &F);
 
       //@}
 
@@ -368,8 +368,8 @@ Physics::Elasticity::StandardTensors<dim>::Dev_P_T(
 
 template <int dim>
 template <typename Number>
-constexpr SymmetricTensor<2, dim, Number>
-Physics::Elasticity::StandardTensors<dim>::ddet_F_dC(
+DEAL_II_CONSTEXPR SymmetricTensor<2, dim, Number>
+                  Physics::Elasticity::StandardTensors<dim>::ddet_F_dC(
   const Tensor<2, dim, Number> &F)
 {
   return Number(0.5) * determinant(F) * symmetrize(invert(transpose(F) * F));

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.