Skip to content

8.2.2-2.10 Fix for variable density snow accumulation with RUC LSM #104

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

Merged

Conversation

tanyasmirnova
Copy link
Collaborator

@tanyasmirnova tanyasmirnova commented Mar 3, 2025

The title above should be a 1 line short summary of the pull request (i.e. what the project the PR represents is intended to do).

Enter a description of this PR. This should include why this PR was created, and what it does.

In the LSM driver frpcpn = false. If this parameter is false, frozen precipitation
in RUC and Noah LSMs is computed using temperature threshold and ignoring the
information from the microphysics scheme.
A new parameter frpcpn_ruc is introduced for use with RUC LSM, and it is set
to true. This change will use the microphysics information correctly
and will fix the problem with the run-total accumulation of snow depth.

Testing and relations to other Pull Requests should be added as subsequent comments.

See the below examples for more information.
MPAS-Dev/MPAS#930
MPAS-Dev/MPAS#931

Information on running mandatory regression tests on Jet can be found here and the results pasted below.

Regression test is ran against version 8.2.2-2.8. The results differ only in the hrrrv5 suite as expected.
The compare file is in /mnt/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/utils/compare_run_testcases_v8.2.2-2.10-intdebug

regression test case results
PASTE compare_run_testcases AND/OR compare_create_testcases TEXT HERE

     version_to_compare = v8.2.2-2.10
   gsl_version_baseline = v8.2.2-2.8
  ncar_version_baseline = v8.2.2
         test_directory = /lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/
 gsl_baseline_directory = /lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/
ncar_baseline_directory = /lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/
           compile_flag = -intdebug
         test_repo_name = gsl

######################################################################
# compare to previous GSL CONUS mesoscale_reference baselines A1GSL
######################################################################

  === history.2023-03-10_15.00.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.00.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.00.00.nc" are identical.

  === history.2023-03-10_15.12.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.12.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.12.00.nc" are identical.

  === history.2023-03-10_16.00.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_16.00.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_16.00.00.nc" are identical.

#############################################################################
# compare to previous GSL CONUS mesoscale_reference_noahmp baselines E1GSL
#############################################################################

  === history.2023-03-10_15.00.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.mesoscale_reference_noahmp.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.00.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.mesoscale_reference_noahmp.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.00.00.nc" are identical.

  === history.2023-03-10_15.12.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.mesoscale_reference_noahmp.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.12.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.mesoscale_reference_noahmp.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.12.00.nc" are identical.

  === history.2023-03-10_16.00.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.mesoscale_reference_noahmp.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_16.00.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.mesoscale_reference_noahmp.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_16.00.00.nc" are identical.

######################################################################
# compare to previous GSL CONUS hrrrv5 GFS baselines C5GSL
######################################################################

  === history.2023-03-10_15.00.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.hrrrv5.gsl.gsl.conus.120km.gfs.2023031015/history.2023-03-10_15.00.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.hrrrv5.gsl.gsl.conus.120km.gfs.2023031015/history.2023-03-10_15.00.00.nc" are identical.

  === history.2023-03-10_15.12.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.hrrrv5.gsl.gsl.conus.120km.gfs.2023031015/history.2023-03-10_15.12.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.hrrrv5.gsl.gsl.conus.120km.gfs.2023031015/history.2023-03-10_15.12.00.nc" are identical.

  === history.2023-03-10_16.00.00.nc comparison
Variable               Group  Count          Sum      AbsSum          Min         Max       Range         Mean      StdDev
qv                     /      48377 -0.000162481  0.00543679 -8.08625e-05 6.58268e-05 0.000146689 -3.35864e-09 1.07107e-06
qc                     /       2182  4.78392e-06  0.00256239 -6.45166e-05 5.24175e-05 0.000116934  2.19245e-09 3.56118e-06
qr                     /       3484  1.89293e-05 5.07445e-05 -1.76101e-06 7.19283e-06 8.95384e-06   5.4332e-09 1.66351e-07
qi                     /       3389  1.56443e-06 6.22884e-06 -4.05035e-07 7.02876e-07 1.10791e-06  4.61619e-10 1.92827e-08
qs                     /       4084  -2.5025e-05 3.04561e-05   -3.547e-06 2.62735e-07 3.80974e-06 -6.12756e-09 1.07931e-07
qg                     /        543  0.000136975 0.000314148 -5.15461e-05  3.3492e-05 8.50381e-05  2.52256e-07 3.68755e-06
ni                     /       3388        11921     22522.9     -1314.33     3309.19     4623.52       3.5186     98.6515
nr                     /       3484      8377.07     13027.2     -286.149     2426.41     2712.56      2.40444     62.1844
ng                     /        544     -5931.39      7355.6     -2326.16     204.304     2530.46     -10.9033     123.336
nc                     /       2186 -4.46389e+08 2.05211e+09 -2.43981e+08 9.06332e+07 3.34614e+08      -204204 7.60811e+06
nifa                   /      41065      2904.64      858805     -41323.8     16750.9     58074.6    0.0707328     345.859
nwfa                   /      45803  6.27276e+08 2.34553e+10   -3.818e+08 5.46405e+08 9.28205e+08      13695.1 6.78204e+06
volg                   /        545  2.63531e-07 5.89933e-07 -9.33516e-08 4.78781e-08  1.4123e-07  4.83543e-10 6.61221e-09
u                      /     177291     0.719533     89.9405    -0.241385    0.245052    0.486438  4.05849e-06  0.00427119
w                      /      72457   0.00687615    0.817522 -0.000650498   0.0005889   0.0012394  9.48997e-08  3.3371e-05
pressure               /      37861     -172.189     3007.67     -29.5234     39.8828     69.4062  -0.00454792    0.633097
surface_pressure       /        670     -57.0547      122.82     -24.5938     1.78125      26.375   -0.0851563     1.29894
rho                    /      42906   0.00604998    0.194245 -0.000943542 0.000788689  0.00173223  1.41005e-07 2.60657e-05
theta                  /      39884     -1.50171     52.3935     -0.16275    0.321411    0.484161 -3.76519e-05  0.00644342
relhum                 /      51685      2.53553     360.825      -4.1969     3.51923     7.71613  4.90574e-05   0.0502393
divergence             /      64141 -1.48523e-07 0.000466277  -1.5677e-06 1.46919e-06 3.03689e-06 -2.31558e-12 3.90437e-08
vorticity              /     118087 -1.91537e-07  0.00117558  -4.8787e-06 4.78466e-06 9.66336e-06   -1.622e-12 9.68722e-08
ke                     /      63598      67.9491      374.19     -2.40077     2.77056     5.17133   0.00106842   0.0447026
uReconstructZonal      /      62510     -1.81077      26.243    -0.193231     0.21908    0.412311 -2.89677e-05  0.00350262
uReconstructMeridional /      63647     -5.98231     23.6838    -0.196688    0.228213    0.424901  -9.3992e-05  0.00342412
ertel_pv               /      63804  -0.00713314      27.425    -0.185335    0.113433    0.298767 -1.11798e-07  0.00286651
u_pv                   /       1072    0.0130869     0.15447  -0.00323582   0.0104103   0.0136461   1.2208e-05 0.000461397
v_pv                   /       1095  -0.00685532    0.130075   -0.0033555   0.0033536   0.0067091 -6.26057e-06 0.000278071
theta_pv               /        873    0.0227661    0.180481  -0.00311279  0.00808716      0.0112   2.6078e-05 0.000529404
vort_pv                /       1095  8.57983e-08  8.8021e-07 -3.09956e-08 7.91624e-08 1.10158e-07  7.83546e-11 3.53214e-09
depv_dt_lw             /      65431 -0.000806736   0.0212707 -0.000261309 0.000130715 0.000392025 -1.23296e-08 2.82879e-06
depv_dt_sw             /      65117 -7.80878e-06  0.00642969 -2.09197e-05 2.00514e-05 4.09711e-05 -1.19919e-10 5.62679e-07
depv_dt_bl             /      55104 -0.000303799    0.018167 -0.000166943 0.000145982 0.000312924  -5.5132e-09 3.35986e-06
depv_dt_mix            /      68474 -1.57201e-06 0.000356184 -1.42375e-06 1.57475e-06  2.9985e-06 -2.29578e-11 3.09865e-08
dtheta_dt_mp           /       7491 -6.59095e-05  0.00890422 -0.000113254  0.00016933 0.000282584 -8.79849e-09 5.81175e-06
depv_dt_mp             /      29597  0.000429923  0.00578971 -5.94985e-05 0.000151299 0.000210798  1.45259e-08  1.8751e-06
depv_dt_diab           /      68874 -0.000689997   0.0338325 -0.000196096 0.000168436 0.000364533 -1.00183e-08 3.61377e-06
depv_dt_fric           /      69966 -0.000236253  0.00348942 -3.04352e-05 2.59541e-05 5.63893e-05 -3.37669e-09 4.73075e-07
depv_dt_diab_pv        /       1152 -1.52934e-06 3.26363e-05  -3.6443e-06 8.58638e-07 4.50294e-06 -1.32755e-09 1.46077e-07
depv_dt_fric_pv        /       1212 -5.56585e-08 1.15462e-06 -7.28178e-08 2.79397e-08 1.00757e-07 -4.59228e-11 3.22246e-09
rainnc                 /        238   0.00212455    0.012093  -0.00132456  0.00405064   0.0053752  8.92669e-06 0.000302338
precipw                /        815   -0.0223057    0.174819    -0.010253  0.00377655   0.0140295  -2.7369e-05 0.000681506
kpbl                   /          3           -3           3           -1          -1           0           -1           0
hpbl                   /        940     -111.303     305.461     -33.1138     11.2975     44.4113    -0.118407     1.55997
hfx                    /        989     -105.097     1115.59     -34.7247     38.9647     73.6894    -0.106266     3.73172
qfx                    /        980 -1.21977e-05 0.000111059 -3.92902e-06 6.00664e-06 9.93566e-06 -1.24467e-08 4.39271e-07
cd                     /        917   -0.0266966   0.0317649  -0.00250319 0.000269141  0.00277233  -2.9113e-05 0.000238102
cda                    /        927   -0.0187127   0.0234681  -0.00171707 0.000232594  0.00194966 -2.01863e-05 0.000165231
ck                     /        950  -0.00725018  0.00936773  -0.00143642 0.000150532  0.00158695 -7.63177e-06 7.62006e-05
cka                    /        952  -0.00525459  0.00753865 -0.000892595 0.000170433  0.00106303 -5.51953e-06 5.49303e-05
lh                     /        978     -28.9426     282.642     -9.82254     15.0166     24.8391   -0.0295936     1.10338
u10                    /       1037    -0.311422     1.18896     -0.19331    0.123506    0.316815  -0.00030031  0.00849869
v10                    /       1030     -1.73996     2.01945    -0.236232   0.0243254    0.260558  -0.00168928   0.0139993
q2                     /        893 -0.000101016 0.000841008  -4.0153e-05 4.67142e-05 8.68673e-05 -1.13119e-07 3.56667e-06
t2m                    /        779    -0.796875     7.57874    -0.278564    0.184631    0.463196  -0.00102295   0.0280547
th2m                   /        778    -0.805817     7.66837    -0.278992    0.186646    0.465637  -0.00103575   0.0283325
gsw                    /        944      212.262     5907.99     -99.0999     142.879     241.979     0.224854      17.569
glw                    /        875       92.931     1570.62      -30.753     27.3208     58.0739     0.106207     4.11275
skintemp               /        565     -1.36713     34.5205    -0.950745    0.986053      1.9368  -0.00241969    0.145748
snow                   /        184    -0.678707     2.20553    -0.132143    0.109058    0.241201  -0.00368863   0.0289947
snowh                  /        202  -0.00435895   0.0153108 -0.000855751 0.000738874  0.00159463 -2.15789e-05 0.000178978
canwat                 /         64  9.27911e-05 0.000105037 -3.70439e-06 4.75496e-05  5.1254e-05  1.44986e-06 7.04517e-06
sh2o                   /       1476   -0.0191798    0.137445   -0.0088284   0.0340485   0.0428769 -1.29944e-05 0.000999244
smois                  /       1772    0.0163968   0.0495544  -0.00118327  0.00200886  0.00319213  9.25327e-06 0.000130949
tslb                   /       1706     -4.13696     58.5126    -0.950745    0.986053      1.9368  -0.00242495   0.0998911
soilt1                 /         91    -0.326752    0.525116    -0.133514    0.019043    0.152557  -0.00359068   0.0175326
rhosnf                 /         36     -36680.4     39680.4     -1121.88        1500     2621.88      -1018.9     432.101
snowfallac             /         36 -0.000611872 0.000611881 -6.22617e-05 4.22432e-09 6.22659e-05 -1.69965e-05  1.9413e-05
acrunoff               /        183   -0.0134241    0.053041   -0.0262979   0.0103057   0.0366036  -7.3356e-05  0.00211564
grdflx                 /        566       90.852     1700.94     -55.8474     31.9997     87.8472     0.160516     7.22958
sfc_albedo             /        132     0.263839    0.316033  -0.00928521    0.105609    0.114894   0.00199878   0.0103375
cldfrac_bl             /       5183     0.810958      8.5751    -0.241669    0.327298    0.568967  0.000156465   0.0108704
snowc                  /        192      1.44573     1.51739   -0.0192057    0.305653    0.324859   0.00752986   0.0309468
graupelnc              /          8  1.45415e-05 1.45422e-05 -3.84262e-10 1.45119e-05 1.45123e-05  1.81768e-06 5.12923e-06

######################################################################
# compare to previous GSL CONUS hrrrv5 RAP winter baselines C7GSL
######################################################################

  === history.2024-02-02_18.00.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.hrrrv5.gsl.gsl.conus.120km.rap.2024020218/history.2024-02-02_18.00.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.hrrrv5.gsl.gsl.conus.120km.rap.2024020218/history.2024-02-02_18.00.00.nc" are identical.

  === history.2024-02-02_18.12.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.hrrrv5.gsl.gsl.conus.120km.rap.2024020218/history.2024-02-02_18.12.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.hrrrv5.gsl.gsl.conus.120km.rap.2024020218/history.2024-02-02_18.12.00.nc" are identical.

  === history.2024-02-02_19.00.00.nc comparison
Variable               Group  Count          Sum      AbsSum          Min         Max       Range         Mean      StdDev
qv                     /      54579  0.000770836   0.0226638 -0.000130273 0.000148536 0.000278809  1.41233e-08 2.65972e-06
qc                     /       1216  0.000262491  0.00409119 -7.97365e-05 0.000185669 0.000265406  2.15865e-07  1.0469e-05
qr                     /       5092 -0.000902356  0.00131511 -4.17355e-05 2.74498e-06 4.44804e-05 -1.77211e-07 1.95303e-06
qi                     /       5057 -3.10806e-07 1.67402e-05 -3.48007e-07 3.18428e-07 6.66435e-07 -6.14605e-11 1.50535e-08
qs                     /       9176 -0.000144146 0.000838488 -4.84384e-05 1.17483e-05 6.01868e-05  -1.5709e-08 7.55836e-07
qg                     /       2371 -3.25749e-05 6.77604e-05 -4.56547e-06 1.54763e-06  6.1131e-06 -1.37389e-08 1.62546e-07
ni                     /       5057     -52244.6       82858     -49663.2     3032.88     52696.1     -10.3311     707.727
nr                     /       5092     -82525.4      135703     -3433.27     391.806     3825.07     -16.2069      173.63
ng                     /       2372     -1270.83     4712.73     -1091.92     865.134     1957.06    -0.535764     29.3055
nc                     /       1216  1.59773e+08 1.32654e+09 -3.88475e+07  7.8724e+07 1.17571e+08       131392 4.83746e+06
nifa                   /      44826      20058.9  7.9454e+06     -80341.8      120703      201044     0.447483      1701.6
nwfa                   /      51771 -2.45619e+09 7.78587e+10 -5.40526e+08 6.29405e+08 1.16993e+09     -47443.3 1.13922e+07
volg                   /       2371 -3.67102e-08 1.13509e-07 -6.20968e-09 5.65741e-09 1.18671e-08  -1.5483e-11 2.83922e-10
u                      /     179518      6.63081     371.893     -4.18267     5.49549     9.67816  3.69367e-05   0.0350493
w                      /      72419    -0.116145     2.94311  -0.00926547    0.011595   0.0208605  -1.6038e-06 0.000138324
pressure               /      50884     -240.957     8325.37     -62.6172     72.6406     135.258  -0.00473541     1.05378
surface_pressure       /        875      41.0469     383.859     -9.36719     22.7188     32.0859    0.0469107     1.43593
rho                    /      53661    0.0413397    0.442172 -0.000818491  0.00146532  0.00228381  7.70387e-07 3.44183e-05
theta                  /      50228     -12.0674     136.588    -0.416595    0.215881    0.632477 -0.000240251   0.0100912
relhum                 /      56729      101.801     1075.78     -7.78329     4.07711     11.8604   0.00179451    0.109183
divergence             /      64877  2.73294e-07  0.00195207 -2.51953e-05  2.4624e-05 4.98193e-05   4.2125e-12 3.27269e-07
vorticity              /     121599  2.27677e-07  0.00555626 -0.000118719 0.000117204 0.000235923  1.87236e-12  8.6655e-07
ke                     /      64763     -40.0042     1297.64     -19.9283     34.4208     54.3491 -0.000617702    0.232711
uReconstructZonal      /      64432     -4.32351     121.446     -3.33452     4.58588      7.9204  -6.7102e-05   0.0327434
uReconstructMeridional /      64815      4.40617     91.4478     -2.31397     2.99303     5.30701  6.79807e-05   0.0185561
ertel_pv               /      66550      6.15223     72.5101    -0.382416    0.565405    0.947821  9.24452e-05  0.00714615
u_pv                   /       1112   -0.0258999    0.460025   -0.0197887  0.00952148   0.0293102 -2.32913e-05  0.00107832
v_pv                   /       1114    0.0152901    0.441607  -0.00986052  0.00494444    0.014805  1.37254e-05 0.000821987
theta_pv               /        973    0.0276489    0.363953  -0.00643921   0.0152283   0.0216675  2.84162e-05  0.00101812
vort_pv                /       1111  -2.7244e-07 2.12394e-06 -6.20203e-08 6.28606e-08 1.24881e-07  -2.4522e-10 4.99751e-09
depv_dt_lw             /      67930  0.000782414   0.0397808 -0.000187604 0.000163159 0.000350763  1.15179e-08 3.54066e-06
depv_dt_sw             /      67866   0.00010788   0.0112667  -3.8037e-05  3.4211e-05 7.22479e-05   1.5896e-09 7.86496e-07
depv_dt_bl             /      58667  5.09192e-05   0.0487159 -0.000705773  0.00147569  0.00218146  8.67935e-10 9.64488e-06
depv_dt_mix            /      70419  3.60598e-06 0.000730605 -2.88119e-06 2.47813e-06 5.35931e-06  5.12074e-11 5.41012e-08
dtheta_dt_mp           /      13308     0.002855   0.0251846 -0.000220023 0.000269953 0.000489977  2.14533e-07 8.89106e-06
depv_dt_mp             /      35835  0.000531875    0.017506 -0.000236877 0.000515513  0.00075239  1.48423e-08 5.20279e-06
depv_dt_diab           /      70977    0.0014767   0.0759115 -0.000650993   0.0015706   0.0022216  2.08053e-08 9.63526e-06
depv_dt_fric           /      72205 -0.000128701   0.0236363 -0.000547585  0.00080695  0.00135453 -1.78244e-09 6.79386e-06
depv_dt_diab_pv        /       1173  3.24267e-06 3.75604e-05  -1.1204e-06 1.24381e-06 2.36421e-06  2.76442e-09 1.06377e-07
depv_dt_fric_pv        /       1226 -1.78446e-05 5.45888e-05 -8.51156e-06 6.94336e-06 1.54549e-05 -1.45551e-08 4.09084e-07
rainnc                 /        541     0.037802    0.244254   -0.0114758    0.061996   0.0734718  6.98743e-05  0.00292895
precipw                /        939    0.0415945    0.632524   -0.0164165   0.0298414    0.046258  4.42966e-05  0.00202297
kpbl                   /         15           -1          15           -1           1           2   -0.0666667      1.0328
hpbl                   /       1035     -174.188     1856.97     -89.3246      101.48     190.805    -0.168298     6.51384
hfx                    /       1102     -267.874      2358.4     -45.7901     40.2204     86.0105     -0.24308     5.31444
qfx                    /       1100  1.36669e-05 0.000347042 -6.21063e-06 1.89776e-05 2.51882e-05  1.24244e-08 1.15418e-06
cd                     /       1057   -0.0108593   0.0743253  -0.00639678  0.00451587   0.0109127 -1.02737e-05 0.000386522
cda                    /       1053   -0.0110311   0.0599121  -0.00395188  0.00400217  0.00795406 -1.04759e-05 0.000290631
ck                     /       1080  -0.00403655   0.0234907  -0.00206809 0.000921199  0.00298929 -3.73755e-06  0.00010274
cka                    /       1079  -0.00484555   0.0219323  -0.00135534 0.000936803  0.00229214 -4.49078e-06 8.86554e-05
lh                     /       1099       102.74      919.74     -15.5219     57.8803     73.4022    0.0934848     3.42843
u10                    /       1112     -2.54955     4.64473     -0.23726   0.0460032    0.283263  -0.00229276   0.0152772
v10                    /       1115   -0.0231847     4.17757    -0.199365    0.152161    0.351526 -2.07935e-05   0.0139059
q2                     /       1064  0.000787564  0.00383716 -9.21334e-05 0.000308695 0.000400828  7.40191e-07 1.47201e-05
t2m                    /        967     -4.77783     23.5271    -0.642487     0.57428     1.21677  -0.00494088   0.0602969
th2m                   /        971     -5.05057     24.4961    -0.682404    0.604034     1.28644  -0.00520141   0.0632901
gsw                    /       1013     -643.597     10624.4     -121.978     119.949     241.927    -0.635338     19.8443
glw                    /       1000      190.295     2930.55     -29.9106     36.2769     66.1875     0.190295     5.58978
skintemp               /        717     -10.5669     78.3231      -1.2496    0.949432     2.19904   -0.0147376    0.203556
snow                   /        155      10.8647     13.9275    -0.150719     1.29256     1.44328    0.0700951     0.17914
snowh                  /        158    0.0747734   0.0959565  -0.00107104  0.00836414  0.00943518  0.000473249  0.00125336
canwat                 /        283    0.0165292   0.0286491  -0.00085932  0.00318721  0.00404653  5.84071e-05 0.000339793
sh2o                   /       2941    -0.186261     1.15398    -0.061774   0.0499271    0.111701 -6.33324e-05  0.00285567
smois                  /       3257     0.405109     1.02496   -0.0291624   0.0816219    0.110784  0.000124381  0.00295172
tslb                   /       3136     -44.5392       162.8      -1.4017    0.949432     2.35114   -0.0142025    0.131679
soilt1                 /        204     -1107.09     1134.77     -23.1027     3.81815     26.9208     -5.42691     5.71786
rhosnf                 /        282       217862      318273     -1122.08        1500     2622.08      772.561     931.304
snowfallac             /        284    0.0611398   0.0697229  -0.00094808  0.00751327  0.00846135  0.000215281 0.000884279
acrunoff               /        394      5.63405     6.18158   -0.0780807     3.88759     3.96567    0.0142996    0.201391
grdflx                 /        705      515.776     3864.24     -48.0981     95.4987     143.597     0.731598     10.7994
sfc_albedo             /        187      3.99045     4.02819  -0.00563392    0.600255    0.605889    0.0213393   0.0838694
cldfrac_bl             /       6954      1.96698     26.0008    -0.351027    0.259372    0.610399  0.000282857   0.0173731
snowc                  /        240      2.36498     2.88373   -0.0603251    0.287982    0.348307   0.00985408   0.0360801
snownc                 /        149    0.0197341   0.0751285   -0.0124774  0.00754333   0.0200207  0.000132443  0.00153281
graupelnc              /        120  -0.00538768   0.0115386  -0.00242814 0.000723986  0.00315212 -4.48973e-05  0.00030268

######################################################################
# compare to previous GSL CONUS hrrrv5 RAP winter baselines C8GSL
######################################################################

  === history.2024-08-15_18.00.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.hrrrv5.gsl.gsl.conus.120km.rap.2024081518/history.2024-08-15_18.00.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.hrrrv5.gsl.gsl.conus.120km.rap.2024081518/history.2024-08-15_18.00.00.nc" are identical.

  === history.2024-08-15_18.12.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.hrrrv5.gsl.gsl.conus.120km.rap.2024081518/history.2024-08-15_18.12.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/gsl-v8.2.2-2.8-intdebug.hrrrv5.gsl.gsl.conus.120km.rap.2024081518/history.2024-08-15_18.12.00.nc" are identical.

  === history.2024-08-15_19.00.00.nc comparison
Variable               Group  Count          Sum      AbsSum          Min         Max       Range         Mean      StdDev
qv                     /      55041 -0.000635176   0.0253203 -0.000171516 0.000247518 0.000419034   -1.154e-08 3.59098e-06
qc                     /        931   0.00123159  0.00366049  -8.4581e-05  0.00024185 0.000326431  1.32287e-06 1.40576e-05
qr                     /       4157 -0.000303088 0.000929275 -2.66345e-05 2.07149e-05 4.73494e-05 -7.29102e-08 1.54589e-06
qi                     /       1623  3.24111e-08 2.34645e-06 -9.40267e-08 5.80866e-08 1.52113e-07  1.99699e-11  5.3184e-09
qs                     /       3607  1.52255e-05 0.000116645 -1.10167e-05 7.11372e-06 1.81304e-05   4.2211e-09 2.57551e-07
qg                     /        534  1.14733e-06 2.44367e-06 -2.17799e-07 7.38124e-07 9.55923e-07  2.14856e-09 4.27185e-08
ni                     /       1623      593.614     3721.94      -624.74     1012.22     1636.96     0.365751     30.5571
nr                     /       4158     -56541.7       95534     -2639.64      1117.5     3757.14     -13.5983     154.348
ng                     /        534      604.205     724.198     -15.7144     240.336     256.051      1.13147     13.3247
nc                     /        930 -1.82858e+08 2.22846e+09 -1.03295e+08 1.05048e+08 2.08343e+08      -196622 9.91016e+06
nifa                   /      49019      12710.4      604441     -11490.2        7210     18700.2     0.259296     112.245
nwfa                   /      53052   -4.559e+08 2.85163e+10 -1.70758e+08 1.72908e+08 3.43666e+08     -8593.45 4.12672e+06
volg                   /        534  5.45602e-09 9.04657e-09 -1.10403e-09 3.33064e-09 4.43467e-09  1.02173e-11  1.7164e-10
u                      /     179624     -2.50185     133.704    -0.140743    0.232287     0.37303 -1.39283e-05  0.00304559
w                      /      72422     0.161549      2.4997  -0.00254578  0.00214852   0.0046943  2.23066e-06 0.000107599
pressure               /      50738      346.972     6003.52     -44.3203     51.9141     96.2344   0.00683851    0.884308
surface_pressure       /        873      43.9531     230.375      -4.1875     25.0078     29.1953    0.0503472     1.04117
rho                    /      53488  -0.00865381    0.302033 -0.000697613 0.000730157  0.00142777  -1.6179e-07 2.49842e-05
theta                  /      49610      4.34473     101.443    -0.253357    0.208771    0.462128  8.75776e-05   0.0077885
relhum                 /      56600     -20.1947     584.894     -1.44215      4.5281     5.97025 -0.000356797   0.0539868
divergence             /      64950  3.47886e-08 0.000835591 -1.46264e-06 1.29772e-06 2.76037e-06  5.35621e-13 3.82507e-08
vorticity              /     121237  2.20324e-09  0.00120608 -4.26647e-06 4.45478e-06 8.72125e-06   1.8173e-14 6.39424e-08
ke                     /      64896     -7.46793     313.736     -2.15223     1.84363     3.99586 -0.000115075   0.0260836
uReconstructZonal      /      64773    -0.418983     30.8813    -0.244812    0.112548     0.35736 -6.46848e-06  0.00207778
uReconstructMeridional /      64889     0.408953       34.67    -0.118618    0.121091    0.239709  6.30234e-06  0.00245257
ertel_pv               /      67344     -1.86419      38.576    -0.173699    0.116097    0.289797 -2.76816e-05  0.00313821
u_pv                   /       1111    0.0181547    0.307101  -0.00355148  0.00449371   0.0080452  1.63409e-05 0.000551164
v_pv                   /       1115   0.00260376    0.295242  -0.00306463  0.00638485  0.00944948  2.33521e-06 0.000522661
theta_pv               /        953   -0.0293274    0.322479  -0.00997925  0.00680542   0.0167847 -3.07738e-05 0.000828397
vort_pv                /       1119 -1.61818e-08 1.32747e-06 -1.72295e-08 4.04589e-08 5.76883e-08  -1.4461e-11 2.86758e-09
depv_dt_lw             /      66899  -0.00062943   0.0302559 -0.000305231   0.0001659 0.000471131 -9.40866e-09 3.59499e-06
uReconstructZonal      /      64773    -0.418983     30.8813    -0.244812    0.112548     0.35736 -6.46848e-06  0.00207778
uReconstructMeridional /      64889     0.408953       34.67    -0.118618    0.121091    0.239709  6.30234e-06  0.00245257
ertel_pv               /      67344     -1.86419      38.576    -0.173699    0.116097    0.289797 -2.76816e-05  0.00313821
u_pv                   /       1111    0.0181547    0.307101  -0.00355148  0.00449371   0.0080452  1.63409e-05 0.000551164
v_pv                   /       1115   0.00260376    0.295242  -0.00306463  0.00638485  0.00944948  2.33521e-06 0.000522661
theta_pv               /        953   -0.0293274    0.322479  -0.00997925  0.00680542   0.0167847 -3.07738e-05 0.000828397
vort_pv                /       1119 -1.61818e-08 1.32747e-06 -1.72295e-08 4.04589e-08 5.76883e-08  -1.4461e-11 2.86758e-09
depv_dt_lw             /      66899  -0.00062943   0.0302559 -0.000305231   0.0001659 0.000471131 -9.40866e-09 3.59499e-06
depv_dt_sw             /      67143   0.00010601   0.0134573 -4.92987e-05 5.24962e-05 0.000101795  1.57887e-09 1.06831e-06
depv_dt_bl             /      58526  -0.00105138     0.02594 -0.000316443 0.000157802 0.000474245 -1.79643e-08 3.83068e-06
depv_dt_mix            /      70664 -1.14229e-06 0.000472756 -1.04576e-06 1.79616e-06 2.84192e-06 -1.61651e-11 3.18743e-08
dtheta_dt_mp           /      11357  0.000900438   0.0160149 -0.000198831 0.000227653 0.000426483  7.92849e-08    7.89e-06
depv_dt_mp             /      38565 -0.000226352  0.00895402 -9.82957e-05 0.000167621 0.000265917 -5.86937e-09 2.34467e-06
depv_dt_diab           /      70814  -0.00180229    0.050158 -0.000315594 0.000159546  0.00047514  -2.5451e-08 4.27615e-06
depv_dt_fric           /      72084  0.000122203  0.00294735  -7.6013e-06 1.12693e-05 1.88706e-05  1.69529e-09 2.32943e-07
depv_dt_diab_pv        /       1166  6.79417e-06 3.91552e-05 -1.31163e-06 6.25913e-06 7.57075e-06   5.8269e-09 2.12029e-07
depv_dt_fric_pv        /       1224 -3.42518e-08 3.79864e-06 -3.26228e-07 1.71007e-07 4.97235e-07 -2.79835e-11  1.5637e-08
rainnc                 /        369    -0.101305     0.13697   -0.0560293  0.00324017   0.0592695  -0.00027454  0.00324999
precipw                /        953   -0.0300951    0.619797   -0.0277576   0.0154572   0.0432148 -3.15793e-05  0.00188846
kpbl                   /          3            1           3           -1           1           2     0.333333      1.1547
hpbl                   /        995      41.4521     779.384     -24.2743     22.5182     46.7925    0.0416604     2.62924
hfx                    /       1078      29.4958     2766.47     -54.1263     68.1737       122.3    0.0273616     7.51487
qfx                    /       1075  5.45657e-05 0.000552997  -1.2583e-05 1.38977e-05 2.64807e-05  5.07588e-08 1.56544e-06
cd                     /       1036  0.000498891   0.0111815 -0.000295775 0.000363318 0.000659093  4.81555e-07 3.87099e-05
cda                    /       1040   0.00036322   0.0100901  -0.00025594 0.000304094 0.000560034   3.4925e-07 3.44111e-05
ck                     /       1070  0.000124505  0.00423306 -9.40119e-05  0.00014636 0.000240372   1.1636e-07 1.39168e-05
cka                    /       1075  0.000108519  0.00446967 -0.000105306 0.000147133 0.000252439  1.00948e-07 1.45567e-05
lh                     /       1075      136.414     1382.49     -31.4576     34.7443     66.2019     0.126897     3.91359
u10                    /       1099   0.00354457    0.392936   -0.0201812  0.00982666   0.0300078  3.22527e-06  0.00116455
v10                    /       1092   -0.0843901    0.552033   -0.0224872   0.0217533   0.0442405 -7.72803e-05  0.00186354
q2                     /       1005  0.000337866  0.00335197 -7.88085e-05 8.86694e-05 0.000167478  3.36185e-07 1.00246e-05
t2m                    /        922     0.791992     14.9985    -0.258362    0.322052    0.580414  0.000858994   0.0421139
th2m                   /        928      0.78244     15.2842    -0.263702    0.337921    0.601624  0.000843147    0.042882
gsw                    /        977      80.7005     14746.1       -164.5     171.005     335.505    0.0826003     33.5482
glw                    /        965     -77.4608     1819.03     -23.1697     26.8643      50.034   -0.0802702     4.07274
skintemp               /        679     0.223206     78.2255     -1.57059     1.94495     3.51553  0.000328727    0.264435
canwat                 /         25   -0.0156954   0.0233586  -0.00587671   0.0016867  0.00756341 -0.000627816  0.00170798
sh2o                   /       1968  -0.00349379   0.0124878  -0.00182705 0.000204355   0.0020314  -1.7753e-06 5.06645e-05
smois                  /       2215  -0.00355702   0.0154498  -0.00182705 0.000285834  0.00211288 -1.60588e-06 4.93815e-05
tslb                   /       2293      2.46713     134.186     -1.57059     1.94495     3.51553   0.00107594    0.165849
soilt1                 /         19     -498.826     498.826     -35.8004     -18.227     17.5735      -26.254     5.69139
rhosnf                 /         19        28500       28500         1500        1500 3.05176e-05         1500           0
snowfallac             /         19  4.64498e-07 4.64498e-07  1.46124e-10 2.26107e-07 2.25961e-07  2.44473e-08 5.38322e-08
acrunoff               /        120 -2.55693e-05 4.72017e-05 -1.57979e-05 3.32529e-06 1.91232e-05 -2.13077e-07 2.07741e-06
grdflx                 /        644     -24.2818      3820.1     -71.3302     86.8472     158.177   -0.0377047     12.5186
sfc_albedo             /          5   8.9407e-08  8.9407e-08  1.49012e-08 2.98023e-08 1.49012e-08  1.78814e-08   6.664e-09
cldfrac_bl             /       4276      1.28843     16.6994    -0.601007    0.384926    0.985933  0.000301317   0.0214215
graupelnc              /          1  2.89901e-10 2.89901e-10  2.89901e-10 2.89901e-10           0  2.89901e-10           0

########################################################################
# compare to previous NCAR CONUS mesoscale_reference baselines A1NCAR
########################################################################

  === history.2023-03-10_15.00.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.00.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/ncar-v8.2.2-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.00.00.nc" are identical.

  === history.2023-03-10_15.12.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.12.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/ncar-v8.2.2-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_15.12.00.nc" are identical.

  === history.2023-03-10_16.00.00.nc comparison
Files "/lfs5/BMC/wrfruc/smirnova/MPAS_regression_tests/mpas_testcase/run_case/gsl-v8.2.2-2.10-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_16.00.00.nc" and "/lfs5/BMC/wrfruc/Michael.Barlage/mpas/baselines_mpas/run_case/ncar-v8.2.2-intdebug.mesoscale_reference.ncar.ncar.conus.120km.gfs.2023031015/history.2023-03-10_16.00.00.nc" are identical.

     

tanyasmirnova and others added 22 commits February 4, 2025 19:57
1. Fix the bug that crashes MPAS when frac_seaice=false. Use
   'if(config_frac_seaice) then' around arrays with *_sea that are
   allocated only when config_frac_seaice=true. This bug is reported to
   Michael Duda.
2. Add flqc and flhc computation for fractional ice. These variables are
   used in RUC ice module and are needed for reproducibility over sea ice.
