Skip to content

Commit

Permalink
fix: check that module variables are allocated before deallocating in…
Browse files Browse the repository at this point in the history
… astronomy_end (#1629)
  • Loading branch information
laurenchilutti authored Jan 2, 2025
1 parent 137de82 commit 95c0233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astronomy/astronomy.F90
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ subroutine astronomy_end
!----------------------------------------------------------------------
!> deallocate module variables.
!----------------------------------------------------------------------
deallocate (orb_angle)
if (allocated(orb_angle)) deallocate (orb_angle)
if (allocated(cosz_ann) ) then
deallocate (cosz_ann)
deallocate (fracday_ann)
Expand Down

0 comments on commit 95c0233

Please sign in to comment.