[4724] | 1 | module lmdz_blowing_snow_ini |
---|
[4485] | 2 | |
---|
| 3 | implicit none |
---|
| 4 | |
---|
[4835] | 5 | real, save, protected :: RCPD, RV, RLSTT, RLVTT, RLMLT, RVTMP2, RTT,RD,RG, RPI |
---|
| 6 | real, save, protected :: coef_sub_bs, fallv_bs, zeta_bs, c_esalt_bs |
---|
| 7 | real, save, protected :: prt_bs, pbst_bs, qbst_bs, r_bs |
---|
| 8 | integer, save, protected :: iflag_saltation_bs, iflag_sedim_bs, iflag_sublim_bs |
---|
[4485] | 9 | |
---|
[4835] | 10 | !$OMP THREADPRIVATE(RCPD, RV, RLSTT, RLVTT, RLMLT, RVTMP2, RTT,RD,RG, RPI) |
---|
| 11 | !$OMP THREADPRIVATE(coef_sub_bs, fallv_bs, r_bs, zeta_bs, c_esalt_bs) |
---|
[4485] | 12 | !$OMP THREADPRIVATE(pbst_bs, prt_bs, qbst_bs) |
---|
[4835] | 13 | !$OMP THREADPRIVATE(iflag_sedim_bs, iflag_sublim_bs) |
---|
[4485] | 14 | |
---|
[4835] | 15 | real, save, protected :: tbsmelt=278.15 ! parameter to calculate melting fraction of BS sedimentation |
---|
| 16 | real, save, protected :: taumeltbs0=600.0 ! Melting time scale of blowing snow at 273.15K |
---|
| 17 | real, save, protected :: qbmin=1.E-10 ! Minimum blowing snow specific content |
---|
| 18 | !$OMP THREADPRIVATE(tbsmelt, taumeltbs0, qbmin) |
---|
[4724] | 19 | |
---|
[4835] | 20 | real, save, protected :: tau_dens0_bs=864000. ! 10 days by default, in s |
---|
| 21 | real, save, protected :: tau_densmin_bs= 21600. ! 1/4 days according to in situ obs by C. Amory during blowing snow + |
---|
| 22 | ! Marshall et al. 1999 (snow densification during rain) |
---|
| 23 | real, save, protected :: tau_eqsalt_bs= 10. ! Nemoto and Nishimura 2004 show that steady-state saltation is achieved within a time tau_eqsalt of about 10s |
---|
| 24 | real, save, protected :: rhofresh_bs = 300.0 ! fresh snow density kg/m3 |
---|
| 25 | real, save, protected :: rhohard_bs = 450.0 ! hard snow density kg/m3 |
---|
| 26 | real, save, protected :: rhoice_bs = 920.0 ! ice density kg/m3 |
---|
| 27 | real, save, protected :: rhobs=900.0 ! blowing snow density (kg/m3) following Bintanja et al. 2001 part I |
---|
| 28 | !$OMP THREADPRIVATE(rhoice_bs, rhofresh_bs, rhohard_bs, tau_dens0_bs, tau_densmin_bs, tau_eqsalt_bs, rhobs) |
---|
[4724] | 29 | |
---|
| 30 | |
---|
[4821] | 31 | contains |
---|
[4724] | 32 | |
---|
[4821] | 33 | subroutine blowing_snow_ini(RCPD_in, RLSTT_in, RLVTT_in, RLMLT_in,& |
---|
[4835] | 34 | RVTMP2_in, RTT_in,RD_in,RG_in, RV_in, RPI_in) |
---|
[4485] | 35 | |
---|
| 36 | USE ioipsl_getin_p_mod, ONLY : getin_p |
---|
| 37 | |
---|
[4835] | 38 | real, intent(in) :: RCPD_in, RLSTT_in, RLVTT_in, RLMLT_in, RPI_in |
---|
| 39 | real, intent(in) :: RVTMP2_in, RTT_in, RD_in, RG_in, RV_in |
---|
[4485] | 40 | |
---|
| 41 | |
---|
| 42 | RG=RG_in |
---|
| 43 | RD=RD_in |
---|
[4835] | 44 | RV=RV_in |
---|
[4485] | 45 | RCPD=RCPD_in |
---|
| 46 | RLVTT=RLVTT_in |
---|
| 47 | RLSTT=RLSTT_in |
---|
| 48 | RLMLT=RLMLT_in |
---|
| 49 | RTT=RTT_in |
---|
| 50 | RG=RG_in |
---|
| 51 | RVTMP2=RVTMP2_in |
---|
[4835] | 52 | RPI=RPI_in |
---|
[4485] | 53 | |
---|
[4835] | 54 | c_esalt_bs= 3.25 |
---|
| 55 | CALL getin_p('c_esalt_bs',c_esalt_bs) |
---|
[4485] | 56 | |
---|
| 57 | qbst_bs= 0.001 |
---|
| 58 | CALL getin_p('qbst_bs',qbst_bs) |
---|
| 59 | |
---|
[4672] | 60 | pbst_bs= 0.0003 |
---|
[4485] | 61 | CALL getin_p('pbst_bs',pbst_bs) |
---|
| 62 | |
---|
| 63 | prt_bs= 0.0003 |
---|
| 64 | CALL getin_p('prt_bs',prt_bs) |
---|
| 65 | |
---|
| 66 | zeta_bs= 3. |
---|
| 67 | CALL getin_p('zeta_bs',zeta_bs) |
---|
| 68 | |
---|
| 69 | fallv_bs = 0.1 |
---|
| 70 | CALL getin_p('fallv_bs',fallv_bs) |
---|
| 71 | |
---|
[4835] | 72 | coef_sub_bs = 0.1 |
---|
| 73 | CALL getin_p('coef_sub_bs',coef_sub_bs) |
---|
[4485] | 74 | |
---|
[4835] | 75 | iflag_sublim_bs=1 |
---|
| 76 | CALL getin_p('iflag_sublim_bs',iflag_sublim_bs) |
---|
[4485] | 77 | |
---|
[4835] | 78 | iflag_sedim_bs=1 |
---|
| 79 | CALL getin_p('iflag_sedim_bs',iflag_sedim_bs) |
---|
[4485] | 80 | |
---|
[4835] | 81 | r_bs=150.0e-6 |
---|
| 82 | CALL getin_p('r_bs',r_bs) |
---|
[4529] | 83 | |
---|
[4485] | 84 | end subroutine blowing_snow_ini |
---|
| 85 | |
---|
[4724] | 86 | end module lmdz_blowing_snow_ini |
---|