Skip to content

Commit aa9a007

Browse files
committed
corrected double precision intrinsics in m_hyper part 2
1 parent 52ba7d5 commit aa9a007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simulation/m_hyperelastic.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ contains
141141
! STEP 2a: computing the determinant of the grad_xi tensor
142142
tensorb(tensor_size) = tensora(1)
143143
! STEP 2b: computing the inverse of the grad_xi tensor
144-
tensorb(1) = 1d0/(tensora(1)**2)
144+
tensorb(1) = 1_wp/(tensora(1)**2)
145145

146146
if (tensorb(tensor_size) > verysmall) then
147147
! STEP 2c: computing the inverse of grad_xi tensor = F
@@ -229,7 +229,7 @@ contains
229229
tensora(i) = tensorb(i)/tensorb(tensor_size)
230230
end do
231231
! STEP 2d: computing the J = det(F) = 1/det(\grad{\xi})
232-
tensorb(tensor_size) = 1d0/tensorb(tensor_size)
232+
tensorb(tensor_size) = 1_wp/tensorb(tensor_size)
233233
! STEP 3: override adjoint (tensorb) to be F transpose F
234234
tensorb(1) = tensora(1)**2 + tensora(2)**2
235235
tensorb(4) = tensora(3)**2 + tensora(4)**2

0 commit comments

Comments
 (0)