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

albgrd_col not set to spval before call to hist_addfld2d #1788

Closed
olyson opened this issue Jun 24, 2022 · 3 comments · Fixed by #1810
Closed

albgrd_col not set to spval before call to hist_addfld2d #1788

olyson opened this issue Jun 24, 2022 · 3 comments · Fixed by #1810
Labels
bfb bit-for-bit bug something is working incorrectly good first issue simple; good for first-time contributors

Comments

@olyson
Copy link
Contributor

olyson commented Jun 24, 2022

Brief summary of bug

albgrd_col is not set to spval before call to hist_addfld2d in SurfaceAlbedoType.F90

General bug information

CTSM version you are using: ctsm5.1.dev082

Does this bug cause significantly incorrect results in the model's science? No (but not checked)

Configurations affected: All

Details of bug

I see this in SurfaceAlbedoType.F90:

this%albgri_col(begc:endc,:) = spval
call hist_addfld2d (fname='ALBGRD', units='proportion', type2d='numrad', &
     avgflag='A', long_name='ground albedo (direct)', &
     ptr_col=this%albgrd_col, default='inactive')

this%albgri_col(begc:endc,:) = spval
call hist_addfld2d (fname='ALBGRI', units='proportion', type2d='numrad', &
     avgflag='A', long_name='ground albedo (indirect)', &
     ptr_col=this%albgri_col, default='inactive')

The first line above should be:

this%albgrd_col(begc:endc,:) = spval
@olyson olyson added bug something is working incorrectly next this should get some attention in the next week or two. Normally each Thursday SE meeting. labels Jun 24, 2022
@billsacks billsacks added tag: simple bfb good first issue simple; good for first-time contributors labels Jun 29, 2022
@ekluzek
Copy link
Collaborator

ekluzek commented Jul 7, 2022

I fixed this in ctsm5.1.dev100 for a simple f09 case and it showed identical answers.

SMS_Ld1_PS.f09_g17.I2000Clm50BgcCru.cheyenne_gnu.clm-datm_bias_correct_cruv7

I think that likely means this can be treated as a simple bit-for-bit change, so I'm marking it as such.

@billsacks
Copy link
Member

So are you saying this is fixed and this issue should be closed? Or just that you tested the fix?

Note that ALBGRD is not output in any of our tests (as far as I can see). This may change that diagnostic field when it's output, but I still think simple bfb is a reasonable designation for this.

@billsacks
Copy link
Member

Checking code: this still needs to be fixed.

@billsacks billsacks removed the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Jul 28, 2022
@samsrabin samsrabin added simple bfb bit-for-bit labels Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bfb bit-for-bit bug something is working incorrectly good first issue simple; good for first-time contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants