Skip to content

Commit eae1974

Browse files
Added something that may fix the cray issue
1 parent 0389b67 commit eae1974

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/common/m_compute_levelset.fpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ contains
264264

265265
integer, intent(in) :: ib_patch_id
266266
real(wp) :: top_right(2), bottom_left(2)
267-
real(wp) :: min_dist
267+
real(wp) :: min_dist, initial_min_dist
268268
real(wp) :: side_dists(4)
269269

270270
real(wp) :: length_x, length_y
@@ -286,9 +286,10 @@ contains
286286
top_right(2) = length_y/2
287287
bottom_left(1) = -length_x/2
288288
bottom_left(2) = -length_y/2
289+
initial_min_dist = initial_distance_buffer
289290

290291
$:GPU_PARALLEL_LOOP(private='[i,j,k,min_dist,idx,side_dists,xy_local,dist_vec]', copy='[levelset,levelset_norm]',&
291-
& copyin='[ib_patch_id,center,bottom_left,top_right,initial_distance_buffer,inverse_rotation,rotation]', collapse=2)
292+
& copyin='[ib_patch_id,center,bottom_left,top_right,initial_min_dist,inverse_rotation,rotation]', collapse=2)
292293
do i = 0, m
293294
do j = 0, n
294295
xy_local = [x_cc(i) - center(1), y_cc(j) - center(2), 0._wp]
@@ -301,7 +302,7 @@ contains
301302
side_dists(2) = top_right(1) - xy_local(1)
302303
side_dists(3) = bottom_left(2) - xy_local(2)
303304
side_dists(4) = top_right(2) - xy_local(2)
304-
min_dist = initial_distance_buffer
305+
min_dist = initial_min_dist
305306
idx = 1
306307

307308
do k = 1, 4

src/simulation/m_data_output.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ contains
10201020

10211021
call MPI_FILE_CLOSE(ifile, ierr)
10221022

1023-
!Writeib data
1023+
!Write ib data
10241024
if (ib) then
10251025
write (file_loc, '(A)') 'ib.dat'
10261026
file_loc = trim(case_dir)//'/restart_data'//trim(mpiiofs)//trim(file_loc)

src/simulation/p_main.fpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ program p_main
7070

7171
call nvtxEndRange ! INIT
7272

73-
! save the data at t_step=0
74-
! call s_save_data(t_step, start, finish, io_time_avg, nt)
75-
7673
call nvtxStartRange("SIMULATION-TIME-MARCH")
7774
! Time-stepping Loop
7875
do

0 commit comments

Comments
 (0)