1. Do not deallocate flqc_sea and flhc_sea - they are used later in
   the seaice driver.
xice=1. It will reduce computations over solid sea ice (Arctic).
CPM is not RUC-specific variable, moved out of sf_ruc IF.
In the LSM driver frpcpn = false. If it is false, frozen precipitation
in RUC and Noah LSMs is computed using temperature threshold and ignoring the
information from the microphysics scheme.
A new parameter frpcpn_ruc is introduced for use with RUC LSM, and it is set
to true. This change will use the microphysics information correctly
and will fix the problem with the run-total accumulation of snow depth.
@tanyasmirnova
Copy link
Collaborator Author

I will redo this PR after PR#97 is merged. This PR should have a change only src/core_atmosphere/physics/mpas_atmphys_driver_lsm.F.

@tanyasmirnova tanyasmirnova marked this pull request as ready for review March 14, 2025 18:10
@tanyasmirnova tanyasmirnova changed the title Fix for variable density snow accumulation with RUC LSM 8.2.2-2.10 Fix for variable density snow accumulation with RUC LSM Mar 18, 2025
@jderrico-noaa jderrico-noaa requested a review from barlage March 20, 2025 19:11
Copy link
Collaborator

@clark-evans clark-evans left a comment

Choose a reason for hiding this comment

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

We need to identify why the answers do not change at 12 minutes but do by 60 minutes into the hrrrv5 simulations. @joeolson42 suggests it could be that the accumulation differences are too small to trigger the surface layer driver that would change the results. If we're comfortable with that, then I'm OK merging. Otherwise, further investigation is warranted.

@tanyasmirnova
Copy link
Collaborator Author

We need to identify why the answers do not change at 12 minutes but do by 60 minutes into the hrrrv5 simulations. @joeolson42 suggests it could be that the accumulation differences are too small to trigger the surface layer driver that would change the results. If we're comfortable with that, then I'm OK merging. Otherwise, further investigation is warranted.

I have explained it in the Chat last week. The time step in our reg. tests is 12 min. At initial time precipitation is zero, therefore there is no difference after one time step.

@clark-evans
Copy link
Collaborator

We need to identify why the answers do not change at 12 minutes but do by 60 minutes into the hrrrv5 simulations. @joeolson42 suggests it could be that the accumulation differences are too small to trigger the surface layer driver that would change the results. If we're comfortable with that, then I'm OK merging. Otherwise, further investigation is warranted.

I have explained it in the Chat last week. The time step in our reg. tests is 12 min. At initial time precipitation is zero, therefore there is no difference after one time step.

Thank you for clarifying, @tanyasmirnova - I did not fully understand that from the chat last time.

The model integrates forward for 12 min. Everything should be the same except for the resulting snow fields. Please correct me if I'm wrong, but I naively presume those snow fields are updated after physics tendencies are calculated, such that any differences in the resulting snow fields will only begin to impact the model solution after this first time step?

@tanyasmirnova
Copy link
Collaborator Author

Snow accumulation depth is calculated in the RUC LSM. During the first time step there is no precipitation (liquid or frozen) when RUC LSM is called, it will be computed later in the microphysics. Thus, the change in this PR will affect the results starting only from time step #2. This is why we see identical results between the 12-min outputs.

@barlage
Copy link
Collaborator

barlage commented Mar 25, 2025

@tanyasmirnova you should merge top of develop into this branch since there are merge conflicts because of the version differences in the three files noted below.

@clark-evans clark-evans self-requested a review March 25, 2025 21:56
@jderrico-noaa jderrico-noaa reopened this Mar 26, 2025
@jderrico-noaa jderrico-noaa merged commit 201de47 into ufs-community:gsl/develop Mar 26, 2025
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