PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
mode_ice4_fast_ri.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 1994-2025 CNRS, Meteo-France and Universite Paul Sabatier
2!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
3!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4!MNH_LIC for details. version 1.
5!-------------------------------------------------------------------------------
7IMPLICIT NONE
8CONTAINS
9SUBROUTINE ice4_fast_ri(ICEP, ICED, D, LDSOFT, LDCOMPUTE, &
10 &PRHODREF, PLVFACT, PLSFACT, &
11 &PAI, PCJ, PCIT, &
12 &PSSI, &
13 &PRCT, PRIT, &
14 &PRCBERI)
15
16!$ACDC singlecolumn
17
18!!
19!!** PURPOSE
20!! -------
21!! Computes the fast ri process
22!!
23!! AUTHOR
24!! ------
25!! S. Riette from the splitting of rain_ice source code (nov. 2014)
26!!
27!! MODIFICATIONS
28!! -------------
29!! S. Riette, 11/2021: loop instead of array syntax
30!!
31!
32!
33!* 0. DECLARATIONS
34! ------------
35!
39USE yomhook , ONLY : lhook, dr_hook, jphook
40!
41IMPLICIT NONE
42!
43!* 0.1 Declarations of dummy arguments :
44!
45TYPE(rain_ice_param_t), INTENT(IN) :: ICEP
46TYPE(rain_ice_descr_t), INTENT(IN) :: ICED
47TYPE(dimphyex_t), INTENT(IN) :: D
48LOGICAL, INTENT(IN) :: LDSOFT
49LOGICAL, DIMENSION(D%NIJT), INTENT(IN) :: LDCOMPUTE
50REAL, DIMENSION(D%NIJT), INTENT(IN) :: PRHODREF ! Reference density
51REAL, DIMENSION(D%NIJT), INTENT(IN) :: PLVFACT
52REAL, DIMENSION(D%NIJT), INTENT(IN) :: PLSFACT
53REAL, DIMENSION(D%NIJT), INTENT(IN) :: PAI ! Thermodynamical function
54REAL, DIMENSION(D%NIJT), INTENT(IN) :: PCJ ! Function to compute the ventilation coefficient
55REAL, DIMENSION(D%NIJT), INTENT(IN) :: PCIT ! Pristine ice conc. at t
56REAL, DIMENSION(D%NIJT), INTENT(IN) :: PSSI ! Supersaturation over ice
57REAL, DIMENSION(D%NIJT), INTENT(IN) :: PRCT ! Cloud water m.r. at t
58REAL, DIMENSION(D%NIJT), INTENT(IN) :: PRIT ! Pristine ice m.r. at t
59REAL, DIMENSION(D%NIJT), INTENT(INOUT) :: PRCBERI ! Bergeron-Findeisen effect
60!
61!* 0.2 declaration of local variables
62!
63REAL(KIND=jphook) :: zhook_handle
64INTEGER :: JIJ
65!
66!-------------------------------------------------------------------------------
67IF (lhook) CALL dr_hook('ICE4_FAST_RI',0,zhook_handle)
68!
69#ifdef MNH_COMPILER_CCE
70!$mnh_undef(LOOP)
71#endif
72!-------------------------------------------------------------------------------
73!
74!* 7.2 Bergeron-Findeisen effect: RCBERI
75!
76!$acc kernels
77!$mnh_do_concurrent( JIJ=D%NIJB:D%NIJE )
78DO jij=d%NIJB, d%NIJE
79 IF(pssi(jij)>0. .AND. prct(jij)>iced%XRTMIN(2) .AND. prit(jij)>iced%XRTMIN(4) &
80 .AND. pcit(jij)>1.e-20 .AND. ldcompute(jij)) THEN
81 IF(.NOT. ldsoft) THEN
82 prcberi(jij) = min(1.e8, iced%XLBI*(prhodref(jij)*prit(jij)/pcit(jij))**iced%XLBEXI) ! Lbda_i
83 prcberi(jij) = ( pssi(jij) / (prhodref(jij)*pai(jij)) ) * pcit(jij) * &
84 ( icep%X0DEPI/prcberi(jij) + icep%X2DEPI*pcj(jij)*pcj(jij)/prcberi(jij)**(iced%XDI+2.0) )
85 ENDIF
86 ELSE
87 prcberi(jij) = 0.
88 ENDIF
89ENDDO
90!$mnh_end_do()
91!$acc end kernels
92!
93IF (lhook) CALL dr_hook('ICE4_FAST_RI', 1, zhook_handle)
94!
95END SUBROUTINE ice4_fast_ri
96END MODULE mode_ice4_fast_ri
subroutine ice4_fast_ri(icep, iced, d, ldsoft, ldcompute, prhodref, plvfact, plsfact, pai, pcj, pcit, pssi, prct, prit, prcberi)