Skip to content

Commit 067a337

Browse files
committed
r2 on GPU
1 parent 85903b3 commit 067a337

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

examples/2D_ibm_circle_periodic/case.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
Nt = 5000
3636
t_save = 20
3737

38-
Nx = 511 # to fully resolve requires ~ 40-60 cells across sphere diameter
38+
# to fully resolve requires 40-60 cells across sphere diameter
39+
Nx = 511
3940
Ny = Nx
4041
Nz = 0
4142

examples/3D_ibm_sphere_periodic/case.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
Nt = 2000
3636
t_save = Nt // 250
3737

38-
Nx = 127 # to fully resolve requires ~ 40-60 cells across sphere diameter
38+
# to fully resolve requires 40-60 cells across sphere diameter
39+
Nx = 127
3940
Ny = Nx
4041
Nz = Ny
4142

src/common/m_ib_patches.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ contains
666666
$:END_GPU_PARALLEL_LOOP()
667667
else
668668
$:GPU_PARALLEL_LOOP(private='[i,j,k,cart_y,cart_z]', copy='[ib_markers_sf]',&
669-
& copyin='[patch_id,center,radius]', collapse=3)
669+
& copyin='[patch_id,center,r2]', collapse=3)
670670
do k = 0, p
671671
do j = 0, n
672672
do i = 0, m

0 commit comments

Comments
 (0)