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

Update feature/nssl_micro branch to latest main #3

Merged
merged 22 commits into from
Mar 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f830d3c
save work for RUC LSM
grantfirl Oct 6, 2021
3ee0eb3
Merge branch 'main' into RUC_LSM_support
grantfirl Oct 14, 2021
ea38552
more RUC LSM support work
grantfirl Oct 19, 2021
6ac4fd7
update gabls3 case data files
Oct 19, 2021
1009219
add GABLS3 case info for RUC LSM (before tuning surface fluxes)
grantfirl Oct 22, 2021
0994509
retune GABLS3 NOAH and RUC LSM cases
Oct 22, 2021
9220b29
update *typedefs to handle lsm_cold_start in CCPP
grantfirl Oct 25, 2021
6a61f7e
set Sfcprop%zorl instead of zorlw for specified surface flux case
grantfirl Oct 28, 2021
ac5de24
add RUC LSM soil temperature/moisture to output routines; fix example…
grantfirl Oct 29, 2021
e29e258
fix a few bugs in RUC LSM initialization caught in debug mode
grantfirl Oct 30, 2021
80a1b65
retune gabls3_ruc soil moisture with proper initialization
Oct 30, 2021
5eac351
update submodule pointers
grantfirl Feb 2, 2022
d0de8f9
Merge pull request #296 from grantfirl/20220201_main_update
climbfuji Feb 2, 2022
e4e2e75
Merge branch 'main' into RUC_LSM_support
grantfirl Feb 2, 2022
d3c3ae1
retune gabls3_ruc case
Feb 2, 2022
522cfa6
update ccpp/physics submodule pointer
grantfirl Feb 9, 2022
05b88eb
update Hera setup scripts
grantfirl Feb 9, 2022
72d4315
Merge pull request #297 from grantfirl/RUC_LSM_support
grantfirl Feb 11, 2022
2708b38
Merge pull request #299 from grantfirl/fix_hera_setup
grantfirl Feb 11, 2022
ba60511
update ccpp-physics/framework submodule pointers
grantfirl Mar 11, 2022
158f28a
Merge branch 'main' into feature/nssl_micro_gjf
grantfirl Mar 11, 2022
cc08f0a
update GFS_typedefs for SPP PR (latest main)
grantfirl Mar 11, 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
2 changes: 1 addition & 1 deletion ccpp/framework
2 changes: 1 addition & 1 deletion ccpp/physics
Submodule physics updated 43 files
+28 −5 CMakeLists.txt
+4 −4 physics/GFS_PBL_generic.meta
+3 −3 physics/GFS_phys_time_vary.fv3.F90
+3 −3 physics/GFS_phys_time_vary.fv3.meta
+3 −3 physics/GFS_phys_time_vary.scm.F90
+3 −3 physics/GFS_phys_time_vary.scm.meta
+22 −1 physics/GFS_rrtmg_pre.F90
+18 −3 physics/GFS_rrtmg_pre.meta
+4 −7 physics/GFS_suite_interstitial.F90
+13 −5 physics/GFS_suite_interstitial.meta
+1 −1 physics/GFS_surface_generic.meta
+540 −77 physics/cu_gf_deep.F90
+115 −18 physics/cu_gf_driver.F90
+3 −0 physics/cu_gf_driver_post.F90
+11 −0 physics/cu_gf_driver_pre.F90
+111 −7 physics/cu_gf_sh.F90
+38 −0 physics/docs/library.bib
+35 −0 physics/docs/pdftxt/NSSLMICRO.txt
+35 −12 physics/drag_suite.F90
+15 −0 physics/drag_suite.meta
+59 −52 physics/gwdps.f
+12 −9 physics/module_MYNNPBL_wrapper.F90
+18 −3 physics/module_MYNNPBL_wrapper.meta
+7 −4 physics/module_MYNNSFC_wrapper.F90
+15 −0 physics/module_MYNNSFC_wrapper.meta
+4 −3 physics/module_bl_mynn.F90
+138 −75 physics/module_mp_nssl_2mom.F90
+5 −21 physics/module_mp_thompson.F90
+32 −32 physics/module_sf_mynn.F90
+4 −4 physics/module_sf_ruclsm.F90
+41 −37 physics/mp_nssl.F90
+7 −8 physics/mp_nssl.meta
+17 −12 physics/mp_thompson.F90
+15 −0 physics/mp_thompson.meta
+117 −0 physics/radiation_clouds.f
+28 −26 physics/radlw_main.F90
+5 −3 physics/radsw_main.F90
+18 −18 physics/sfc_drv_ruc.F90
+6 −6 physics/sfc_drv_ruc.meta
+7 −2 physics/ugwpv1_gsldrag.F90
+15 −0 physics/ugwpv1_gsldrag.meta
+6 −2 physics/unified_ugwp.F90
+15 −0 physics/unified_ugwp.meta
Binary file modified scm/data/processed_case_input/gabls3.nc
Binary file not shown.
Binary file modified scm/data/processed_case_input/gabls3_noahmp.nc
Binary file not shown.
Binary file added scm/data/processed_case_input/gabls3_ruc.nc
Binary file not shown.
54 changes: 3 additions & 51 deletions scm/etc/Hera_setup_intel.csh
Original file line number Diff line number Diff line change
Expand Up @@ -28,54 +28,6 @@ setenv CMAKE_CXX_COMPILER icpc
setenv CMAKE_Fortran_COMPILER ifort
setenv CMAKE_Platform hera.intel

echo "Loading the anaconda python distribution"
module use -a /contrib/anaconda/modulefiles
module load anaconda/anaconda3-4.4.0

#install f90nml for the local user

#check to see if f90nml is installed locally
echo "Checking if f90nml python module is installed"
python -c "import f90nml"

if ( $? != 0 ) then
echo "Not found; installing f90nml"
pip install -e git://github.com/marshallward/f90nml.git@v0.19\#egg=f90nml --user
else
echo "f90nml is installed"
endif

#install shapely for the local user

#check to see if shapely is installed locally
echo "Checking if shapely python module is installed"
python -c "import shapely"

if ( $? != 0 ) then
echo "Not found; installing shapely"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov shapely --user
else
echo "shapely is installed"
endif

#check to see if configobj is installed locally
echo "Checking if configobj python module is installed"
python -c "import configobj"

if ( $? != 0 ) then
echo "Not found; installing configobj"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov configobj --user
else
echo "configobj is installed"
endif

#check to see if netCDF4 is installed locally
echo "Checking if netCDF4 python module is installed"
python -c "import netCDF4"

if ( $? != 0 ) then
echo "Not found; installing netCDF4"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov netCDF4 --user
else
echo "netCDF4 is installed"
endif
echo "Loading the SCM python environment"
source /scratch1/BMC/gmtb/SCM_anaconda/etc/profile.d/conda.csh
conda activate pyccpp
54 changes: 3 additions & 51 deletions scm/etc/Hera_setup_intel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,54 +25,6 @@ export CMAKE_CXX_COMPILER=icpc
export CMAKE_Fortran_COMPILER=ifort
export CMAKE_Platform=hera.intel

echo "Loading the anaconda python distribution"
module use -a /contrib/anaconda/modulefiles
module load anaconda/anaconda3-4.4.0

#install f90nml for the local user

#check to see if f90nml is installed locally
echo "Checking if f90nml python module is installed"
python -c "import f90nml"

if [ $? -ne 0 ]; then
echo "Not found; installing f90nml"
pip install -e git://github.com/marshallward/f90nml.git@v0.19#egg=f90nml --user
else
echo "f90nml is installed"
fi

#install shapely for the local user

#check to see if shapely is installed locally
echo "Checking if shapely python module is installed"
python -c "import shapely"

if [ $? -ne 0 ]; then
echo "Not found; installing shapely"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov shapely --user
else
echo "shapely is installed"
fi

#check to see if configobj is installed locally
echo "Checking if configobj python module is installed"
python -c "import configobj"

if [ $? -ne 0 ]; then
echo "Not found; installing configobj"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov configobj --user
else
echo "configobj is installed"
fi

#check to see if netCDF4 is installed locally
echo "Checking if netCDF4 python module is installed"
python -c "import netCDF4"

if [ $? -ne 0 ]; then
echo "Not found; installing netCDF4"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov netCDF4 --user
else
echo "netCDF4 is installed"
fi
echo "Loading the SCM python environment"
. "/scratch1/BMC/gmtb/SCM_anaconda/etc/profile.d/conda.sh"
conda activate pyccpp
29 changes: 29 additions & 0 deletions scm/etc/case_config/gabls3_ruc.nml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
$case_config
model_name = 'FV3',
n_columns = 1,
case_name = 'gabls3_ruc',
dt = 600.0,
time_scheme = 1,
runtime = 86400,
n_itt_out = 1,
n_itt_diag = 6,
n_levels = 64,
output_file = 'output',
case_data_dir = '../data/processed_case_input',
vert_coord_data_dir = '../data/vert_coord_data',
thermo_forcing_type = 2,
mom_forcing_type = 2,
relax_time = 7200.0,
sfc_flux_spec = .false.,
lsm_ics = .true.,
do_spinup = .true.,
spinup_timesteps = 12,
sfc_roughness_length_cm = 15.0,
sfc_type = 1,
reference_profile_choice = 2,
year = 2006,
month = 7,
day = 1,
hour = 12,
column_area = 1.45E8,
$end
2 changes: 1 addition & 1 deletion scm/etc/scm_qsub_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
USER = os.getenv('USER')
STRINGS = [USER, 'ucar.edu']
MY_EMAIL = '@'.join(STRINGS)
PROC = Popen('qsub', shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)
PROC = Popen('qsub -V', shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)

### Begin User-editable section ###
JOB_NAME = "test_job"
Expand Down
18 changes: 13 additions & 5 deletions scm/etc/scripts/GABLS3_LSM.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ begin
tg3@units = "K"
tg3@long_name = "deep soil temperature"

zorlw = 15.0 ;(cm) from case specs
zorl = 15.0 ;(cm) from case specs
zorl@long_name = "composite surface roughness length"
zorl@units = "cm"

zorlw = zorl ;(cm) from case specs
zorlw@long_name = "surface roughness length over ocean"
zorlw@units = "cm"

Expand Down Expand Up @@ -482,7 +486,7 @@ begin

;derive friction velocity from known values
wind1 = sqrt(u_specified(1)^2 + v_specified(1)^2)
uustar = von_K*wind1/log(u_h(1)/(0.01*zorlw))
uustar = von_K*wind1/log(u_h(1)/(0.01*zorl))
uustar@units = "m s-1"
uustar@long_name = "friction velocity"

Expand Down Expand Up @@ -533,19 +537,19 @@ begin
tsfcl@long_name = "surface skin temperature over land"
tsfcl@units = "K"

zorll = zorlw ;(cm) from case specs
zorll = zorl ;(cm) from case specs
zorll@long_name = "surface roughness length over land"
zorll@units = "cm"

zorli = zorlw ;(cm) from case specs
zorli = zorl ;(cm) from case specs
zorli@long_name = "surface roughness length over ice"
zorli@units = "cm"

stc = (/ 292.55, 289.9, 285.35, 283.15 /)
stc@units = "K"
stc@long_name = "initial profile of soil temperature"

smc = (/ 0.197, 0.197, 0.197, 0.197 /)
smc = (/ 0.203, 0.203, 0.203, 0.203 /)
smc@units = "m3 m-3"
smc@long_name = "initial profile of soil moisture"

Expand Down Expand Up @@ -636,6 +640,10 @@ begin
filevarattdef(g1,"tg3",tg3)
g1->tg3 = tg3

filevardef(g1,"zorl",typeof(zorl),"ncl_scalar")
filevarattdef(g1,"zorl",zorl)
g1->zorl = zorl

filevardef(g1,"zorlw",typeof(zorlw),"ncl_scalar")
filevarattdef(g1,"zorlw",zorlw)
g1->zorlw = zorlw
Expand Down
16 changes: 12 additions & 4 deletions scm/etc/scripts/GABLS3_LSM_NoahMP.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ begin
tg3@units = "K"
tg3@long_name = "deep soil temperature"

zorlw = 15.0 ;(cm) from case specs
zorl = 15.0 ;(cm) from case specs
zorl@long_name = "composite surface roughness length"
zorl@units = "cm"

zorlw = zorl ;(cm) from case specs
zorlw@long_name = "surface roughness length over ocean"
zorlw@units = "cm"

Expand Down Expand Up @@ -482,7 +486,7 @@ begin

;derive friction velocity from known values
wind1 = sqrt(u_specified(1)^2 + v_specified(1)^2)
uustar = von_K*wind1/log(u_h(1)/(0.01*zorlw))
uustar = von_K*wind1/log(u_h(1)/(0.01*zorl))
uustar@units = "m s-1"
uustar@long_name = "friction velocity"

Expand Down Expand Up @@ -533,11 +537,11 @@ begin
tsfcl@long_name = "surface skin temperature over land"
tsfcl@units = "K"

zorll = zorlw ;(cm) from case specs
zorll = zorl ;(cm) from case specs
zorll@long_name = "surface roughness length over land"
zorll@units = "cm"

zorli = zorlw ;(cm) from case specs
zorli = zorl ;(cm) from case specs
zorli@long_name = "surface roughness length over ice"
zorli@units = "cm"

Expand Down Expand Up @@ -636,6 +640,10 @@ begin
filevarattdef(g1,"tg3",tg3)
g1->tg3 = tg3

filevardef(g1,"zorl",typeof(zorl),"ncl_scalar")
filevarattdef(g1,"zorl",zorl)
g1->zorl = zorl

filevardef(g1,"zorlw",typeof(zorlw),"ncl_scalar")
filevarattdef(g1,"zorlw",zorlw)
g1->zorlw = zorlw
Expand Down
Loading