Skip to content

Commit 9952603

Browse files
author
Daniel Vickers
committed
Fixed openMP issue on Frontier
1 parent fe0dfab commit 9952603

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/simulation/m_ib_patches.fpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ contains
140140

141141
do patch_id = 1, num_ibs
142142
if (patch_ib(patch_id)%geometry == 5 .or. patch_ib(patch_id)%geometry == 12) then
143-
@:ALLOCATE(models(patch_id)%model)
144-
143+
allocate(models(patch_id)%model)
145144
print *, " * Reading model: "//trim(patch_ib(patch_id)%model_filepath)
146145

147146
model = f_model_read(patch_ib(patch_id)%model_filepath)
@@ -237,7 +236,7 @@ contains
237236
end if
238237

239238
! update allocatables
240-
$:GPU_UPDATE(device='[models]')
239+
$:GPU_ENTER_DATA(copyin='[models(patch_id)]')
241240
$:GPU_ENTER_DATA(copyin='[models(patch_id)%boundary_v]')
242241
$:GPU_ENTER_DATA(copyin='[models(patch_id)%model%trs]')
243242
if (interpolate) then

0 commit comments

Comments
 (0)