From ceaa6604c7286cb6bb9f1054eb5ea18719df914b Mon Sep 17 00:00:00 2001 From: antoinecea Date: Wed, 4 Dec 2024 16:08:03 +0100 Subject: [PATCH] Update include/TFEL/Material/EshelbyAnisotropic.ixx Co-authored-by: Thomas Helfer --- include/TFEL/Material/EshelbyAnisotropic.ixx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/TFEL/Material/EshelbyAnisotropic.ixx b/include/TFEL/Material/EshelbyAnisotropic.ixx index 64fbe3533..996495e9f 100644 --- a/include/TFEL/Material/EshelbyAnisotropic.ixx +++ b/include/TFEL/Material/EshelbyAnisotropic.ixx @@ -55,7 +55,7 @@ namespace tfel::material::homogenization::elasticity{ TFEL_HOST_DEVICE void setSt4(tfel::math::st2tost2<3u,Type>& A, int i, int j, int k, int l,Type Aijkl){ const int I = vi(i,j); const int J = vi(k,l); - real fac = real(1); + constexpr auto fac = real(1); if (I > 2){fac*=std::sqrt(2);}; if (J > 2){fac*=std::sqrt(2);}; A(I,J)=fac*Aijkl;