Skip to content

Commit

Permalink
fix: append root pe number to diag_field_log.out file name (#1497)
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored Jun 24, 2024
1 parent 2404d77 commit 7d565db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion diag_manager/diag_manager.F90
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ MODULE diag_manager_mod
USE fms_diag_outfield_mod, ONLY: fmsDiagOutfieldIndex_type, fmsDiagOutfield_type
USE fms_diag_fieldbuff_update_mod, ONLY: fieldbuff_update, fieldbuff_copy_missvals, &
& fieldbuff_copy_fieldvals
USE fms_string_utils_mod, ONLY: string

USE netcdf, ONLY: NF90_INT, NF90_FLOAT, NF90_CHAR

Expand Down Expand Up @@ -4224,7 +4225,7 @@ SUBROUTINE diag_manager_init(diag_model_subset, time_init, err_msg)

! open diag field log file
IF ( do_diag_field_log.AND.mpp_pe().EQ.mpp_root_pe() ) THEN
open(newunit=diag_log_unit, file='diag_field_log.out', action='WRITE')
open(newunit=diag_log_unit, file='diag_field_log.out.'//string(mpp_pe()), action='WRITE')
WRITE (diag_log_unit,'(777a)') &
& 'Module', FIELD_LOG_SEPARATOR, 'Field', FIELD_LOG_SEPARATOR, &
& 'Long Name', FIELD_LOG_SEPARATOR, 'Units', FIELD_LOG_SEPARATOR, &
Expand Down

0 comments on commit 7d565db

Please sign in to comment.