Skip to content

Code update for radiation_clouds.f and GFS_rrtmg_pre.F90#858

Closed
Qingfu-Liu wants to merge 3 commits into
NCAR:mainfrom
Qingfu-Liu:feature/codeupdate
Closed

Code update for radiation_clouds.f and GFS_rrtmg_pre.F90#858
Qingfu-Liu wants to merge 3 commits into
NCAR:mainfrom
Qingfu-Liu:feature/codeupdate

Conversation

@Qingfu-Liu
Copy link
Copy Markdown
Contributor

Clear up the code of the cloud properties for radiation calculation. Changes in two program:
radiation_clouds.f
GFS_rrtmg_pre.F90

@Qingfu-Liu
Copy link
Copy Markdown
Contributor Author

Regression tests not finished yet, documents also need a little more work

@dustinswales
Copy link
Copy Markdown
Member

@Qingfu-Liu
All of the changes look good to me. Thanks for doing this!
A few small comments/suggestion:
*) Can you output the sub-fields of "clouds" from radiation_clouds_prop? So instead of clouds(:,:,1:10), cld_frac, cld_lwp, etc, ...
*) It might be good time to rename the progcld() routines to something more physical? Or maybe consistent with suffixes used by the "imp_physics_" flag?
*) Remove instances of magic numbers in cloud overlap logic? Just as for the imp_physics_ flag, there are interstitials for each of the iovr_ and idcor_ flags, defined in GFS_typedefs.

@Qingfu-Liu
Copy link
Copy Markdown
Contributor Author

Qingfu-Liu commented Feb 10, 2022 via email

@Qingfu-Liu
Copy link
Copy Markdown
Contributor Author

Hello All,
Need help to proceed forward: My question is how to upload the new files to the pull request.
I have updated the code for the following files:
radiation_clouds.f
GFS_rrtmg_pre.F90
GFS_rrtmg_pre.meta
GFS_cloud_diagnostics.F90
GFS_cloud_diagnostics.meta
The files are on Hera:
/scratch1/NCEPDEV/global/Qingfu.Liu/ufs-weather-model/FV3/ccpp/physics/physics
One way I saw is to download these files to my local computer, then upload these files to the pull request. Not sure if doing this will change the FORTRAN code format. Is there other standard procedure to update the code to the pull request?
Thank you very much.
Qingfu

@SamuelTrahanNOAA
Copy link
Copy Markdown
Contributor

If you push your files to the remote feature/codeupdate branch, then it will update the pull request (PR). The PR is literally just a request to NCAR to pull your changes from your branch in your fork back to the "main" branch in NCAR's repository. Hence, updating your branch will update the pull request.

@Qingfu-Liu
Copy link
Copy Markdown
Contributor Author

Sam,
Thank you very much. I will do it.
Qingfu

@Qingfu-Liu
Copy link
Copy Markdown
Contributor Author

Qingfu-Liu commented Feb 14, 2022 via email

@SamuelTrahanNOAA
Copy link
Copy Markdown
Contributor

Wrong command. The "git remote add" will make another fork of the repository visible to your working copy. You want "git add" instead. I suggest you find a good git cheat sheet or tutorial. Gitlab has a good one:

https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html#add-and-commit-local-changes

Also, if you're using a NOAA account, you may need to log in with ssh. This is the github page explaining how. (The process is different for gitlab.)

https://docs.github.com/en/authentication/connecting-to-github-with-ssh

@Qingfu-Liu
Copy link
Copy Markdown
Contributor Author

Sam, Thank you very much. I am learning those commands.
Please do not remove this draft pull, I am practicing the command to see if I can upload my new changes to the remote repository
Qingfu

@grantfirl
Copy link
Copy Markdown
Collaborator

@Qingfu-Liu Are this pull request and #862 identical? If so, which do you want to keep?

@Qingfu-Liu
Copy link
Copy Markdown
Contributor Author

Qingfu-Liu commented Feb 15, 2022 via email

@grantfirl
Copy link
Copy Markdown
Collaborator

Closed in favor of #862

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.

4 participants