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

Fix LDT MERRA-2 metforcing unnecessary memory allocation and logs #1636

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

dmocko
Copy link
Contributor

@dmocko dmocko commented Nov 5, 2024

This commit fixes a possible unneeded memory allocation in the LDT MERRA-2 metforcing reader. Now, the forcing variables are only allocated when LDT is run in one of these three modes:

"Metforce processing"
"Metforce temporal downscaling"
"Statistical downscaling of met forcing"

Also, minor clean-ups are made to log messages for this metforcing.

Resolves: #1634

This commit fixes a possible unneeded memory allocation in the LDT
MERRA-2 metforcing reader.  Now, the forcing variables are only
allocated when LDT is run in one of these three modes:

"Metforce processing"
"Metforce temporal downscaling"
"Statistical downscaling of met forcing"

Also, minor clean-ups are made to log messages for this metforcing.

Resolves: NASA-LIS#1634
@dmocko dmocko added the BugFix Fixes bug found in code label Nov 5, 2024
@emkemp
Copy link
Contributor

emkemp commented Nov 5, 2024

Code looks fine, and it compiles w/o issue.

However, there are two issues.
(1) This PR is targeting master. It could be argued this should point to the latest public branch, and then migrated to master. @jvgeiger, do you have an opinion on this?
(2) If @jvgeiger has any existing MERRA2 test cases for LDT, it would be good to run them first before approving the PR.

@jvgeiger
Copy link
Contributor

jvgeiger commented Nov 5, 2024

I agree that (1) could be argued either way. I will rebase this onto the public branch.

Regarding (2), unfortunately, I do not have an LDT MERRA2 test case.

@jvgeiger jvgeiger changed the base branch from master to support/lisf-public-7.5 November 5, 2024 20:04
@jvgeiger jvgeiger changed the base branch from support/lisf-public-7.5 to master November 5, 2024 20:04
@jvgeiger
Copy link
Contributor

jvgeiger commented Nov 5, 2024

That did not rebase very cleanly. Because it is not a bug, I will leave it on master.

@jvgeiger jvgeiger merged commit 6bf4dca into NASA-LIS:master Nov 5, 2024
@dmocko dmocko deleted the fix/ldt-merra2-mem-logs branch November 5, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugFix Fixes bug found in code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LDT MERRA-2 metforcing unneeded memory allocation and ldtlog issues
3 participants