Skip to content

Commit

Permalink
Close nc files
Browse files Browse the repository at this point in the history
This script does not close some input NetCDF files. This causes crashes
due to too many files left open. The commit closes the files and should
resolve the issue.
  • Loading branch information
kjnam committed Aug 7, 2023
1 parent eb50ebd commit 9517c51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Utility/OneWayNestScripts/interpolate_variables8.f90
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,9 @@ program interpolate
! print*, 'finished writing time (days) = ',time/86400
enddo !it1=1,nrec
iret=nf90_close(ncid3)
iret=nf90_close(ncid4)
iret=nf90_close(ncid5)
iret=nf90_close(ncid6)

!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
enddo !iday=1,
Expand Down

0 comments on commit 9517c51

Please sign in to comment.