Skip to content

Commit

Permalink
fix looping range
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Peverley committed Nov 1, 2023
1 parent 5149a48 commit 9da2590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control/cam_history.F90
Original file line number Diff line number Diff line change
Expand Up @@ -5623,7 +5623,7 @@ subroutine wshist (rgnht_in)
! Check that this new filename isn't the same as a previous or current filename
!
duplicate = .false.
do f = 1, t
do f = 1, ptapes
if (masterproc)then
if (trim(fname) == trim(nhfil(f,1)) .and. trim(fname) /= '') then
write(iulog,*)'WSHIST: New filename same as old file = ', trim(fname)
Expand Down

0 comments on commit 9da2590

Please sign in to comment.