Skip to content
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
257 commits
Select commit Hold shift + click to select a range
315489b
Fixed typo in meta file
MicroTed Apr 6, 2021
2b95bde
Fixed typo and missing declaration
MicroTed Apr 6, 2021
4b35ce9
- Fixed setting of itimestep on first model step. This was preventin…
MicroTed Apr 8, 2021
1cfe2c8
Turned on zeroing out of hail for low number concentration. Some spu…
MicroTed Apr 9, 2021
c27901c
Added extra printout info for large fall speeds.
MicroTed Apr 12, 2021
21a2875
Call calcnfromq on every time step, which helps keep boundaries a bi…
MicroTed Apr 14, 2021
06fc773
Removed re_rain from interface (not used and not planning to use th…
MicroTed Apr 19, 2021
8ff7b02
Updated calcnfromq to use qxmin_init for higher mass thresholds. Lo…
MicroTed Apr 19, 2021
6d484f7
Changed itimestep to a purely local variable (i.e., not saved)
MicroTed Apr 29, 2021
635e028
Fixed bug in setting array values of "rain" (noticed by E. Aligo)
MicroTed May 9, 2021
9d0fcbd
- Changed from two imp_physics_nssl flags to a single one with secon…
MicroTed Oct 1, 2021
e18f790
Fixed missing setting of save arrays for NSSL.
MicroTed Oct 1, 2021
b565f5f
Update to newer base code plus some cleanup of NSSL microphysics
MicroTed Oct 15, 2021
3b7b139
Made IF test on tracer indices in post_run consistent with pre_run
MicroTed Oct 15, 2021
7e41947
Switched 'vertical_dimension' to 'vertical_layer_dimension'
MicroTed Oct 16, 2021
7e38a90
Added convert_dry_rho flag
MicroTed Oct 16, 2021
b17240a
Removed some commented code; pass in physical constants to init rou…
MicroTed Oct 19, 2021
53658e5
Added dependencies to RUC physics
MicroTed Oct 19, 2021
da10201
Cleaned up unused code and variables.
MicroTed Nov 10, 2021
961d9b6
Merge branch 'feature/nsslmicro' of https://github.com/MicroTed/ccpp-…
MicroTed Nov 10, 2021
4b42e19
- Adds support for NSSL full 2-moment microphysics with droplets, rai…
MicroTed Apr 1, 2021
c8bbd69
- Fixes subroutine end statements (causes error on some older compil…
MicroTed Apr 1, 2021
a5f236f
Add missing 'nthl' to call interface
MicroTed Apr 1, 2021
e38406a
- Pass effrr into NSSL driver
MicroTed Apr 2, 2021
841eab2
Turned off a print statement.
MicroTed Apr 2, 2021
72e7693
Restore the incorrectly removed flags.
MicroTed Apr 2, 2021
d9f2ced
Turn off setting rain radius for now.
MicroTed Apr 2, 2021
2b92bcb
Fixed typo in meta file
MicroTed Apr 6, 2021
8157607
Fixed typo and missing declaration
MicroTed Apr 6, 2021
a8f3948
- Fixed setting of itimestep on first model step. This was preventin…
MicroTed Apr 8, 2021
5944560
Turned on zeroing out of hail for low number concentration. Some spu…
MicroTed Apr 9, 2021
3ec235b
Added extra printout info for large fall speeds.
MicroTed Apr 12, 2021
74dd53c
Call calcnfromq on every time step, which helps keep boundaries a bi…
MicroTed Apr 14, 2021
4ccadc0
Removed re_rain from interface (not used and not planning to use th…
MicroTed Apr 19, 2021
b4d0379
Updated calcnfromq to use qxmin_init for higher mass thresholds. Lo…
MicroTed Apr 19, 2021
eae593d
Changed itimestep to a purely local variable (i.e., not saved)
MicroTed Apr 29, 2021
48983e8
Fixed bug in setting array values of "rain" (noticed by E. Aligo)
MicroTed May 9, 2021
115aeb0
- Changed from two imp_physics_nssl flags to a single one with secon…
MicroTed Oct 1, 2021
5b95964
Fixed missing setting of save arrays for NSSL.
MicroTed Oct 1, 2021
6920e48
Update to newer base code plus some cleanup of NSSL microphysics
MicroTed Oct 15, 2021
9d77cb1
Made IF test on tracer indices in post_run consistent with pre_run
MicroTed Oct 15, 2021
3e28640
Switched 'vertical_dimension' to 'vertical_layer_dimension'
MicroTed Oct 16, 2021
a3a6c1b
Added convert_dry_rho flag
MicroTed Oct 16, 2021
b2a5a94
Removed some commented code; pass in physical constants to init rou…
MicroTed Oct 19, 2021
383cb3c
Cleaned up unused code and variables.
MicroTed Nov 10, 2021
938d5f2
Added dependencies to RUC physics
MicroTed Oct 19, 2021
906248e
Removed a bunch of "optional = F" from meta files.
MicroTed Dec 8, 2021
c500790
Merge remote-tracking branch 'tedsrepo/feature/nsslmicro_rebase2' int…
MicroTed Dec 9, 2021
0aeccf6
Merge commit 'aae0d5f281f4f9f41fa8287ac326823a9910207f' into feature/…
MicroTed Jan 15, 2022
b88049a
Update progcld6 call for NSSL microphysics
MicroTed Jan 15, 2022
91b8bae
Merge branch 'feature/nsslmicro_rebase2_merge23dec' into feature/nssl…
MicroTed Jan 15, 2022
68f97b1
Potential bug fix for RRTMGP GP flux coupling.
dustinswales Jan 24, 2022
2808afc
Merge remote-tracking branch 'origin/main' into feature/nsslmicro
MicroTed Jan 27, 2022
6f43cc4
Update errflg
MicroTed Jan 27, 2022
86592d1
Remove extra blank lines and unneeded check for imp_physics=18
MicroTed Jan 27, 2022
4cbea92
set up option for thermal roughness
Jan 30, 2022
22de66b
change czil
Jan 31, 2022
be6335a
standard name bugfixes for mp_nssl.meta and module_MYNNPBL_wrapper.meta
grantfirl Jan 31, 2022
59885ea
change dimensions of flag_convective_tracer_transport_interstitial to…
grantfirl Jan 31, 2022
512ece1
Output canopy resistance and leaf area index from Noah LSM driver.
rmontuoro Feb 1, 2022
f1d49d1
Tweaks to snow aggregation (slight reduction to help reduce excess r…
MicroTed Feb 1, 2022
94db3c0
Merge branch 'feature/nsslmicro' into feature/nsslmicro_gjf
grantfirl Feb 1, 2022
a51c4a2
Merge pull request #1 from grantfirl/feature/nsslmicro_gjf
MicroTed Feb 1, 2022
0271835
Merge branch 'main' into feature/aqm
rmontuoro Feb 6, 2022
1cd31f9
Reduced dtpmax to 60 to maintain stability based on new tests
MicroTed Feb 11, 2022
2c02bc5
Reduce potential sedimentation computation with interval_sedi_vt=2
MicroTed Feb 13, 2022
99c19ae
Merge branch 'main' into feature/aqm
rmontuoro Feb 14, 2022
0ea0fd0
Code update for radiation_clouds.f and GFS_rrtmg_pre.F90 GFS_cloud_di…
Qingfu-Liu Feb 14, 2022
779c432
update some flag units and remove GFS_suite_interstitial dependency o…
grantfirl Feb 14, 2022
b104184
convert argument arrays in mp_nssl.F90 to assumed-shape
grantfirl Feb 14, 2022
a2a7f8b
Merge pull request #2 from grantfirl/feature/nsslmicro_gjf
MicroTed Feb 15, 2022
10fa17e
canopy height dependant czil
Feb 16, 2022
5da3050
Merge branch 'main' into feature/nsslmicro
MicroTed Feb 17, 2022
242dcc9
updated the radiation code based on review's suggestions
Qingfu-Liu Feb 22, 2022
c6faeb1
updated radiation_cloud_overlap.F90 based on Mike's comment
Qingfu-Liu Feb 22, 2022
a9349ed
Added internal documentation (for doxygen).
MicroTed Feb 24, 2022
580df44
Merge branch 'main' into feature/nsslmicro
MicroTed Feb 24, 2022
6e6acb9
Initial commit
dustinswales Feb 25, 2022
f46396f
Add explict treatment of convective cloud to RRTMGP.
dustinswales Feb 25, 2022
dcbad0a
Some cleanup and bug fixes from previous commit. working now with Tho…
dustinswales Feb 25, 2022
7fee2d6
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into gpsw…
dustinswales Feb 28, 2022
45f3e83
Merge branch 'feature/codeupdate2' of https://github.com/Qingfu-Liu/c…
dustinswales Mar 2, 2022
44a2bd9
Add logic to reduce optimization for multiple files, independent of t…
climbfuji Mar 3, 2022
4d808f8
No optimization for GFS_typedefs.F90
climbfuji Mar 3, 2022
dc5ed83
Merge branch 'feature/reduce_opt_gfs_typedefs' into feature/nsslmicro
MicroTed Mar 3, 2022
5830a82
RRTMGP coupling to Thompson MP (Sundqvist 1989)
dustinswales Mar 3, 2022
6467693
update scm_sfc_flux_spec scheme to set some variables needed by non-s…
grantfirl Mar 3, 2022
bcbea32
Housekeeping
dustinswales Mar 3, 2022
5bb96c4
minor formatting
grantfirl Mar 4, 2022
979324a
Merge pull request #761 from MicroTed/feature/nsslmicro
grantfirl Mar 4, 2022
dec5bbd
Initial implementation of explicit coupling of convective (GF/SAMF) a…
dustinswales Mar 4, 2022
63fb052
Added new cloud-optics for MYNN-EDMF clouds
dustinswales Mar 4, 2022
fb7003b
Added MYNN-EDMF optical properties to RRTMGP RTE
dustinswales Mar 5, 2022
b90d4e2
add canopy heat storage and gvf impact on thermal conductivity
HelinWei-NOAA Mar 7, 2022
6327749
Removed RRTMG cloud-optics option in RRTMGP.
dustinswales Mar 7, 2022
ae7ac42
add sfcdif3 as a separate subroutine
barlage Mar 7, 2022
c50f50a
change fveg to shdfac in sfcdif3 vege call
barlage Mar 7, 2022
53c0c7a
move trs options to sfcdif3
barlage Mar 7, 2022
f093f77
fix missing czil1 in vege_flux
barlage Mar 7, 2022
4a4d159
Bug fix
dustinswales Mar 7, 2022
386244d
Implement support for coupled air quality systems (AQM/CMAQ)
rmontuoro Mar 8, 2022
c8b65f5
Merge branch 'main' into feature/aqm
rmontuoro Mar 8, 2022
13a1d14
add some clean up to energy
barlage Mar 8, 2022
ebb4fa1
add some groundwater mods from ncar code
barlage Mar 8, 2022
b6e0573
Merge pull request #17 from barlage/sfcdif3_subroutine
HelinWei-NOAA Mar 8, 2022
41cf4ec
gvf impact on thermal conductivity limited to the first soil layer
HelinWei-NOAA Mar 8, 2022
b43c030
Merge pull request #18 from barlage/sfcdif3_subroutine
HelinWei-NOAA Mar 8, 2022
c1d813e
correct the reference height
HelinWei-NOAA Mar 8, 2022
be960f0
Added switches for sgs clouds in GP.
dustinswales Mar 8, 2022
2ae3f48
Merge branch 'NCAR:main' into lsm_upgrades_for_p8c
HelinWei-NOAA Mar 9, 2022
ac173e2
Replaced cld_mynn_ naming convention with cld_pbl_
dustinswales Mar 9, 2022
11b50ca
to read new hig-res ice climatology data
HelinWei-NOAA Mar 9, 2022
475b1be
Fixed inconsistency between G/GP in Thompson MP.
dustinswales Mar 9, 2022
182b2c6
Housekeeping, combine loops.
dustinswales Mar 9, 2022
646c65b
Some more cleanup of cloud-fraction...
dustinswales Mar 9, 2022
4ed3982
replace fveg by lai/laimax to be used for dependent
HelinWei-NOAA Mar 10, 2022
8e1b316
simplify the code with internal function maxval
HelinWei-NOAA Mar 10, 2022
3206fa9
Changes from code review.
dustinswales Mar 10, 2022
ba5b1f8
Bug from previous commit
dustinswales Mar 10, 2022
70507a0
to avoid exception floating point
HelinWei-NOAA Mar 10, 2022
d33598b
revert the df1 change due to some negative impact on surface temperature
HelinWei-NOAA Mar 11, 2022
71ab24d
resolve the code conflicts
Qingfu-Liu Mar 11, 2022
8e21c40
Merge branch 'feature/codeupdate2' of https://github.com/Qingfu-Liu/c…
dustinswales Mar 11, 2022
d89d738
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into enha…
dustinswales Mar 11, 2022
d3ff8f6
SPP bugfix from Jeff Beck
grantfirl Mar 11, 2022
a31d08b
Added capability for cdmbgwd(1) to scale GSL blocking drag
mdtoyNOAA Mar 11, 2022
defde63
Merge pull request #17 from grantfirl/enhanced_GP2cld_coupling_tight_gjf
dustinswales Mar 11, 2022
2eda795
Merge branch 'main' into sfc_flux_spec_update
grantfirl Mar 11, 2022
44ca4f0
add Chunxi Zhang to CODEOWNERS
grantfirl Mar 11, 2022
3095d71
correct the condition to avoid a divide by zero exception
HelinWei-NOAA Mar 14, 2022
27ea849
further refinement of the impact of vegetation on zvfun
HelinWei-NOAA Mar 15, 2022
c34da79
Properly set the total number of species to be diffused
rmontuoro Mar 15, 2022
54a57ba
P8C updates: the TKE-EDMF PBL scheme and the saSAS cumulus scheme
ChunxiZhang-NOAA Mar 15, 2022
a6e960d
Revert change from previous commits (sampling of different cloud types).
dustinswales Mar 15, 2022
c722905
replace shdfac by fveg for zvfun
HelinWei-NOAA Mar 16, 2022
eede491
Merge pull request #870 from grantfirl/sfc_flux_spec_update
climbfuji Mar 17, 2022
66b0ebf
Merge remote-tracking branch 'upstream/main' into feature/p8c_pbl_cp
ChunxiZhang-NOAA Mar 17, 2022
f321acb
Merge remote-tracking branch 'rmontuoro/feature/aqm' into feature/aqm
BrianCurtis-NOAA Mar 18, 2022
4284846
modify the eddy diffusivity for heat at the top of the canopy
wzzheng90 Mar 18, 2022
4aa59df
Noah MP driver and meta changes for MYNN
RongqianYang-NOAA Mar 18, 2022
c58e849
Noah MP glacier changes for MYNN
RongqianYang-NOAA Mar 18, 2022
56142b2
Noah MP non-glacier changes for MYNN
RongqianYang-NOAA Mar 18, 2022
69be5f3
Merge branch 'main' into bugfix/thompson-tracer-index
rmontuoro Mar 18, 2022
f3af80f
tuning cd/lm parameter
wzzheng90 Mar 20, 2022
96f58e0
tuning cd/lm parameter
wzzheng90 Mar 20, 2022
a4cffec
Import GFS_interstitial_type from CCPP_typedefs instead of GFS_typedefs
climbfuji Mar 20, 2022
7fa7223
revert back to shdfac in gvfun calculation due to occasional model crash
HelinWei-NOAA Mar 20, 2022
99c241b
Merge branch 'NCAR:main' into lsm_upgrades_for_p8c
HelinWei-NOAA Mar 20, 2022
779b323
modify a table of cwp parameter
wzzheng90 Mar 21, 2022
09e4f95
modify a table of cwp parameter
wzzheng90 Mar 21, 2022
0b7879c
modify a table of cwp parameter
wzzheng90 Mar 21, 2022
109dcdf
modify a table of cwp parameter
wzzheng90 Mar 21, 2022
f2d46db
Changed arguments to implied shape.
dustinswales Mar 21, 2022
c8d6545
Merge pull request #21 from wzzheng90/soil_veg_atm_coupling
HelinWei-NOAA Mar 21, 2022
152048e
Merge branch 'gpswflx_issue' into enhanced_GP2cld_coupling_tight
dustinswales Mar 21, 2022
ec19fbe
Pulled in SW coupling fix for RRTMGP. Share SW_rad_pre between RRTMG …
dustinswales Mar 21, 2022
4a9b26c
Merge pull request #883 from rmontuoro/bugfix/thompson-tracer-index
climbfuji Mar 22, 2022
acc802a
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into enha…
dustinswales Mar 22, 2022
8e6580e
Syntax error
dustinswales Mar 22, 2022
6c1e071
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into HEAD
BrianCurtis-NOAA Mar 23, 2022
726f4a6
Driver update, opt_trs=4 over vegetation, and z0hover bare soil etc.
RongqianYang-NOAA Mar 23, 2022
81a326a
put a upper/lower limit on cwpc
HelinWei-NOAA Mar 24, 2022
02a4c05
Merge branch 'lsm_upgrades_MYNN_for_p8c' into lsm_upgrades_for_p8c
RongqianYang-NOAA Mar 24, 2022
7a16e21
Revert "Lsm upgrades mynn for p8c"
HelinWei-NOAA Mar 24, 2022
2150803
Merge pull request #22 from HelinWei-NOAA/revert-20-lsm_upgrades_MYNN…
HelinWei-NOAA Mar 24, 2022
bf92390
Merge branch 'NCAR:main' into lsm_upgrades_for_p8c
HelinWei-NOAA Mar 25, 2022
9b783f4
Bug fix for COARE3.5 (not used by default) and move some parameters t…
joeolson42 Mar 25, 2022
8f3c084
fix the missing value of fv in vege_flux
HelinWei-NOAA Mar 26, 2022
d1a6ab1
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into feat…
climbfuji Mar 27, 2022
85f21a4
Merge pull request #873 from HelinWei-NOAA/lsm_upgrades_for_p8c
grantfirl Mar 29, 2022
e8dc723
The second updates for the saSAS cumulus scheme to improve the TC int…
ChunxiZhang-NOAA Mar 29, 2022
34d0bbe
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into main…
mdtoyNOAA Mar 29, 2022
a8e0f0c
Merge pull request #879 from mdtoyNOAA/main_new_cdmbgwd
grantfirl Mar 30, 2022
3ee7678
Merge remote-tracking branch 'upstream/main' into feature/p8c_pbl_cp
ChunxiZhang-NOAA Mar 30, 2022
7e0522f
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into HEAD
BrianCurtis-NOAA Mar 31, 2022
313d78f
Fix to original min_rand variable.
JeffBeck-NOAA Apr 2, 2022
0e9ecad
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into feat…
climbfuji Apr 4, 2022
6d4acb1
Merge pull request #882 from ChunxiZhang-NOAA/feature/p8c_pbl_cp
grantfirl Apr 4, 2022
514b4ed
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into HEAD
BrianCurtis-NOAA Apr 4, 2022
b1326ba
Merge pull request #889 from BrianCurtis-NOAA/feature/aqm
grantfirl Apr 4, 2022
4d9e2b3
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into enha…
dustinswales Apr 4, 2022
2617af6
Cleanup suggestions from PR.
dustinswales Apr 4, 2022
0148905
Revert "Cleanup suggestions from PR."
dustinswales Apr 5, 2022
2cf6a38
Cleanup
dustinswales Apr 5, 2022
6342e52
Pass SPP namelist entries into Thompson MP
JeffBeck-NOAA Apr 5, 2022
16993b9
Add intent to SPP variables in meta file.
JeffBeck-NOAA Apr 6, 2022
084551f
Fix dimensions in the Thompson meta file
JeffBeck-NOAA Apr 6, 2022
4407989
Added bounding to temperature at layer-interface used by RRTMGP.
dustinswales Apr 6, 2022
d0a2dd8
Reorder loop
dustinswales Apr 6, 2022
a2fefa7
Fixes to application of rand_pert_max in Thompson MP.
JeffBeck-NOAA Apr 6, 2022
77aa061
Combined gp sw and lw aerosol routines. Modest speedup (~4%)
dustinswales Apr 6, 2022
044c900
Fix metadata descriptions.
JeffBeck-NOAA Apr 7, 2022
fdc9b2e
Fix last metadata entry.
JeffBeck-NOAA Apr 7, 2022
2e8f340
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into bugf…
JeffBeck-NOAA Apr 7, 2022
0ccc8ac
Merge pull request #871 from dustinswales/enhanced_GP2cld_coupling_tight
grantfirl Apr 8, 2022
0aab555
Reorder declarations.
JeffBeck-NOAA Apr 8, 2022
dc48d39
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into bugf…
JeffBeck-NOAA Apr 8, 2022
32f6725
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into feat…
climbfuji Apr 11, 2022
c275462
Also change GFS_interstitial_type import in GFS_debug.F90
climbfuji Apr 11, 2022
67068c8
enforce one file per module for CCPP scheme entry points
grantfirl Apr 8, 2022
b2737ba
Merge branch 'main' into one_scheme_to_one_file
grantfirl Apr 11, 2022
1ad4399
Merge pull request #887 from climbfuji/feature/split_gfs_typedefs
climbfuji Apr 12, 2022
f9d1f92
Merge branch 'main' into one_scheme_to_one_file
grantfirl Apr 12, 2022
32b78e4
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into bugf…
JeffBeck-NOAA Apr 12, 2022
3493525
rename files to their module names + split GFS_surface_generic
grantfirl Apr 13, 2022
b6a03c8
update filename in CMakeLists.txt
grantfirl Apr 14, 2022
5b3adf3
A bug fix in mass flux divergence computation for wet scavenging of a…
ChunxiZhang-NOAA Apr 14, 2022
e2806f0
Merge pull request #892 from JeffBeck-NOAA/bugfix/SPP
grantfirl Apr 20, 2022
4b58e2e
Merge remote-tracking branch 'upstream/main' into feature/p8c_cp
ChunxiZhang-NOAA Apr 20, 2022
121be99
Use restart flag for setting local itimestep
MicroTed Apr 20, 2022
1b8c817
address review comments by changing Doxygen inline comments
grantfirl Apr 20, 2022
ceba3dd
Fixed an inconsistency in how 'cn' is written back for output
MicroTed Apr 21, 2022
888390c
Test treating cccn as cna when invertccn=true
MicroTed Apr 21, 2022
e65360a
Turn on lccna in nssl_params
MicroTed Apr 21, 2022
1ff1f16
Try implicit loop for invertccn
MicroTed Apr 21, 2022
860245c
Merge pull request #900 from ChunxiZhang-NOAA/feature/p8c_cp
grantfirl Apr 21, 2022
b76a1ef
Merge branch 'main' into one_scheme_to_one_file
grantfirl Apr 21, 2022
7610396
Fix issue with dcp test related to CCN prediction
MicroTed Apr 22, 2022
7e35351
Merge pull request #896 from grantfirl/one_scheme_to_one_file
grantfirl Apr 22, 2022
450d8fd
Merge NCAR main
SamuelTrahanNOAA Apr 22, 2022
5eeee8d
Merge branch 'main' into nssl_restart_ccn
MicroTed Apr 22, 2022
d5c8c95
Add haiqin to CODEOWNERS for smoke code
SamuelTrahanNOAA Apr 22, 2022
1e246c9
Merge remote-tracking branch 'joe/mynn2' into HEAD
SamuelTrahanNOAA Apr 23, 2022
df54eaa
corrections to merge
SamuelTrahanNOAA Apr 23, 2022
d961916
Merge branch 'stuff' into gsl/merge-develop-to-community
SamuelTrahanNOAA Apr 23, 2022
82075f4
Update CMakeLists.txt: update authors, remove custom 'Bitforbit' buil…
climbfuji Apr 26, 2022
19eea5c
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into feat…
climbfuji Apr 26, 2022
89c0c11
Correct issues found by reviewers
SamuelTrahanNOAA Apr 27, 2022
86022b3
Rename mynnpbl to mynnedmf
SamuelTrahanNOAA Apr 27, 2022
900e2c3
Remove some empty _init and _finalize routines and update a comment i…
SamuelTrahanNOAA Apr 27, 2022
3fba412
Add \file to smoke files
SamuelTrahanNOAA Apr 28, 2022
3405ff1
Merge pull request #909 from climbfuji/feature/release_debug_only
climbfuji May 3, 2022
5c6243d
adding bug fix from jili dong and removing U* averaging
joeolson42 May 4, 2022
cf9e003
adding bug fix from jili dong and removing U* averaging
SamuelTrahanNOAA May 5, 2022
bb45b2b
adding bug fix from jili dong and removing U* averaging
SamuelTrahanNOAA May 5, 2022
c00a4f0
Merge remote-tracking branch 'community/main' into gsl/merge-develop-…
SamuelTrahanNOAA May 5, 2022
3b7423b
Remove some commented-out code.
SamuelTrahanNOAA May 6, 2022
cd41013
Turn rrtmg smoke band 10 into a model namelist variable
SamuelTrahanNOAA May 6, 2022
20cbc05
Switch arguments to implied shape
SamuelTrahanNOAA May 6, 2022
f76236f
Remove some stops and gotos
SamuelTrahanNOAA May 6, 2022
b3e0944
Merge branch 'NCAR:main' into nssl_restart_ccn
MicroTed May 9, 2022
aaca3b0
Remove some hard-coded constants and rename some meta entries
SamuelTrahanNOAA May 9, 2022
552d948
Rename some standard_names, change a unit, and remove a "use physcons"
SamuelTrahanNOAA May 9, 2022
99f32c5
Merge pull request #904 from MicroTed/nssl_restart_ccn
grantfirl May 11, 2022
90095d1
Merge remote-tracking branch 'community/main' into gsl/merge-develop-…
SamuelTrahanNOAA May 11, 2022
eb1ba70
Pass some chemistry varibles to mynn_bl_driver correctly
SamuelTrahanNOAA May 16, 2022
1a70737
Correct argument passing within mynn edmf
May 16, 2022
01e3d6b
Merge pull request #911 from SamuelTrahanNOAA/gsl/merge-develop-to-co…
grantfirl May 17, 2022
d40f5e2
Change to GSL CODEOWNERS
SamuelTrahanNOAA May 17, 2022
eccf83a
Returned the comments on soil resistance back.
tanyasmirnova May 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 33 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project(ccpp_physics

#------------------------------------------------------------------------------
set(PACKAGE "ccpp-physics")
set(AUTHORS "Grant Firl" "Dom Heinzeller" "Man Zhang" "Laurie Carson")
set(AUTHORS "Grant Firl" "Dom Heinzeller" "Man Zhang" "Mike Kavulich" "Chunxi Zhang")

#------------------------------------------------------------------------------
# Set OpenMP flags for C/C++/Fortran
Expand All @@ -20,7 +20,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Release' as none was specified.")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Bitforbit" "Release" "Coverage")
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "Coverage")
endif()

#------------------------------------------------------------------------------
Expand All @@ -42,6 +42,7 @@ else(TYPEDEFS)
include(${CMAKE_CURRENT_BINARY_DIR}/CCPP_TYPEDEFS.cmake)
message(STATUS "Got CCPP TYPEDEFS from cmakefile include file")
endif(TYPEDEFS)
list(REMOVE_DUPLICATES TYPEDEFS)

# Generate list of Fortran modules from the CCPP type
# definitions that need need to be installed
Expand All @@ -58,6 +59,7 @@ else(SCHEMES)
include(${CMAKE_CURRENT_BINARY_DIR}/CCPP_SCHEMES.cmake)
message(STATUS "Got CCPP SCHEMES from cmakefile include file")
endif(SCHEMES)
list(REMOVE_DUPLICATES SCHEMES)

# Set the sources: physics scheme caps
set(CAPS $ENV{CCPP_CAPS})
Expand All @@ -67,6 +69,7 @@ else(CAPS)
include(${CMAKE_CURRENT_BINARY_DIR}/CCPP_CAPS.cmake)
message(STATUS "Got CCPP CAPS from cmakefile include file")
endif(CAPS)
list(REMOVE_DUPLICATES CAPS)

# Schemes and caps from the CCPP code generator use full paths with symlinks
# resolved, we need to do the same here for the below logic to work
Expand Down Expand Up @@ -117,8 +120,8 @@ set(SCHEMES_OPENMP_OFF ${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/mo_
# List of files that need to be compiled with different precision
set(SCHEMES_DYNAMICS)

if(${LOCAL_CURRENT_SOURCE_DIR}/physics/gfdl_fv_sat_adj.F90 IN_LIST SCHEMES)
list(APPEND SCHEMES_DYNAMICS ${LOCAL_CURRENT_SOURCE_DIR}/physics/gfdl_fv_sat_adj.F90)
if(${LOCAL_CURRENT_SOURCE_DIR}/physics/fv_sat_adj.F90 IN_LIST SCHEMES)
list(APPEND SCHEMES_DYNAMICS ${LOCAL_CURRENT_SOURCE_DIR}/physics/fv_sat_adj.F90)
endif()

# Remove files that need to be compiled with different precision
Expand All @@ -141,18 +144,36 @@ endif()
SET_PROPERTY(SOURCE ${SCHEMES} ${CAPS}
APPEND_STRING PROPERTY COMPILE_FLAGS " ${CMAKE_Fortran_FLAGS_PHYSICS} ${OpenMP_Fortran_FLAGS}")

# Reduce optimization for module_sf_mynn.F90 (to avoid an apparent compiler bug with Intel 18 on Hera)
if(${LOCAL_CURRENT_SOURCE_DIR}/physics/module_sf_mynn.F90 IN_LIST SCHEMES AND
(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "Bitforbit") AND
${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")
SET_SOURCE_FILES_PROPERTIES(${LOCAL_CURRENT_SOURCE_DIR}/physics/module_sf_mynn.F90
APPEND_STRING PROPERTY COMPILE_FLAGS " ${CMAKE_Fortran_FLAGS_PHYSICS} ${OpenMP_Fortran_FLAGS} -O1")
# Lower optimization for certain schemes when compiling with Intel in Release mode
if(CMAKE_BUILD_TYPE STREQUAL "Release" AND ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")
# Define a list of schemes that need lower optimization with Intel in Release mode
set(SCHEME_NAMES_LOWER_OPTIMIZATION module_sf_mynn.F90)
foreach(SCHEME_NAME IN LISTS SCHEME_NAMES_LOWER_OPTIMIZATION)
set(SCHEMES_TMP ${SCHEMES})
# Need to determine the name of the scheme with its path
list(FILTER SCHEMES_TMP INCLUDE REGEX ".*${SCHEME_NAME}$")
SET_SOURCE_FILES_PROPERTIES(${SCHEMES_TMP}
APPEND_STRING PROPERTY COMPILE_FLAGS
" ${CMAKE_Fortran_FLAGS_PHYSICS} ${OpenMP_Fortran_FLAGS} -O1")
endforeach()
endif()

# No optimization for certain schemes when compiling with Intel in Release mode
if(CMAKE_BUILD_TYPE STREQUAL "Release" AND ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")
# Define a list of schemes that can't be optimized with Intel in Release mode
set(SCHEME_NAMES_NO_OPTIMIZATION GFS_typedefs.F90)
foreach(SCHEME_NAME IN LISTS SCHEME_NAMES_NO_OPTIMIZATION)
set(SCHEMES_TMP ${SCHEMES})
# Need to determine the name of the scheme with its path
list(FILTER SCHEMES_TMP INCLUDE REGEX ".*${SCHEME_NAME}$")
SET_SOURCE_FILES_PROPERTIES(${SCHEMES_TMP}
APPEND_STRING PROPERTY COMPILE_FLAGS " ${CMAKE_Fortran_FLAGS_PHYSICS} ${OpenMP_Fortran_FLAGS} -O0")
endforeach()
endif()

# Reduce optimization for mo_gas_optics_kernels.F90 (to avoid an apparent compiler bug with Intel 19+)
if(${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/kernels/mo_gas_optics_kernels.F90 IN_LIST SCHEMES_OPENMP_OFF AND
(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "Bitforbit") AND
${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")
CMAKE_BUILD_TYPE STREQUAL "Release" AND ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")
SET_SOURCE_FILES_PROPERTIES(${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/kernels/mo_gas_optics_kernels.F90
APPEND_STRING PROPERTY COMPILE_FLAGS " ${CMAKE_Fortran_FLAGS_PHYSICS} -O1")
endif()
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# These owners will be the default owners for everything in the repo.
#* @defunkt
* @SamuelTrahanNOAA @tanyasmirnova @christinaholtNOAA @joeolson42 @hannahcbarnes @mdtoyNOAA @haiqinli @zhanglikate
* @SamuelTrahanNOAA @tanyasmirnova @christinaholtNOAA @joeolson42 @hannahcbarnes @mdtoyNOAA @haiqinli @zhanglikate @middlecoff

# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
Expand Down
109 changes: 8 additions & 101 deletions physics/GFS_DCNV_generic.F90 → physics/GFS_DCNV_generic_post.F90
Original file line number Diff line number Diff line change
@@ -1,107 +1,10 @@
!> \file GFS_DCNV_generic.F90
!> \file GFS_DCNV_generic_post.F90
!! Contains code related to deep convective schemes to be used within the GFS physics suite.

module GFS_DCNV_generic_pre

contains

subroutine GFS_DCNV_generic_pre_init ()
end subroutine GFS_DCNV_generic_pre_init

subroutine GFS_DCNV_generic_pre_finalize()
end subroutine GFS_DCNV_generic_pre_finalize

!> \brief Interstitial scheme called prior to any deep convective scheme to save state variables for calculating tendencies after the deep convective scheme is executed
!! \section arg_table_GFS_DCNV_generic_pre_run Argument Table
!! \htmlinclude GFS_DCNV_generic_pre_run.html
!!
subroutine GFS_DCNV_generic_pre_run (im, levs, ldiag3d, qdiag3d, do_cnvgwd, cplchm, &
gu0, gv0, gt0, gq0, nsamftrac, ntqv, &
save_u, save_v, save_t, save_q, clw, &
ntcw,ntiw,ntclamt,ntrw,ntsw,ntrnc,ntsnc,ntgl, &
ntgnc, cscnv, satmedmf, trans_trac, ras, ntrac, &
dtidx, index_of_process_dcnv, errmsg, errflg)

use machine, only: kind_phys

implicit none

integer, intent(in) :: im, levs, nsamftrac, ntqv, index_of_process_dcnv, dtidx(:,:), &
ntcw,ntiw,ntclamt,ntrw,ntsw,ntrnc,ntsnc,ntgl,ntrac,ntgnc
logical, intent(in) :: ldiag3d, qdiag3d, do_cnvgwd, cplchm
real(kind=kind_phys), dimension(:,:), intent(in) :: gu0
real(kind=kind_phys), dimension(:,:), intent(in) :: gv0
real(kind=kind_phys), dimension(:,:), intent(in) :: gt0
real(kind=kind_phys), dimension(:,:,:), intent(inout) :: gq0
real(kind=kind_phys), dimension(:,:), intent(inout) :: save_u
real(kind=kind_phys), dimension(:,:), intent(inout) :: save_v
real(kind=kind_phys), dimension(:,:), intent(inout) :: save_t
real(kind=kind_phys), dimension(:,:,:), intent(inout) :: save_q
character(len=*), intent(out) :: errmsg
integer, intent(out) :: errflg
logical, intent(in) :: cscnv, satmedmf, trans_trac, ras
real(kind=kind_phys), parameter :: zero = 0.0d0
real(kind=kind_phys), dimension(:,:,:), intent(in) :: clw

integer :: i, k, n, tracers

! Initialize CCPP error handling variables
errmsg = ''
errflg = 0

if (ldiag3d) then
do k=1,levs
do i=1,im
save_t(i,k) = gt0(i,k)
save_u(i,k) = gu0(i,k)
save_v(i,k) = gv0(i,k)
enddo
enddo
elseif (do_cnvgwd) then
do k=1,levs
do i=1,im
save_t(i,k) = gt0(i,k)
enddo
enddo
endif

if ((ldiag3d.and.qdiag3d) .or. cplchm) then
if (cscnv .or. satmedmf .or. trans_trac .or. ras) then
tracers = 2
do n=2,ntrac
if ( n /= ntcw .and. n /= ntiw .and. n /= ntclamt .and. &
n /= ntrw .and. n /= ntsw .and. n /= ntrnc .and. &
n /= ntsnc .and. n /= ntgl .and. n /= ntgnc) then
tracers = tracers + 1
if(dtidx(100+n,index_of_process_dcnv)>0) then
save_q(:,:,n) = clw(:,:,tracers)
endif
endif
enddo
else
do n=2,ntrac
if(dtidx(100+n,index_of_process_dcnv)>0) then
save_q(:,:,n) = gq0(:,:,n)
endif
enddo
endif ! end if_ras or cfscnv or samf
save_q(:,:,ntqv) = gq0(:,:,ntqv)
endif

end subroutine GFS_DCNV_generic_pre_run

end module GFS_DCNV_generic_pre

module GFS_DCNV_generic_post

contains

subroutine GFS_DCNV_generic_post_init ()
end subroutine GFS_DCNV_generic_post_init

subroutine GFS_DCNV_generic_post_finalize ()
end subroutine GFS_DCNV_generic_post_finalize

!> \section arg_table_GFS_DCNV_generic_post_run Argument Table
!! \htmlinclude GFS_DCNV_generic_post_run.html
!!
Expand All @@ -111,7 +14,8 @@ subroutine GFS_DCNV_generic_post_run (im, levs, lssav, ldiag3d, qdiag3d, ras, &
rainc, cldwrk, upd_mf, dwn_mf, det_mf, dtend, dtidx, index_of_process_dcnv, &
index_of_temperature, index_of_x_wind, index_of_y_wind, ntqv, gq0, save_q, &
cnvw, cnvc, cnvw_phy_f3d, cnvc_phy_f3d, flag_for_dcnv_generic_tend, &
ntcw,ntiw,ntclamt,ntrw,ntsw,ntrnc,ntsnc,ntgl,ntgnc, ntrac,clw, &
ntcw,ntiw,ntclamt,ntrw,ntsw,ntrnc,ntsnc,ntgl, &
ntgnc, nthl, nthnc, nthv, ntgv, ntrac,clw, &
satmedmf, trans_trac, errmsg, errflg)


Expand Down Expand Up @@ -140,7 +44,8 @@ subroutine GFS_DCNV_generic_post_run (im, levs, lssav, ldiag3d, qdiag3d, ras, &
real(kind=kind_phys), dimension(:,:,:), intent(inout) :: dtend
integer, intent(in) :: dtidx(:,:), index_of_process_dcnv, index_of_temperature, &
index_of_x_wind, index_of_y_wind, ntqv
integer, intent(in) :: ntcw,ntiw,ntclamt,ntrw,ntsw,ntrnc,ntsnc,ntgl,ntrac,ntgnc
integer, intent(in) :: ntcw,ntiw,ntclamt,ntrw,ntsw,ntrnc,ntsnc,ntgl, &
ntgnc, nthl, nthnc, nthv, ntgv, ntrac
real(kind=kind_phys), dimension(:,:,:), intent(in) :: clw


Expand Down Expand Up @@ -205,7 +110,9 @@ subroutine GFS_DCNV_generic_post_run (im, levs, lssav, ldiag3d, qdiag3d, ras, &
do n=2,ntrac
if ( n /= ntcw .and. n /= ntiw .and. n /= ntclamt .and. &
n /= ntrw .and. n /= ntsw .and. n /= ntrnc .and. &
n /= ntsnc .and. n /= ntgl .and. n /= ntgnc) then
n /= ntsnc .and. n /= ntgl .and. n /= ntgnc .and. &
n /= nthl .and. n /= nthnc .and. n /= nthv .and. &
n /= ntgv ) then
tracers = tracers + 1
idtend = dtidx(100+n,index_of_process_dcnv)
if(idtend>0) then
Expand Down
Loading