@@ -120,6 +120,8 @@ contains
120120 smearGridz = smearGrid
121121 if (p == 0 ) smearGridz = 1
122122
123+ print * , ' s_gaussian'
124+
123125 !$acc parallel loop gang vector default(present) private(nodecoord, l, s_coord, cell, center) copyin(smearGrid, smearGridz)
124126 do l = 1 , nBubs
125127 nodecoord(1 :3 ) = 0
@@ -128,9 +130,10 @@ contains
128130 s_coord(1 :3 ) = lbk_s(l, 1 :3 , 2 )
129131 center(1 :2 ) = lbk_pos(l, 1 :2 , 2 )
130132 if (p > 0 ) center(3 ) = lbk_pos(l, 3 , 2 )
133+ print * , ' reading initial state'
131134 call s_get_cell(s_coord, cell)
132135 call s_compute_stddsv(cell, volpart, stddsv)
133-
136+ print * , ' s_compute_stddsv '
134137 strength_vol = volpart
135138 strength_vel = 4._wp * pi* lbk_rad(l, 2 )** 2._wp * lbk_vel(l, 2 )
136139
@@ -145,20 +148,23 @@ contains
145148
146149 !Check if the cells intended to smear the bubbles in are in the computational domain
147150 !and redefine the cells for symmetric boundary
151+ print * , ' s_check_celloutside'
148152 call s_check_celloutside(cellaux, celloutside)
149153
150154 if (.not. celloutside) then
151155
152156 nodecoord(1 ) = x_cc(cellaux(1 ))
153157 nodecoord(2 ) = y_cc(cellaux(2 ))
154158 if (p > 0 ) nodecoord(3 ) = z_cc(cellaux(3 ))
159+ print * , ' s_applygaussian'
155160 call s_applygaussian(center, cellaux, nodecoord, stddsv, 0._wp , func)
156161 if (lag_params%cluster_type >= 4 ) call s_applygaussian(center, cellaux, nodecoord, stddsv, 1._wp , func2)
157162
158163 ! Relocate cells for bubbles intersecting symmetric boundaries
159164 if (bc_x%beg == - 2 .or. bc_x%end == - 2 .or. bc_y%beg == - 2 .or. bc_y%end == - 2 &
160165 .or. bc_z%beg == - 2 .or. bc_z%end == - 2 ) then
161166 call s_shift_cell_symmetric_bc(cellaux, cell)
167+ print * , ' s_shift_cell_symmetric_bc'
162168 end if
163169 else
164170 func = 0._wp
@@ -169,13 +175,15 @@ contains
169175 if (p == 0 ) cellaux(3 ) = 0
170176 end if
171177
178+ print * , ' Update 1'
172179 !Update void fraction field
173180 addFun1 = func* strength_vol
174181 !$acc atomic update
175182 updatedvar%vf(1 )%sf(cellaux(1 ), cellaux(2 ), cellaux(3 )) = &
176183 updatedvar%vf(1 )%sf(cellaux(1 ), cellaux(2 ), cellaux(3 )) &
177184 + addFun1
178185
186+ print * , ' Update 2'
179187 !Update time derivative of void fraction
180188 addFun2 = func* strength_vel
181189 !$acc atomic update
@@ -192,6 +200,7 @@ contains
192200 updatedvar%vf(5 )%sf(cellaux(1 ), cellaux(2 ), cellaux(3 )) &
193201 + addFun3
194202 end if
203+ print * , ' Update 3'
195204 end do
196205 end do
197206 end do
0 commit comments