Conditionally Couple Wave Fields based on COMPSET #6885
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is a issue in E3SM where the coupler history files contain wave variables even in compsets with NO active wave component. This PR fixes the issue by making all coupled wave fields "conditional" on the existence of an active wave component.
This PR produces BFB results in standard B cases with no active waves apart from the differing field list.
This PR adds a drv_in namelist variable called "wav_ocn_coup". This variable controls the coupling between the wave and ocean components. "wav_ocn_coup" is automatically defined (no user input is required) with one of the following: "none", "one" or "two" - based on the active components in the selected COMPSET.
For example, a B case with active WW3 automatically sets the wav_ocn_coup to "two" (full two-way coupling enabled between waves and ocean). However, a standard B case with no WW3 sets "wav_ocn_coup to "none" where no wave-ocean coupling is defined in the model.
Note: This framework is flexible enough to allow future capabilities of wave coupling. For example, in compsets where a data model is used, wav_ocn_coup could be set to "one", to enable one way coupling (passing information from a data model to active wave component). Furthermore, this framework will be expanded upon in the future to allow one and two way coupling between wave-atmosphere, as well as wave-sea ice components.