Skip to content

Make stochastic physics independent of fv3atm and its submodules#27

Merged
pjpegion merged 21 commits into
NOAA-PSL:masterfrom
climbfuji:stochastic_physics_independent_of_fv3atm
Aug 6, 2020
Merged

Make stochastic physics independent of fv3atm and its submodules#27
pjpegion merged 21 commits into
NOAA-PSL:masterfrom
climbfuji:stochastic_physics_independent_of_fv3atm

Conversation

@climbfuji
Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji commented Jul 21, 2020

This PR and associated PRs make the stochastic_physics submodule independent of fv3atm and its submodules.

The approach taken is to provide independent calls to generic MPI routines and supply specific halo exchange routines for the FV3 model. If other models are added in the future, only the file halo_exchange.fv3.F90 needs to be swapped with another halo_exchange.myothermodel.F90 file (and the cmake build system can take care of which one of these to compile).

There is a lot more room for cleanup and improvement, notably the redundant storage of MPI-specific information (gis_stochy%me, ...) and the looping over blocks (as a consequence of the use of blocked data structures in fv3atm), but this is beyond the scope of the current PRs.

Fixes #24.

Not addressed in this PR: gnu-make build, standalone builds.

Associated PRs:

#27
NOAA-EMC/ufsatm#145
ufs-community/ufs-weather-model#171

For regression testing information, see ufs-community/ufs-weather-model#171.

climbfuji added 19 commits July 17, 2020 15:41
@climbfuji
Copy link
Copy Markdown
Collaborator Author

@pjpegion Please add @lisa-bengtsson as reviewer. Thanks.

@pjpegion
Copy link
Copy Markdown
Collaborator

Changes look good to me. This will go in after #26

@climbfuji
Copy link
Copy Markdown
Collaborator Author

@pjpegion @lisa-bengtsson for your information, I updated the PRs with the latest changes from "develop" for this repository, fv3atm and ufs-weather-model. I ran the regression tests against the existing baseline, fv3_ccpp_stochy passes, fv3_ccpp_ca has different results. This is because of commenting out the if (kstep== test around the count4 initialization in cellular_automata_global and cellular_automata_sgs. If I make those changes manually in the current develop version of the files and create a new baseline, then this PR gives the same answer (even in PROD mode!).

I will keep updating and testing these three PRs until it is our time to commit.

@lisa-bengtsson
Copy link
Copy Markdown
Collaborator

@climbfuji Thank you Dom, this is great!

@pjpegion
Copy link
Copy Markdown
Collaborator

pjpegion commented Aug 5, 2020 via email

@climbfuji
Copy link
Copy Markdown
Collaborator Author

climbfuji commented Aug 5, 2020 via email

@lisa-bengtsson
Copy link
Copy Markdown
Collaborator

lisa-bengtsson commented Aug 5, 2020 via email

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Hi Dom, Could you tell me the git command for me to download your version from git so I can check the CA pattern output. I am sure it is OK given your results reproduce, but I just want to make sure. Thanks! Lisa

git clone -b stochastic_physics_independent_of_fv3atm --recursive https://github.com/climbfuji/ufs-weather-model

Please make sure to use compile_cmake.sh.

@lisa-bengtsson
Copy link
Copy Markdown
Collaborator

lisa-bengtsson commented Aug 5, 2020 via email

@climbfuji
Copy link
Copy Markdown
Collaborator Author

@pjpegion @lisa-bengtsson we are ready for merging this. Can you please review/approve and merge, if ok? Thanks.

Copy link
Copy Markdown
Collaborator

@pjpegion pjpegion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good

@lisa-bengtsson
Copy link
Copy Markdown
Collaborator

I don't think I am assigned as a reviewer, but changes look good.

@pjpegion pjpegion requested a review from lisa-bengtsson August 6, 2020 14:53
@pjpegion
Copy link
Copy Markdown
Collaborator

pjpegion commented Aug 6, 2020

@lisa-bengtsson I just added you as a reviewer, but no need to complete the review. I will do the merge.

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.

Uninitialized values in cellular_automata_global.F90

3 participants