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

Convert GFS DDTs from blocked data structures to contiguous arrays (aka update GFS_debug.F90) #183

Merged
merged 10 commits into from
Aug 8, 2024

Conversation

climbfuji
Copy link

@climbfuji climbfuji commented Mar 11, 2024

Description

In the UFS atmospheric component fv3atm and submodules, convert internal GFS DDTs from blocked data structures to contiguous arrays. This excludes the (external) GFS_extdiag and GFS_restart DDTs. Also remove the GFS_Data super DDT and use the individual DDTs directly.

For ccpp-physics, this only affects the (apparently unused) GFS_debug.{f90,meta} files. We could consider removing them entirely instead of updating them, since they don't get used?

Testing

See ufs-community/ufs-weather-model#2183

Associated PRs:

NOAA-GFDL/GFDL_atmos_cubed_sphere#330
#183
NOAA-EMC/fv3atm#798
ufs-community/ufs-weather-model#2183

@Qingfu-Liu Qingfu-Liu self-requested a review March 20, 2024 19:17
@grantfirl
Copy link
Collaborator

@climbfuji I'd like to keep these in the repo since they can be useful. You've already done the work, so why not?

@climbfuji
Copy link
Author

@climbfuji I'd like to keep these in the repo since they can be useful. You've already done the work, so why not?

Fine with me. We should have a regression test though to make sure they are still working

@climbfuji climbfuji changed the title (sneak preview only) Branch ufs/dev: convert GFS DDTs from blocked data structures to contiguous arrays Convert GFS DDTs from blocked data structures to contiguous arrays (aka update GFS_debug.F90) May 22, 2024
@climbfuji climbfuji marked this pull request as ready for review May 22, 2024 20:08
@climbfuji
Copy link
Author

This PR is now ready for review

…/CLM/clm_lake.f90 and remove OPTIONAL keyword from Fortran code to fix intel 19 runtime issues
@climbfuji
Copy link
Author

@DusanJovic-NOAA @dustinswales @grantfirl I just pushed commit afa2bc0 (and corresponding submodule pointer updates all the way up to ufs-weather-model).

I was able to build a spack-stack environment "somewhat similar" to that on WCOSS2 on S4 using [email protected]. WIth that environment, I ran into issues (segfaults, memory corruption) in clm_lake.f90 around the lakeini routine. That's probably the same part of the code that the WCOSS2 runs had problems with.

With the changes I made in commit afa2bc0, the runs went through on S4 (with the -check nopointer flag removed). Could you give this a try, please?

@FernandoAndrade-NOAA
Copy link

Testing on 2183 has completed successfully, please continue with the merge process.

@zach1221
Copy link

zach1221 commented Aug 8, 2024

Adding @grantfirl . Grant, are you able to merge for us?

@grantfirl grantfirl merged commit 1d9b076 into ufs-community:ufs/dev Aug 8, 2024
3 checks passed
@climbfuji climbfuji deleted the feature/gfs_debug_update branch August 9, 2024 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants