From ab9409691df7beb12032447471d780b65f88f1dd Mon Sep 17 00:00:00 2001 From: Lizzie Lundgren Date: Tue, 3 Dec 2024 12:18:29 -0500 Subject: [PATCH] Added amIRoot condition to writing message about opening files with HEMCO Signed-off-by: Lizzie Lundgren --- CHANGELOG.md | 4 ++++ src/Core/hcoio_read_std_mod.F90 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ac76cbf..1a10b01f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] - TBD +### Fixed +- Fixed excessive prints when using MPI + ## [3.10.0] - 2024-11-07 ### Added - Added TSOIL1 field to `ExtState` diff --git a/src/Core/hcoio_read_std_mod.F90 b/src/Core/hcoio_read_std_mod.F90 index 76f35994..511e3b6c 100644 --- a/src/Core/hcoio_read_std_mod.F90 +++ b/src/Core/hcoio_read_std_mod.F90 @@ -467,7 +467,7 @@ SUBROUTINE HCOIO_Read( HcoState, Lct, RC ) ENDIF ! Also write to standard output - WRITE( 6, 100 ) TRIM( srcFile ) + IF ( HcoState%Config%amIRoot ) WRITE( 6, 100 ) TRIM( srcFile ) 100 FORMAT( 'HEMCO: Opening ', a ) ! This is now the file in archive