Skip to content

Mute fusion warnings#80

Open
maritsandstad wants to merge 2 commits into
noresmfrom
mute-fusion-warnings
Open

Mute fusion warnings#80
maritsandstad wants to merge 2 commits into
noresmfrom
mute-fusion-warnings

Conversation

@maritsandstad

Copy link
Copy Markdown
Collaborator

Description:

Putting very arduous logging messages from patch fusion below debug statment to not overfill logs

Collaborators:

@kjetilaas

Expectation of Answer Changes:

Just slightly shorter logs

Checklist:

  • My change requires a change to the documentation.
  • I have updated the in-code documentation .AND. (the technical note .OR. the wiki) accordingly.
  • I have read the CONTRIBUTING document.
  • FATES PASS/FAIL regression tests were run
  • If answers were expected to change, evaluation was performed and provided

Test Results:

CTSM (or) E3SM (specify which) test hash-tag:

CTSM (or) E3SM (specify which) baseline hash-tag:

FATES baseline hash-tag:

Test Output:

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces log verbosity during patch termination/fusion by gating a particularly verbose fusion warning behind the module’s debug flag.

Changes:

  • Wrap the “small nocomp patch … relabelling and fusing into the largest patch …” warning in a debug conditional to suppress it in non-debug builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3622 to +3631
if(debug) then
warn_msg = 'small nocomp patch wasnt able to find a matching patch to '// &
'fuse with; relabelling and fusing into the largest patch of '// &
'the same land-use label. '// &
'nocomp pft: '//trim(I2S(currentPatch%nocomp_pft_label))// &
'lu label: '//trim(I2S(currentPatch%land_use_label))// &
'area: '//trim(N2S(currentPatch%area))
call FatesWarn(warn_msg,index=5)


call FatesWarn(warn_msg,index=5)
end if
if ( associated(largest_patch) ) then
warn_msg = 'small nocomp patch wasnt able to find a matching patch to '// &
if(debug) then
warn_msg = 'small nocomp patch wasnt able to find a matching patch to '// &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants