Skip to content

Commit 58bbb17

Browse files
Allocation changes to try to satisfy Cray compiler issues
1 parent cf73406 commit 58bbb17

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/simulation/m_start_up.fpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,13 +1208,13 @@ contains
12081208
#ifdef MFC_MPI
12091209
if (num_procs == 1) then
12101210
! single-rank: every patch is local; allocate to exact size and copy
1211-
allocate (patch_ib(num_gbl_ibs))
1211+
@:ALLOCATE(patch_ib(num_gbl_ibs))
12121212
patch_ib(1:num_gbl_ibs) = patch_ib_gbl(1:num_gbl_ibs)
12131213
deallocate (patch_ib_gbl)
12141214
else
12151215
! multi-rank: carve out the local neighbourhood subset
12161216
num_aware_ibs = min(num_local_ibs_max*(2*ib_neighborhood_radius + 1)**num_dims, num_ib_patches_max)
1217-
allocate (patch_ib(num_aware_ibs))
1217+
@:ALLOCATE(patch_ib(num_aware_ibs))
12181218

12191219
num_local_ibs = 0
12201220
num_ibs = 0
@@ -1240,12 +1240,11 @@ contains
12401240
end if
12411241
#else
12421242
! no-MPI: every patch is local; allocate to exact size and copy
1243-
allocate (patch_ib(num_gbl_ibs))
1243+
@:ALLOCATE(patch_ib(num_gbl_ibs))
12441244
patch_ib(1:num_gbl_ibs) = patch_ib_gbl(1:num_gbl_ibs)
12451245
deallocate (patch_ib_gbl)
12461246
#endif
12471247

1248-
$:GPU_ENTER_DATA(create='[patch_ib]')
12491248
@:ALLOCATE(ib_gbl_idx_lookup(1:num_gbl_ibs))
12501249

12511250
end subroutine s_reduce_ib_patch_array

0 commit comments

Comments
 (0)