Skip to content

Commit

Permalink
get_unit warning now only prints on root_pe (#872)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Stofferahn <Eric.Stofferahn@noaa.gov>
  • Loading branch information
rem1776 and Eric Stofferahn authored Dec 20, 2021
1 parent 6b12cb5 commit 6d179fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpp/include/mpp_util.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ end function rarray_to_char
integer,save :: i
logical :: l_open
call mpp_error(WARNING,'get_unit is deprecated and will be removed in a future release, please use the Fortran intrinsic newunit')
if (pe == root_pe) call mpp_error(WARNING,'get_unit is deprecated and will be removed in a future release, please use the Fortran intrinsic newunit')
do i=10,99
inquire(unit=i,opened=l_open)
if(.not.l_open)exit
Expand Down

0 comments on commit 6d179fc

Please sign in to comment.