Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_diag_integral: Avoid I/O unit 100 #1605

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions test_fms/diag_integral/test_diag_integral.F90
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,12 @@ end subroutine test_sum_diag_integral_field
!-------------------------------------
subroutine read_diag_integral_file

character(17), parameter :: di_file='diag_integral.out'
integer, parameter :: iunit=100

character(*), parameter :: di_file='diag_integral.out'
integer :: iunit
character(100) :: cline1, cline2, cline3, cline4, cline5, clin6

!> read in computed values
open(unit=iunit,file=trim(di_file))
open(newunit=iunit, file=di_file)
read(iunit,*) cline1, cline2, cline3, cline4, cline5, clin6
read(iunit,*) itime, field_avg2, field_avg3, field_avgw, field_avgh
close(iunit)
Expand Down
Loading