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

Bit shaving and binary file output in History #2657

Closed
bena-nasa opened this issue Mar 18, 2024 · 1 comment · Fixed by #2658
Closed

Bit shaving and binary file output in History #2657

bena-nasa opened this issue Mar 18, 2024 · 1 comment · Fixed by #2658
Assignees
Labels
🪲 Bug Something isn't working

Comments

@bena-nasa
Copy link
Collaborator

bena-nasa commented Mar 18, 2024

The LDAS folks were finding that turning collections to instantaneous from time-averaged in History was changing the GEOSldas.x checkpoint. I looked into it and it was indeed the case. The issue though is the bit shaving in the binary code path.

Looks like since v2.8.6 of MAPL binary output has had a bit-shaving option. Turns out there's a possible bug. When bit shaving basically the "output state" of the collection is passed to an optional routine to bit shave based on user input.

Looks like if instantaneous output, we are bit-shaving the actual fields from the component. Because of the friendliness business in MAPL, many exports are more than just diagnostic and this can change the model state. I confirmed that turning off bit shaving got rid of the non-zero diff.

If it is time-averaged, we've made a new buffer for the accumulation and this is what is bit shaved. When the accumulation is done, we shave that buffer, it has no effect on the component fields.

So if we are bit shaving instataneous output, we need to make a copy.

@bena-nasa bena-nasa added the 🪲 Bug Something isn't working label Mar 18, 2024
@bena-nasa bena-nasa self-assigned this Mar 18, 2024
@tclune
Copy link
Collaborator

tclune commented Mar 18, 2024

ugh.

bena-nasa added a commit that referenced this issue Mar 18, 2024
@bena-nasa bena-nasa mentioned this issue Mar 18, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants