Skip to content

Commit c06de98

Browse files
committed
Merge remote-tracking branch 'upstream' into MovingBubblesFresh-clean
2 parents f856b84 + ada2764 commit c06de98

10 files changed

Lines changed: 147 additions & 162 deletions

src/common/m_boundary_common.fpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,23 +188,22 @@ contains
188188
subroutine s_finalize_boundary_common_module()
189189

190190
if (bc_io) then
191-
deallocate (bc_buffers(1, 1)%sf)
192-
deallocate (bc_buffers(1, 2)%sf)
191+
@:DEALLOCATE(bc_buffers(1, 1)%sf)
192+
@:DEALLOCATE(bc_buffers(1, 2)%sf)
193193
#:if not MFC_CASE_OPTIMIZATION or num_dims > 1
194194
if (n > 0) then
195-
deallocate (bc_buffers(2, 1)%sf)
196-
deallocate (bc_buffers(2, 2)%sf)
195+
@:DEALLOCATE(bc_buffers(2, 1)%sf)
196+
@:DEALLOCATE(bc_buffers(2, 2)%sf)
197197
#:if not MFC_CASE_OPTIMIZATION or num_dims > 2
198198
if (p > 0) then
199-
deallocate (bc_buffers(3, 1)%sf)
200-
deallocate (bc_buffers(3, 2)%sf)
199+
@:DEALLOCATE(bc_buffers(3, 1)%sf)
200+
@:DEALLOCATE(bc_buffers(3, 2)%sf)
201201
end if
202202
#:endif
203203
end if
204204
#:endif
205205
end if
206-
207-
deallocate (bc_buffers)
206+
@:DEALLOCATE(bc_buffers)
208207

209208
end subroutine s_finalize_boundary_common_module
210209

src/common/m_mpi_common.fpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,12 @@ contains
19151915
impure subroutine s_finalize_mpi_common_module
19161916

19171917
#ifdef MFC_MPI
1918+
#ifndef __NVCOMPILER_GPU_UNIFIED_MEM
1919+
@:DEALLOCATE(buff_send, buff_recv)
1920+
#else
1921+
$:GPU_EXIT_DATA(delete='[buff_send, buff_recv]')
19181922
deallocate (buff_send, buff_recv)
1923+
#endif
19191924
#endif
19201925

19211926
end subroutine s_finalize_mpi_common_module

src/common/m_variables_conversion.fpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,9 @@ contains
12371237
if (bubbles_euler) then
12381238
@:DEALLOCATE(bubrs_vc)
12391239
end if
1240+
if (viscous) then
1241+
@:DEALLOCATE(Res_vc)
1242+
end if
12401243
#else
12411244
@:DEALLOCATE(gammas, gs_min, pi_infs, ps_inf, cvs, qvs, qvps, Gs_vc)
12421245
if (bubbles_euler) then

0 commit comments

Comments
 (0)