Skip to content

Commit

Permalink
Deallocating fields used by get_box at the end of compute_gwd_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekg7 committed Jan 10, 2025
1 parent 6784e82 commit d1fabde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core_init_atmosphere/mpas_init_atm_gwd.F
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ function compute_gwd_fields(domain) result(iErr)
end if
end do

if (associated(box)) deallocate(box)
if (associated(box_landuse)) deallocate(box_landuse)
if (associated(dxm)) deallocate(dxm)
deallocate(hlanduse)

iErr = free_tile_list(tilesHead)
Expand Down

0 comments on commit d1fabde

Please sign in to comment.