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

Likely wrong RTM river flux to MOM6 within cesm2_3_beta17 #50

Closed
jiang-zhu opened this issue May 28, 2024 · 12 comments · Fixed by #51
Closed

Likely wrong RTM river flux to MOM6 within cesm2_3_beta17 #50

jiang-zhu opened this issue May 28, 2024 · 12 comments · Fixed by #51

Comments

@jiang-zhu
Copy link

The river runoff flux to MOM6 is likely wrong when run RTM within cesm2_3_beta17.

See screenshort of the variable 'friver' in MOM6 output
friver_in_mom6
The left plot is from the simulation with RTM, while the right is with MOSART.

This could indicate an error in the units in the coupler or in the mesh/mapping files. It could also be due to my error in setting up the simulation.

case directory
Run with RTM: /glade/u/home/jiangzhu/cesm/cases/b.e23.BLT1850.ne30pg3_t232.cesm2_3_b17.PI.01
Run with MOSART: /glade/campaign/cesm/cesmdata/cseg/runs/cesm2_0/b.e23_alpha17f.BLT1850.ne30_t232.091

Thank you!

@ekluzek
Copy link
Contributor

ekluzek commented May 28, 2024

@swensosc can you comment on this for us? This is looking like something we will need to fix for CESM3.0 as RTM is still important for Paleo work.

@slevis-lmwg @wwieder

@jiang-zhu
Copy link
Author

jiang-zhu commented May 29, 2024

Just in case it is helpful for diagnosing the problem, here are the water budget table from diags.log. Note the rof column (the 3rd column)

With RTM
(med_diag_print_summary) NET WATER BUDGET (kg/m2s*1e6): period = all_time: date = 220101 0
atm lnd rof ocn ice nh ice sh glc SUM
wmelt 0.00000000 0.00000000 0.00000000 0.42213238 -0.17388272 -0.24824966 0.00000000 -0.00000000
wrain -33.48871865 7.17317864 0.00000000 26.26049525 0.04545559 0.00977133 0.00000000 0.00018216
wsnow -2.47817569 0.92433299 0.00000000 1.14055897 0.14703244 0.26626659 0.00000000 0.00001530
wevap 35.95316028 -4.71595296 0.00000000 -31.18873952 -0.01745794 -0.03117410 0.00000000 -0.00016424
wrunoff 0.00000000 -3.20140904 3.20119642 0.00019894 0.00000000 0.00000000 0.00000000 -0.00001368
wfrzrof 0.00000000 -0.19240404 0.19237792 0.00000391 0.00000000 0.00000000 0.00000000 -0.00002221
SUM -0.01373407 -0.01225440 3.39357433 -3.36535005 0.00114737 -0.00338584 0.00000000 -0.00000267

With MOSART
(med_diag_print_summary) NET WATER BUDGET (kg/m2s*1e6): period = all_time: date = 900101 0
atm lnd rof ocn ice nh ice sh glc SUM
wmelt 0.00000000 0.00000000 0.00000000 0.57658999 -0.26336089 -0.31322910 0.00000000 -0.00000000
wrain -32.63109762 6.93500029 0.00000000 25.63555545 0.04503345 0.01559731 0.00000000 0.00008888
wsnow -2.86333889 0.93884215 0.00000000 1.39404831 0.17269882 0.35778977 0.00000000 0.00004017
wevap 35.47078470 -4.57599744 0.00000000 -30.82817940 -0.01956524 -0.04723873 0.00000000 -0.00019611
wrunoff 0.00000000 -3.18175621 -0.00278653 3.18452902 0.00000000 0.00000000 0.00000000 -0.00001372
wfrzrof 0.00000000 -0.16424818 0.00000000 0.16424493 0.00000000 0.00000000 0.00000000 -0.00000325
SUM -0.02365181 -0.04815938 -0.00278653 0.12678829 -0.06519386 0.01291925 0.00000000 -0.00008405

@swensosc
Copy link
Contributor

swensosc commented May 29, 2024 via email

@jiang-zhu
Copy link
Author

Thank you very much!

Your explanation makes sense to me. The order mismatch is also roughly consistent with the number in the diag table (e.g., 0.00019894 vs 3.18452902, the ocn & wrunoff numbers).

@wwieder
Copy link

wwieder commented May 30, 2024

If this looks OK, I suggest we wait to fix this until after the science code freeze if that's OK @jiang-zhu?

Also, @jiang-zhu is this something that you can open a PR to fix in RTM?

@wwieder wwieder added this to the CESM3.0 milestone May 30, 2024
@jiang-zhu
Copy link
Author

@wwieder we need this for the LGM simulation that I am doing. It would be best if we have the fix sooner.
I am not sure about how to fix this right now. Perhaps, @swensosc could give me some instructions? I am happy to perform any testing on this.

@swensosc
Copy link
Contributor

swensosc commented May 31, 2024 via email

@jiang-zhu
Copy link
Author

@swensosc @wwieder @ekluzek
Thank you for the fix.

Based on the salinity distribution and budget summary in diags.log, the fix worked.

Just in case you want to examine the rtm output, here is the case data: /glade/derecho/scratch/jiangzhu/b.e23_beta17.BLT1850.ne30pg3_t232.PI.02/run

@wwieder
Copy link

wwieder commented Jun 4, 2024

Thanks for looking into this, @jiang-zhu .

@swensosc can you open a PR for this code modification?

@swensosc
Copy link
Contributor

swensosc commented Jun 4, 2024 via email

@wwieder
Copy link

wwieder commented Jun 4, 2024

Agreed, but can this just happen in the PR review processes before it's merged?

@ekluzek
Copy link
Contributor

ekluzek commented Jun 4, 2024

@swensosc I agree with @wwieder propose a PR and @slevis-lmwg and I will look it over and let you know if we think it might need any changes. The primary thing I'd like to do is to do some checking and comparison to MOSART to make sure we are sure it's correct. I suspect the actual change you have is pretty small and it's easiest to inspect in a PR.

glemieux added a commit to rgknox/ctsm that referenced this issue Jul 24, 2024
Update submodule tags to pass runoff from cism to rof

- Update MOSART, CMEPS, and CISM so CISM runoff goes to ROF rather than CTSM
- Update RTM with fix needed for Paleo LGM work

Contributors:
@mvertens, @jedwards4b, @billsacks, @Katetc, @ekluzek, @slevis-lmwg

 Fixes ESCOMP#2590 Update CMEPS/MOSART/CISM/RTM tags
 Fixes ESCOMP/RTM#50 Likely wrong RTM river flux to MOM6 within cesm2_3_beta17

 Differences in namelist 'mosart_inparm':
  missing variable: 'do_rtmflood'
  missing variable: 'finidat_rtm'
  missing variable: 'frivinp_rtm'
  missing variable: 'rtmhist_fexcl1'
  missing variable: 'rtmhist_fexcl2'
  missing variable: 'rtmhist_fexcl3'
  missing variable: 'rtmhist_fincl1'
  missing variable: 'rtmhist_fincl2'
  missing variable: 'rtmhist_fincl3'
  missing variable: 'rtmhist_mfilt'
  missing variable: 'rtmhist_ndens'
  missing variable: 'rtmhist_nhtfrq'
  found extra variable: 'budget_frq'
  found extra variable: 'fexcl1'
  found extra variable: 'fexcl2'
  found extra variable: 'fexcl3'
  found extra variable: 'fincl1'
  found extra variable: 'fincl2'
  found extra variable: 'fincl3'
  found extra variable: 'finidat'
  found extra variable: 'frivinp'
  found extra variable: 'mfilt'
  found extra variable: 'mosart_euler_calc'
  found extra variable: 'mosart_tracers'
  found extra variable: 'ndens'
  found extra variable: 'nhtfrq'
  found extra variable: 'use_halo_option'

Changes answers
- what code configurations: mosart and rtm
- what platforms/compilers: all
- nature of change: mosart roundoff; rtm larger than roundoff due to bug fix; the latter also affects bgc variables

 We are ignoring strange diffs from baseline in two tests in variable
 FATES_TRANSITION_MATRIX_LULU as explained in issue ESCOMP#2656.
ekluzek added a commit to ekluzek/CTSM that referenced this issue Jul 24, 2024
Update submodule tags to pass runoff from cism to rof

- Update MOSART, CMEPS, and CISM so CISM runoff goes to ROF rather than CTSM
- Update RTM with fix needed for Paleo LGM work

Contributors:
@mvertens, @jedwards4b, @billsacks, @Katetc, @ekluzek, @slevis-lmwg

 Fixes ESCOMP#2590 Update CMEPS/MOSART/CISM/RTM tags
 Fixes ESCOMP/RTM#50 Likely wrong RTM river flux to MOM6 within cesm2_3_beta17

 Differences in namelist 'mosart_inparm':
  missing variable: 'do_rtmflood'
  missing variable: 'finidat_rtm'
  missing variable: 'frivinp_rtm'
  missing variable: 'rtmhist_fexcl1'
  missing variable: 'rtmhist_fexcl2'
  missing variable: 'rtmhist_fexcl3'
  missing variable: 'rtmhist_fincl1'
  missing variable: 'rtmhist_fincl2'
  missing variable: 'rtmhist_fincl3'
  missing variable: 'rtmhist_mfilt'
  missing variable: 'rtmhist_ndens'
  missing variable: 'rtmhist_nhtfrq'
  found extra variable: 'budget_frq'
  found extra variable: 'fexcl1'
  found extra variable: 'fexcl2'
  found extra variable: 'fexcl3'
  found extra variable: 'fincl1'
  found extra variable: 'fincl2'
  found extra variable: 'fincl3'
  found extra variable: 'finidat'
  found extra variable: 'frivinp'
  found extra variable: 'mfilt'
  found extra variable: 'mosart_euler_calc'
  found extra variable: 'mosart_tracers'
  found extra variable: 'ndens'
  found extra variable: 'nhtfrq'
  found extra variable: 'use_halo_option'

Changes answers
- what code configurations: mosart and rtm
- what platforms/compilers: all
- nature of change: mosart roundoff; rtm larger than roundoff due to bug fix; the latter also affects bgc variables

 We are ignoring strange diffs from baseline in two tests in variable
 FATES_TRANSITION_MATRIX_LULU as explained in issue ESCOMP#2656.

 Conflicts:
	bld/unit_testers/build-namelist_test.pl
slevis-lmwg added a commit to slevis-lmwg/ctsm that referenced this issue Jul 24, 2024
Update submodule tags to pass runoff from cism to rof

- Update MOSART, CMEPS, and CISM so CISM runoff goes to ROF rather than CTSM
- Update RTM with fix needed for Paleo LGM work

Contributors:
@mvertens, @jedwards4b, @billsacks, @Katetc, @ekluzek, @slevis-lmwg

 Fixes ESCOMP#2590 Update CMEPS/MOSART/CISM/RTM tags
 Fixes ESCOMP/RTM#50 Likely wrong RTM river flux to MOM6 within cesm2_3_beta17

 Differences in namelist 'mosart_inparm':
  missing variable: 'do_rtmflood'
  missing variable: 'finidat_rtm'
  missing variable: 'frivinp_rtm'
  missing variable: 'rtmhist_fexcl1'
  missing variable: 'rtmhist_fexcl2'
  missing variable: 'rtmhist_fexcl3'
  missing variable: 'rtmhist_fincl1'
  missing variable: 'rtmhist_fincl2'
  missing variable: 'rtmhist_fincl3'
  missing variable: 'rtmhist_mfilt'
  missing variable: 'rtmhist_ndens'
  missing variable: 'rtmhist_nhtfrq'
  found extra variable: 'budget_frq'
  found extra variable: 'fexcl1'
  found extra variable: 'fexcl2'
  found extra variable: 'fexcl3'
  found extra variable: 'fincl1'
  found extra variable: 'fincl2'
  found extra variable: 'fincl3'
  found extra variable: 'finidat'
  found extra variable: 'frivinp'
  found extra variable: 'mfilt'
  found extra variable: 'mosart_euler_calc'
  found extra variable: 'mosart_tracers'
  found extra variable: 'ndens'
  found extra variable: 'nhtfrq'
  found extra variable: 'use_halo_option'

Changes answers
- what code configurations: mosart and rtm
- what platforms/compilers: all
- nature of change: mosart roundoff; rtm larger than roundoff due to bug fix; the latter also affects bgc variables

 We are ignoring strange diffs from baseline in two tests in variable
 FATES_TRANSITION_MATRIX_LULU as explained in issue ESCOMP#2656.
samsrabin added a commit to samsrabin/CTSM that referenced this issue Jul 25, 2024
Update submodule tags to pass runoff from cism to rof

- Update MOSART, CMEPS, and CISM so CISM runoff goes to ROF rather than CTSM
- Update RTM with fix needed for Paleo LGM work

Contributors:
@mvertens, @jedwards4b, @billsacks, @Katetc, @ekluzek, @slevis-lmwg

 Fixes ESCOMP#2590 Update CMEPS/MOSART/CISM/RTM tags
 Fixes ESCOMP/RTM#50 Likely wrong RTM river flux to MOM6 within cesm2_3_beta17

 Differences in namelist 'mosart_inparm':
  missing variable: 'do_rtmflood'
  missing variable: 'finidat_rtm'
  missing variable: 'frivinp_rtm'
  missing variable: 'rtmhist_fexcl1'
  missing variable: 'rtmhist_fexcl2'
  missing variable: 'rtmhist_fexcl3'
  missing variable: 'rtmhist_fincl1'
  missing variable: 'rtmhist_fincl2'
  missing variable: 'rtmhist_fincl3'
  missing variable: 'rtmhist_mfilt'
  missing variable: 'rtmhist_ndens'
  missing variable: 'rtmhist_nhtfrq'
  found extra variable: 'budget_frq'
  found extra variable: 'fexcl1'
  found extra variable: 'fexcl2'
  found extra variable: 'fexcl3'
  found extra variable: 'fincl1'
  found extra variable: 'fincl2'
  found extra variable: 'fincl3'
  found extra variable: 'finidat'
  found extra variable: 'frivinp'
  found extra variable: 'mfilt'
  found extra variable: 'mosart_euler_calc'
  found extra variable: 'mosart_tracers'
  found extra variable: 'ndens'
  found extra variable: 'nhtfrq'
  found extra variable: 'use_halo_option'

Changes answers
- what code configurations: mosart and rtm
- what platforms/compilers: all
- nature of change: mosart roundoff; rtm larger than roundoff due to bug fix; the latter also affects bgc variables

 We are ignoring strange diffs from baseline in two tests in variable
 FATES_TRANSITION_MATRIX_LULU as explained in issue ESCOMP#2656.
adrifoster pushed a commit to adrifoster/CTSM that referenced this issue Jul 25, 2024
Update submodule tags to pass runoff from cism to rof

- Update MOSART, CMEPS, and CISM so CISM runoff goes to ROF rather than CTSM
- Update RTM with fix needed for Paleo LGM work

