Skip to content

Commit 20d84ec

Browse files
committed
actually corrected double precision intrinsics in m_hyper part 3
1 parent aa9a007 commit 20d84ec

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/simulation/m_hyperelastic.fpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ contains
123123
alpha_rho_k, Re, j, k, l, G, Gs)
124124
rho = max(rho, sgm_eps)
125125
G = max(G, sgm_eps)
126-
!if ( G <= verysmall ) G_K = 0_wp
126+
!if ( G <= verysmall ) G_K = 0._wp
127127

128128
if ( G > verysmall ) then
129129
!$acc loop seq
130130
do i = 1, tensor_size
131-
tensora(i) = 0_wp
131+
tensora(i) = 0._wp
132132
end do
133133
! STEP 1: computing the grad_xi tensor using finite differences
134134
! grad_xi definition / organization
@@ -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) = 1_wp/(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
@@ -193,12 +193,12 @@ contains
193193
alpha_rho_k, Re, j, k, l, G, Gs)
194194
rho = max(rho, sgm_eps)
195195
G = max(G, sgm_eps)
196-
!if ( G <= verysmall ) G_K = 0_wp
196+
!if ( G <= verysmall ) G_K = 0._wp
197197

198198
if ( G > verysmall ) then
199199
!$acc loop seq
200200
do i = 1, tensor_size
201-
tensora(i) = 0_wp
201+
tensora(i) = 0._wp
202202
end do
203203
! STEP 1: computing the grad_xi tensor using finite differences
204204
! grad_xi definition / organization
@@ -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) = 1_wp/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
@@ -281,12 +281,12 @@ contains
281281
alpha_rho_k, Re, j, k, l, G, Gs)
282282
rho = max(rho, sgm_eps)
283283
G = max(G, sgm_eps)
284-
!if ( G <= verysmall ) G_K = 0_wp
284+
!if ( G <= verysmall ) G_K = 0._wp
285285

286286
if (G > verysmall) then
287287
!$acc loop seq
288288
do i = 1, tensor_size
289-
tensora(i) = 0_wp
289+
tensora(i) = 0._wp
290290
end do
291291
! STEP 1: computing the grad_xi tensor using finite differences
292292
! grad_xi definition / organization
@@ -333,7 +333,7 @@ contains
333333
end do
334334

335335
! STEP 2d: computing the J = det(F) = 1/det(\grad{\xi})
336-
tensorb(tensor_size) = 1_wp/tensorb(tensor_size)
336+
tensorb(tensor_size) = 1._wp/tensorb(tensor_size)
337337

338338
! STEP 3: computing F transpose F
339339
tensorb(1) = tensora(1)**2 + tensora(2)**2 + tensora(3)**2

0 commit comments

Comments
 (0)