Skip to content

Commit d1a9050

Browse files
author
Diego Vaca
committed
printing statements in smear_voidfraction
1 parent 665321b commit d1a9050

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/simulation/m_bubbles_EL.fpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ contains
685685

686686
call nvtxStartRange("BUBBLES-LAGRANGE-KERNELS")
687687

688+
print *, 'Zeroing vars'
688689
!$acc parallel loop collapse(4) gang vector default(present)
689690
do i = 1, q_beta_idx
690691
do l = idwbuff(3)%beg, idwbuff(3)%end
@@ -696,9 +697,11 @@ contains
696697
end do
697698
end do
698699

700+
print *, 's_smoothfunction'
699701
call s_smoothfunction(nBubs, intfc_rad, intfc_vel, &
700702
mtn_s, mtn_pos, q_beta)
701703

704+
print *, '1-beta'
702705
!Store 1-beta
703706
!$acc parallel loop collapse(3) gang vector default(present)
704707
do l = idwbuff(3)%beg, idwbuff(3)%end

src/simulation/m_bubbles_EL_kernels.fpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)