From: Daniel Arndt Date: Fri, 22 Nov 2019 19:10:58 +0000 (-0500) Subject: Make ddet_F_dC constexpr conditionally X-Git-Tag: v9.2.0-rc1~859^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9080%2Fhead;p=dealii.git Make ddet_F_dC constexpr conditionally --- diff --git a/include/deal.II/physics/elasticity/standard_tensors.h b/include/deal.II/physics/elasticity/standard_tensors.h index 822d2b0c1e..ad9395919d 100644 --- a/include/deal.II/physics/elasticity/standard_tensors.h +++ b/include/deal.II/physics/elasticity/standard_tensors.h @@ -273,8 +273,8 @@ namespace Physics * @dealiiHolzapfelA{228,6.82} */ template - 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::Dev_P_T( template template -constexpr SymmetricTensor<2, dim, Number> -Physics::Elasticity::StandardTensors::ddet_F_dC( +DEAL_II_CONSTEXPR SymmetricTensor<2, dim, Number> + Physics::Elasticity::StandardTensors::ddet_F_dC( const Tensor<2, dim, Number> &F) { return Number(0.5) * determinant(F) * symmetrize(invert(transpose(F) * F));