Changeset 3853 for trunk/LMDZ.PLUTO/libf
- Timestamp:
- Jul 17, 2025, 4:36:29 AM (10 days ago)
- Location:
- trunk/LMDZ.PLUTO/libf/phypluto
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/cosurf.F
r3844 r3853 2 2 & tsurf,pplev,pdpsurf,pq,pdq,pqsurf,pdqsurf,pdqco,pdqsco) 3 3 4 use callkeys_mod, only: dayfrac 4 use callkeys_mod, only: dayfrac,no_n2frost 5 5 use comcstfi_mod, only: g, r 6 6 use comgeomfi_h … … 52 52 DATA vonk/0.4/ 53 53 54 LOGICAL firstcall 55 SAVE firstcall 56 real,dimension(:),save,allocatable :: qsat_co_factor ! factor to prevent co frost formation if no n2 frost 57 !$OMP THREADPRIVATE(qsat_co_factor) 58 59 IF (firstcall) THEN 60 firstcall=.false. 61 ! If fixed distribution of N2, then no CO frost either 62 ALLOCATE(qsat_co_factor(ngrid)) 63 qsat_co_factor(:)=1. 64 IF (no_n2frost) then 65 DO ig=1,ngrid 66 if (pqsurf(ig,igcm_n2).eq.0.) then 67 qsat_co_factor(ig) = 1.e6 68 endif 69 ENDDO 70 ENDIF 71 ENDIF 72 54 73 ! Calculation of turbulent flux : F=rho*cdrag*uv*(qsat-zq) 55 74 -
trunk/LMDZ.PLUTO/libf/phypluto/vdifc_pluto_mod.F90
r3844 r3853 100 100 REAL zcst1 101 101 REAL zu2 102 REAL qsat_co_factor(ngrid) ! factor to prevent co frost formation if no n2 frost103 102 EXTERNAL SSUM,SCOPY 104 103 REAL SSUM 105 104 LOGICAL firstcall 106 105 SAVE firstcall 106 real,dimension(:),save,allocatable :: qsat_co_factor ! factor to prevent co frost formation if no n2 frost 107 !$OMP THREADPRIVATE(qsat_co_factor) 107 108 108 109 !!read fixed profile for kmix … … 161 162 162 163 ! If fixed distribution of N2, then no CO frost either 164 ALLOCATE(qsat_co_factor(ngrid)) 163 165 qsat_co_factor(:)=1. 164 166 IF (no_n2frost) then … … 662 664 !! Prevent CO condensation at the surface 663 665 if (.not.condcosurf) then 664 qsat_co =qsat_co*1.e6666 qsat_co(:)=qsat_co(:)*1.e6 665 667 endif 666 668 if (no_n2frost) then 667 qsat_co =qsat_co*qsat_co_factor669 qsat_co(:)=qsat_co(:)*qsat_co_factor(:) 668 670 endif 669 671
Note: See TracChangeset
for help on using the changeset viewer.