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

dsnow optional argument in icepack_step_therm1 #908

Open
apcraig opened this issue Nov 16, 2023 · 2 comments
Open

dsnow optional argument in icepack_step_therm1 #908

apcraig opened this issue Nov 16, 2023 · 2 comments

Comments

@apcraig
Copy link
Contributor

apcraig commented Nov 16, 2023

There seems to be a complication with the "dsnow" optional argument in icepack_step_therm1. This shows up in the output from most compilers as something like

>diff ../derecho_intel_smoke_gx3_8x2_diag1_run5day.tre03d/logs/cice.runlog.231115-172605 ../derecho_intel_unittest_gx3_8x2_cmplog_diag1_opticep_run5day.tre03d/logs/cice.runlog.231115-184013 | more
1031c1029
< snow change (m)        =       -0.00000237267541165       0.00000274654110168
---
> snow change (m)        =        0.00000000000000000       0.00000000000000000

I think the problem is created because dsnown is NOT optional and is computed in icepack. dsnow is initialized to 0 in cice but if it's passed, then dsnow is computed/updated in merge_fluxes from dsnown. This does not seem to change answers, I guess because dsnown is an active variable and dsnow is just a diagnostic? Should dsnow be required to be passed in icepack_step_therm1? Should we get rid of the diagnostic output in CICE? Should we just treat this as OK?

@dabail10
Copy link
Contributor

dabail10 commented Jul 5, 2024

Finally getting back to this one. I think we want dsnow to be non-optional. This looks like a diagnostic that is on regardless of the configuration. There is a history variable f_dsnow that is not on by default.

@eclare108213
Copy link
Contributor

I agree, if dsnown is not optional and the diagnostic dsnow is always printed, then make dsnow non-optional. The other option would be to get rid of the diagnostic output (or wrap it in an if statement of some kind), but I think it's useful to consistently have it in the diagnostic output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants