Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Certain constants in the .F files inside the WRF/phys folder are missing in 4.6 unlike in previous versions

alwin

New member
Hello!

I'm currently trying to do parameterization on my WRF runs by editing certain constants in specific .F files inside the WRF/phys folder. The files I'm editing are:

module_sf_sfclay.F
module_cu_kfeta.F
module_ra_sw.F
module_ra_rrtm.F
module_sf_noahlsm.F
module_mp_wsm6.F
module_bl_ysu.F

This process was pretty straight-forward until I used WRF v4.6. For some reason, the files "module_mp_wsm6.F" and "module_bl_ysu.F" look totally different. For example, the "
brcr_sbro(i) = " line in "module_bl_ysu.F", which is the critical Richardson number for boundary layer of water isn't initialized in the file itself.

Any help on where I can edit the variables I need?
 
This is similar to the issue posted here. If you cloned the code from GitHub, you can go into the v4.6 WRF directory and issue
Code:
git log

That will print out the entire code modification log. I'd recommend sending the log to a generic file so that you can open the file and search. You can find the modifications to each of those files between the V4.5 and V4.6 release (assuming that's when the files drastically changed). For each commit, there is a commit ID given. For e.g,.

Code:
commit e86f1a361e37fa080a09f23592863e9c671c2beb

You can then go to the WRF github repository, add the word "commit" to the URL, and then a "/" and the commit ID, so for e.g.,

Code:
https://github.com/wrf-model/WRF/commit/e86f1a361e37f

which provides all the information about the commit, including the side-by-side comparison of files, before and after.
 
Top