Skip to content

Commit

Permalink
add check that module variables are allocated before deallocating in …
Browse files Browse the repository at this point in the history
…astronomy_end
  • Loading branch information
laurenchilutti committed Jan 2, 2025
1 parent 9256dfd commit a88f16a
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 a88f16a

Please sign in to comment.