Skip to content

Commit

Permalink
Merge pull request #2840 from E3SM-Project/jayeshkrishna/suppress_pio…
Browse files Browse the repository at this point in the history
…_non_root_msgs

Making sure that we print out PIO logs only from rank 0 of each
component.

This bug was introduced in PR #2799.

Fixes #2839

[BFB]
  • Loading branch information
jayeshkrishna authored Apr 10, 2019
2 parents 2289202 + b2afe29 commit 5f58914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/share/util/shr_pio_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ subroutine shr_pio_init2(comp_id, comp_name, comp_iamin, comp_comm, comp_comm_ia
end do
end if
do i=1,total_comps
if(comp_iamin(i)) then
if(comp_iamin(i) .and. (comp_comm_iam(i) == 0)) then
write(shr_log_unit,*) io_compname(i),' : pio_numiotasks = ',pio_comp_settings(i)%pio_numiotasks
write(shr_log_unit,*) io_compname(i),' : pio_stride = ',pio_comp_settings(i)%pio_stride
write(shr_log_unit,*) io_compname(i),' : pio_rearranger = ',pio_comp_settings(i)%pio_rearranger
Expand Down

0 comments on commit 5f58914

Please sign in to comment.