Changeset 4742 for LMDZ6/trunk/libf/phylmd
- Timestamp:
- Oct 28, 2023, 4:47:32 PM (15 months ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/phys_local_var_mod.F90
r4737 r4742 38 38 REAL, SAVE, ALLOCATABLE :: d_tr_dyn(:,:,:) 39 39 !$OMP THREADPRIVATE(d_tr_dyn) 40 REAL, SAVE, ALLOCATABLE :: d_t_con(:,:),d_q_con(:,:) 41 !$OMP THREADPRIVATE(d_t_con,d_q_con )40 REAL, SAVE, ALLOCATABLE :: d_t_con(:,:),d_q_con(:,:),d_q_con_zmasse(:,:) 41 !$OMP THREADPRIVATE(d_t_con,d_q_con,d_q_con_zmasse) 42 42 REAL, SAVE, ALLOCATABLE :: d_u_con(:,:),d_v_con(:,:) 43 43 !$OMP THREADPRIVATE(d_u_con,d_v_con) … … 640 640 ALLOCATE(d_u_dyn(klon,klev),d_v_dyn(klon,klev)) 641 641 ALLOCATE(d_tr_dyn(klon,klev,nbtr)) !RomP 642 ALLOCATE(d_t_con(klon,klev),d_q_con(klon,klev) )642 ALLOCATE(d_t_con(klon,klev),d_q_con(klon,klev),d_q_con_zmasse(klon,klev)) 643 643 ALLOCATE(d_u_con(klon,klev),d_v_con(klon,klev)) 644 644 ALLOCATE(d_t_wake(klon,klev),d_q_wake(klon,klev)) … … 767 767 ALLOCATE(toplwad0_aero_s2(klon), sollwad0_aero_s2(klon)) 768 768 769 770 769 ! FH Ajout de celles necessaires au phys_output_write_mod 771 770 … … 987 986 DEALLOCATE(d_u_dyn,d_v_dyn) 988 987 DEALLOCATE(d_tr_dyn) !RomP 989 DEALLOCATE(d_t_con,d_q_con )988 DEALLOCATE(d_t_con,d_q_con,d_q_con_zmasse) 990 989 DEALLOCATE(d_u_con,d_v_con) 991 990 DEALLOCATE(d_t_wake,d_q_wake) -
LMDZ6/trunk/libf/phylmd/physiq_mod.F90
r4737 r4742 162 162 d_q_dyn2d,d_ql_dyn2d,d_qs_dyn2d,d_qbs_dyn2d, & 163 163 ! Physic tendencies 164 d_t_con,d_q_con,d_ u_con,d_v_con, &164 d_t_con,d_q_con,d_q_con_zmasse,d_u_con,d_v_con, & 165 165 d_tr, & !! to be removed?? (jyg) 166 166 d_t_wake,d_q_wake, & … … 1256 1256 LOGICAL, PARAMETER :: mass_fixer=.FALSE. 1257 1257 REAL qql1(klon),qql2(klon),corrqql 1258 1259 !--OB flag to activate better conservation of water tendency when convection is not called every timestep 1260 LOGICAL, PARAMETER :: ok_conserv_d_q_con=.FALSE. 1258 1261 1259 1262 REAL, dimension(klon,klev) :: t_env,q_env … … 3377 3380 ENDIF 3378 3381 3382 !--saving d_q_con * zmass for next timestep if convection is not called every timestep 3383 IF (ok_conserv_d_q_con) THEN 3384 d_q_con_zmasse(:,:) = d_q_con(:,:) * zmasse(:,:) 3385 ENDIF 3386 3379 3387 ! CALL homogene(paprs, q_seri, d_q_con, u_seri,v_seri, 3380 3388 ! . d_u_con, d_v_con) … … 3406 3414 !! 3407 3415 !! 3416 3417 !--recompute d_q_con with zmasse from new timestep 3418 IF (ok_conserv_d_q_con) THEN 3419 d_q_con(:,:)=d_q_con_zmasse(:,:)/zmasse(:,:) 3420 ENDIF 3421 3408 3422 CALL add_phys_tend(d_u_con, d_v_con, d_t_con, d_q_con, dql0, dqi0, dqbs0, paprs, & 3409 3423 'convection',abortphy,flag_inhib_tend,itap,0)
Note: See TracChangeset
for help on using the changeset viewer.