Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print HEMCO verbose status and volcano extension on root thread only #221

Merged
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/Core/hco_config_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ SUBROUTINE ReadSettings( HcoConfig, IU_HCO, EOF, RC )
ELSE
msg = NEW_LINE( 'A' ) // 'HEMCO verbose output is OFF'
ENDIF
CALL HCO_Msg( msg, verb=.TRUE. )
IF ( HcoConfig%amIRoot ) CALL HCO_Msg( msg, verb=.TRUE. )

! Logfile to write into
CALL GetExtOpt( HcoConfig, CoreNr, 'Logfile', &
Expand Down
23 changes: 13 additions & 10 deletions src/Extensions/hcox_volcano_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -355,18 +355,21 @@ SUBROUTINE HCOX_Volcano_Init( HcoState, ExtName,ExtState, RC )
! Extension Nr.
ExtNr = GetExtNr( HcoState%Config%ExtList, TRIM(ExtName) )

IF ( ExtNr > 0 ) THEN
! Write the name of the extension regardless of the verbose setting
msg = 'Using HEMCO extension: Volcano (volcanic SO2 emissions)'
IF ( HCO_IsVerb( HcoState%Config%Err ) ) THEN
CALL HCO_Msg( HcoState%Config%Err, msg, sep1='-' ) ! with separator
! Print to log
IF ( HcoState%amIRoot ) THEN
IF ( ExtNr > 0 ) THEN
! Write the name of the extension regardless of the verbose setting
msg = 'Using HEMCO extension: Volcano (volcanic SO2 emissions)'
IF ( HCO_IsVerb( HcoState%Config%Err ) ) THEN
CALL HCO_Msg( HcoState%Config%Err, msg, sep1='-' ) ! with separator
ELSE
CALL HCO_Msg( msg, verb=.TRUE. ) ! w/o separator
ENDIF
ELSE
CALL HCO_Msg( msg, verb=.TRUE. ) ! w/o separator
MSG = 'The Volcano extension is turned off.'
CALL HCO_MSG( HcoState%Config%Err, MSG )
RETURN
ENDIF
ELSE
MSG = 'The Volcano extension is turned off.'
CALL HCO_MSG( HcoState%Config%Err, MSG )
RETURN
ENDIF

! Enter
Expand Down