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

QSNOEVAP history output incorrect #624

Closed
olyson opened this issue Jan 22, 2019 · 6 comments · Fixed by #883
Closed

QSNOEVAP history output incorrect #624

olyson opened this issue Jan 22, 2019 · 6 comments · Fixed by #883
Labels
bug something is working incorrectly science Enhancement to or bug impacting science

Comments

@olyson
Copy link
Contributor

olyson commented Jan 22, 2019

Brief summary of bug

QSNOEVAP history output is incorrect.

General bug information

CTSM version you are using: release-clm5.0.15

Does this bug cause significantly incorrect results in the model's science? Yes, if QSNOEVAP is used for analysis

Configurations affected: All

Details of bug

In WaterfluxType.F90, QSNOEVAP is defined as:

this%qflx_ev_snow_patch(begp:endp) = spval
call hist_addfld1d (fname='QSNOEVAP', units='mm/s',  &
     avgflag='A', long_name='evaporation from snow', &
     ptr_patch=this%qflx_tran_veg_patch, set_lake=0._r8, c2l_scale_type='urbanf')

but last line should be:

     ptr_patch=this%qflx_ev_snow_patch, set_lake=0._r8, c2l_scale_type='urbanf')
@ekluzek
Copy link
Collaborator

ekluzek commented Jan 22, 2019

@olyson @dlawrenncar should this fix go into release-clm5.0 ASAP then?

@dlawrenncar
Copy link
Contributor

dlawrenncar commented Jan 22, 2019 via email

@olyson
Copy link
Contributor Author

olyson commented Jan 22, 2019

QSNOEVAP is only requested for daily averages and we haven't asked for that output for CMIP6 runs thus far.
We do have QSNOEVAP output from our CLM_LAND_ONLY_RELEASE runs, which was just published unfortunately. I'm not sure we can delete these but I guess I can ask Gary?
I can delete my version of QSNOEVAP on:
/glade/p/cgd/tss/people/oleson/CLM_LAND_ONLY_RELEASE

@olyson
Copy link
Contributor Author

olyson commented Jan 23, 2019

Gary will delete QSNOEVAP from the published version of CLM_LAND_ONLY_RELEASE.
He will also delete QSNOEVAP data at:
/gpfs/fs1/collections/cdg/timeseries-cmip6

@ekluzek
Copy link
Collaborator

ekluzek commented Jan 23, 2019

I have a branch with the fix for this. I've also done some looking for this same type of problem elsewhere where ptr_patch points to the same array. There are some legit examples of this, where there is an ice mask for it. And there are some where a different name is allowed for the same variable.

@ekluzek
Copy link
Collaborator

ekluzek commented Aug 19, 2019

So fixed on release branch will be fixed on master when those changes come in.

@samsrabin samsrabin added the science Enhancement to or bug impacting science label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is working incorrectly science Enhancement to or bug impacting science
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants