Skip to content

make xgrid default and fix sw flux to mom ocn#387

Merged
jedwards4b merged 2 commits into
ESCOMP:mainfrom
jedwards4b:fix_aoflux_and_swtoocn
May 24, 2023
Merged

make xgrid default and fix sw flux to mom ocn#387
jedwards4b merged 2 commits into
ESCOMP:mainfrom
jedwards4b:fix_aoflux_and_swtoocn

Conversation

@jedwards4b
Copy link
Copy Markdown
Collaborator

…mom ocn

Description of changes

Critical bug fixes. First the aoflux should happen on the xgrid,
second the Mom ocn model uses sw bands and not swnet, change the
test in prep_ocn to work with MOM.

Specific notes

Contributors other than yourself, if any:

CMEPS Issues Fixed (include github issue #):

Are changes expected to change answers? (specify if bfb, different at roundoff, more substantial)

Any User Interface Changes (namelist or namelist defaults changes)?

Testing performed

Please describe the tests along with the target model and machine(s)
If possible, please also added hashes that were used in the testing

@jedwards4b jedwards4b self-assigned this May 23, 2023
@jedwards4b jedwards4b requested a review from fischer-ncar May 23, 2023 20:58
@fischer-ncar
Copy link
Copy Markdown
Collaborator

So this also fixes the zeroed values for sw in MOM.

Comment thread mediator/med_phases_prep_ocn_mod.F90 Outdated
.not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_vdr', rc=rc) .and. &
.not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_vdf', rc=rc) .and. &
.not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_idr', rc=rc) .and. &
.not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_idf', rc=rc)) then
Copy link
Copy Markdown
Contributor

@mnlevy1981 mnlevy1981 May 23, 2023

Choose a reason for hiding this comment

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

Is it okay if only one of Foxx_swnet_vdr, Foxx_swnet_vdf, Foxx_swnet_idr, or Foxx_swnet_idf is sent? I would think you need to send all four, so this if statement should be

    if ( .not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet', rc=rc) .and. &
         .not. (FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_vdr', rc=rc) .and. &
                FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_vdf', rc=rc) .and. &
                FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_idr', rc=rc) .and. &
                FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_idf', rc=rc))) then

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sure we can do it that way.

@jedwards4b jedwards4b requested a review from mnlevy1981 May 24, 2023 02:05
Copy link
Copy Markdown
Contributor

@mnlevy1981 mnlevy1981 left a comment

Choose a reason for hiding this comment

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

LGTM

@jedwards4b jedwards4b merged commit b7bc64e into ESCOMP:main May 24, 2023
@jedwards4b jedwards4b deleted the fix_aoflux_and_swtoocn branch May 24, 2023 15:22
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.

3 participants