Contributors:
@mvertens, @jedwards4b, @billsacks, @Katetc, @ekluzek, @slevis-lmwg

 Fixes ESCOMP#2590 Update CMEPS/MOSART/CISM/RTM tags
 Fixes ESCOMP/RTM#50 Likely wrong RTM river flux to MOM6 within cesm2_3_beta17

 Differences in namelist 'mosart_inparm':
  missing variable: 'do_rtmflood'
  missing variable: 'finidat_rtm'
  missing variable: 'frivinp_rtm'
  missing variable: 'rtmhist_fexcl1'
  missing variable: 'rtmhist_fexcl2'
  missing variable: 'rtmhist_fexcl3'
  missing variable: 'rtmhist_fincl1'
  missing variable: 'rtmhist_fincl2'
  missing variable: 'rtmhist_fincl3'
  missing variable: 'rtmhist_mfilt'
  missing variable: 'rtmhist_ndens'
  missing variable: 'rtmhist_nhtfrq'
  found extra variable: 'budget_frq'
  found extra variable: 'fexcl1'
  found extra variable: 'fexcl2'
  found extra variable: 'fexcl3'
  found extra variable: 'fincl1'
  found extra variable: 'fincl2'
  found extra variable: 'fincl3'
  found extra variable: 'finidat'
  found extra variable: 'frivinp'
  found extra variable: 'mfilt'
  found extra variable: 'mosart_euler_calc'
  found extra variable: 'mosart_tracers'
  found extra variable: 'ndens'
  found extra variable: 'nhtfrq'
  found extra variable: 'use_halo_option'

Changes answers
- what code configurations: mosart and rtm
- what platforms/compilers: all
- nature of change: mosart roundoff; rtm larger than roundoff due to bug fix; the latter also affects bgc variables

 We are ignoring strange diffs from baseline in two tests in variable
 FATES_TRANSITION_MATRIX_LULU as explained in issue ESCOMP#2656.
adrifoster pushed a commit to adrifoster/CTSM that referenced this issue Jul 25, 2024
Update submodule tags to pass runoff from cism to rof

- Update MOSART, CMEPS, and CISM so CISM runoff goes to ROF rather than CTSM
- Update RTM with fix needed for Paleo LGM work

Contributors:
@mvertens, @jedwards4b, @billsacks, @Katetc, @ekluzek, @slevis-lmwg

 Fixes ESCOMP#2590 Update CMEPS/MOSART/CISM/RTM tags
 Fixes ESCOMP/RTM#50 Likely wrong RTM river flux to MOM6 within cesm2_3_beta17

 Differences in namelist 'mosart_inparm':
  missing variable: 'do_rtmflood'
  missing variable: 'finidat_rtm'
  missing variable: 'frivinp_rtm'
  missing variable: 'rtmhist_fexcl1'
  missing variable: 'rtmhist_fexcl2'
  missing variable: 'rtmhist_fexcl3'
  missing variable: 'rtmhist_fincl1'
  missing variable: 'rtmhist_fincl2'
  missing variable: 'rtmhist_fincl3'
  missing variable: 'rtmhist_mfilt'
  missing variable: 'rtmhist_ndens'
  missing variable: 'rtmhist_nhtfrq'
  found extra variable: 'budget_frq'
  found extra variable: 'fexcl1'
  found extra variable: 'fexcl2'
  found extra variable: 'fexcl3'
  found extra variable: 'fincl1'
  found extra variable: 'fincl2'
  found extra variable: 'fincl3'
  found extra variable: 'finidat'
  found extra variable: 'frivinp'
  found extra variable: 'mfilt'
  found extra variable: 'mosart_euler_calc'
  found extra variable: 'mosart_tracers'
  found extra variable: 'ndens'
  found extra variable: 'nhtfrq'
  found extra variable: 'use_halo_option'

Changes answers
- what code configurations: mosart and rtm
- what platforms/compilers: all
- nature of change: mosart roundoff; rtm larger than roundoff due to bug fix; the latter also affects bgc variables

 We are ignoring strange diffs from baseline in two tests in variable
 FATES_TRANSITION_MATRIX_LULU as explained in issue ESCOMP#2656.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants