@@ -74,19 +74,19 @@ contains
7474
7575 !Update void fraction field
7676 addFun1 = strength_vol/ Vol
77- !$acc atomic update
77+ $:GPU_ATOMIC( atomic= ' update' )
7878 updatedvar%vf(1 )%sf(cell(1 ), cell(2 ), cell(3 )) = updatedvar%vf(1 )%sf(cell(1 ), cell(2 ), cell(3 )) + addFun1
7979
8080 !Update time derivative of void fraction
8181 addFun2 = strength_vel/ Vol
82- !$acc atomic update
82+ $:GPU_ATOMIC( atomic= ' update' )
8383 updatedvar%vf(2 )%sf(cell(1 ), cell(2 ), cell(3 )) = updatedvar%vf(2 )%sf(cell(1 ), cell(2 ), cell(3 )) + addFun2
8484
8585 !Product of two smeared functions
8686 !Update void fraction * time derivative of void fraction
8787 if (lag_params%cluster_type >= 4 ) then
8888 addFun3 = (strength_vol* strength_vel)/ Vol
89- !$acc atomic update
89+ $:GPU_ATOMIC( atomic= ' update' )
9090 updatedvar%vf(5 )%sf(cell(1 ), cell(2 ), cell(3 )) = updatedvar%vf(5 )%sf(cell(1 ), cell(2 ), cell(3 )) + addFun3
9191 end if
9292 end do
@@ -170,14 +170,14 @@ contains
170170
171171 !Update void fraction field
172172 addFun1 = func* strength_vol
173- !$acc atomic update
173+ $:GPU_ATOMIC( atomic= ' update' )
174174 updatedvar%vf(1 )%sf(cellaux(1 ), cellaux(2 ), cellaux(3 )) = &
175175 updatedvar%vf(1 )%sf(cellaux(1 ), cellaux(2 ), cellaux(3 )) &
176176 + addFun1
177177
178178 !Update time derivative of void fraction
179179 addFun2 = func* strength_vel
180- !$acc atomic update
180+ $:GPU_ATOMIC( atomic= ' update' )
181181 updatedvar%vf(2 )%sf(cellaux(1 ), cellaux(2 ), cellaux(3 )) = &
182182 updatedvar%vf(2 )%sf(cellaux(1 ), cellaux(2 ), cellaux(3 )) &
183183 + addFun2
@@ -186,7 +186,7 @@ contains
186186 !Update void fraction * time derivative of void fraction
187187 if (lag_params%cluster_type >= 4 ) then
188188 addFun3 = func2* strength_vol* strength_vel
189- !$acc atomic update
189+ $:GPU_ATOMIC( atomic= ' update' )
190190 updatedvar%vf(5 )%sf(cellaux(1 ), cellaux(2 ), cellaux(3 )) = &
191191 updatedvar%vf(5 )%sf(cellaux(1 ), cellaux(2 ), cellaux(3 )) &
192192 + addFun3
0 commit comments