Skip to content
Open
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
6 changes: 5 additions & 1 deletion src/framework/mpas_stream_manager.F
Original file line number Diff line number Diff line change
Expand Up @@ -4073,7 +4073,7 @@ subroutine mpas_get_stream_filename(manager, streamID, when, blockID, filename,
type (MPAS_TimeInterval_type) :: filename_interval
type (MPAS_Time_type) :: now_time

ierr = 0
err_local = 0

if ( present(blockID) ) then
blockID_local = blockID
Expand Down Expand Up @@ -4107,6 +4107,10 @@ subroutine mpas_get_stream_filename(manager, streamID, when, blockID, filename,
end if
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if( present() ) statement above (line 4104) makes use of ierr and assigns to it instead of ierr_local - @mgduda I think it may make sense to also modify the assignment so that the final ierr assignment has the correct error code.

end if

if ( present(ierr) ) then
ierr = err_local
end if

end subroutine mpas_get_stream_filename !}}}


Expand Down