Skip to content

Commit 4fa238a

Browse files
More case file changes
1 parent ed9edac commit 4fa238a

File tree

4 files changed

+6
-16
lines changed

4 files changed

+6
-16
lines changed

examples/2D_ibm_ellipse/case.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@
8181
"patch_icpp(1)%pres": 1.0e00,
8282
"patch_icpp(1)%alpha_rho(1)": 1.0e00,
8383
"patch_icpp(1)%alpha(1)": 1.0e00,
84-
<<<<<<< HEAD
85-
# Patch: Cylinder Immersed Boundary
86-
=======
8784
# Patch: Ellipse Immersed Boundary
88-
>>>>>>> master
8985
"patch_ib(1)%geometry": 6,
9086
"patch_ib(1)%x_centroid": 1.5e-03,
9187
"patch_ib(1)%y_centroid": 3.0e-03,

src/simulation/m_ibm.fpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,15 @@ contains
109109

110110
! recompute the new ib_patch locations and broadcast them.
111111
call s_apply_ib_patches(ib_markers%sf(0:m, 0:n, 0:p), levelset, levelset_norm)
112-
call s_populate_ib_buffers() ! transmits the new IB markers via MPI
113-
114-
! Allocating the patch identities bookkeeping variable
115-
allocate (patch_id_fp(0:m, 0:n, 0:p))
112+
! Get neighboring IB variables from other processors
113+
call s_populate_ib_buffers()
116114

117115
$:GPU_UPDATE(device='[ib_markers%sf]')
118116
$:GPU_UPDATE(device='[levelset%sf]')
119117
$:GPU_UPDATE(device='[levelset_norm%sf]')
120118

121-
! Get neighboring IB variables from other processors
122-
call s_populate_ib_buffers()
123-
124-
$:GPU_UPDATE(host='[ib_markers%sf]')
119+
! Allocating the patch identities bookkeeping variable
120+
allocate (patch_id_fp(0:m, 0:n, 0:p))
125121

126122
! find the number of ghost points and set them to be the maximum total across ranks
127123
call s_find_num_ghost_points(num_gps, num_inner_gps)

0 commit comments

Comments
 (0)