Skip to content

Commit db3147b

Browse files
authored
deallocate fix for openacc (#872)
1 parent e309203 commit db3147b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/include/macros.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
#:def DEALLOCATE(*args)
2020
@:LOG({'@:DEALLOCATE(${re.sub(' +', ' ', ', '.join(args))}$)'})
21-
deallocate (${', '.join(args)}$)
2221
!$acc exit data delete(${', '.join(args)}$)
22+
deallocate (${', '.join(args)}$)
2323
#:enddef DEALLOCATE
2424

2525
#:def ACC_SETUP_VFs(*args)

src/simulation/m_data_output.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module m_data_output
5454
real(wp), allocatable, dimension(:, :, :) :: ccfl_sf !< CCFL stability criterion
5555
real(wp), allocatable, dimension(:, :, :) :: Rc_sf !< Rc stability criterion
5656
real(wp), public, allocatable, dimension(:, :) :: c_mass
57-
!$acc declare create(icfl_sf, vcfl_sf, ccfl_sf, Rc_sf)
57+
!$acc declare create(icfl_sf, vcfl_sf, ccfl_sf, Rc_sf, c_mass)
5858

5959
real(wp) :: icfl_max_loc, icfl_max_glb !< ICFL stability extrema on local and global grids
6060
real(wp) :: vcfl_max_loc, vcfl_max_glb !< VCFL stability extrema on local and global grids

0 commit comments

Comments
 (0)