Changeset 3739 for trunk/LMDZ.MARS
- Timestamp:
- Apr 26, 2025, 8:20:13 PM (7 weeks ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r3737 r3739 4813 4813 - When atmospheric water profile is monitored, ice value is not put to 0 anymore. 4814 4814 - The user can now prescribe a specific atmospheric water profile with a file "profile_def_h2o_vap". 4815 4816 == 26/04/2025 == EM 4817 Code tidying: put routines in modules, remove useless "return" statements, etc. -
trunk/LMDZ.MARS/libf/phymars/call_dayperi.F
r3040 r3739 1 module call_dayperi_mod 2 3 implicit none 4 5 contains 6 1 7 c ******************************************************* 2 8 subroutine call_dayperi(Lsperi,e_elips,dayperi,year_day) … … 43 49 & -x2*sin(Lsperi)/(1+e_elips*cos(Lsperi)) ) 44 50 if (dayperi < 0) dayperi=dayperi+year_day 45 return46 51 47 end 52 end subroutine call_dayperi 53 54 end module call_dayperi_mod -
trunk/LMDZ.MARS/libf/phymars/co2cloud.F90
- Property svn:executable deleted
-
trunk/LMDZ.MARS/libf/phymars/co2condens_mod.F
r3726 r3739 39 39 USE paleoclimate_mod, ONLY: paleoclimate 40 40 use callkeys_mod, only: caps, co2clouds 41 use co2snow_mod, only: co2snow 41 42 42 43 IMPLICIT NONE -
trunk/LMDZ.MARS/libf/phymars/co2sat.F
- Property svn:executable deleted
r2362 r3739 38 38 c===== END 39 39 c======================================================================= 40 RETURN41 40 END 42 41 -
trunk/LMDZ.MARS/libf/phymars/co2snow.F
r3726 r3739 1 MODULE co2snow_mod 2 3 IMPLICIT NONE 4 5 CONTAINS 1 6 c======================================================================= 2 7 c Program for simulate the impact of the CO2 snow fall on … … 138 143 c END 139 144 c======================================================================= 140 return 141 end 145 end subroutine co2snow 146 147 END MODULE co2snow_mod -
trunk/LMDZ.MARS/libf/phymars/drag_noro_mod.F90
r2642 r3739 41 41 REAL, intent(in):: pvar(ndomainsz) ! sub-grid scale standard deviation 42 42 REAL, intent(in):: psig(ndomainsz) ! sub-grid scale standard slope 43 REAL, intent(in ):: pgam(ndomainsz)! sub-grid scale standard anisotropy43 REAL, intent(inout):: pgam(ndomainsz) ! sub-grid scale standard anisotropy 44 44 REAL, intent(in):: pthe(ndomainsz) ! sub-grid scale principal axes angle 45 45 REAL, intent(in):: u(ndomainsz,nlayer) ! Zonal wind at full levels(m/s) -
trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90
r3737 r3739 46 46 use co2condens_mod, only: CO2cond_ps 47 47 use callkeys_mod, only: water, photochem, callthermos 48 use call_dayperi_mod, only: call_dayperi 48 49 ! Mostly for XIOS outputs: 49 50 use mod_const_mpi, only: COMM_LMDZ -
trunk/LMDZ.MARS/libf/phymars/improvedclouds_mod.F
r3726 r3739 624 624 625 625 ENDIF ! endif test_flag 626 !!!!!!!!!!!!!! TESTS OUTPUTS TESTS OUTPUTS TESTS OUTPUTS TESTS OUTPUTS 627 !!!!!!!!!!!!!! TESTS OUTPUTS TESTS OUTPUTS TESTS OUTPUTS TESTS OUTPUTS 628 !!!!!!!!!!!!!! TESTS OUTPUTS TESTS OUTPUTS TESTS OUTPUTS TESTS OUTPUTS 629 630 return 631 632 633 626 634 627 635 628 cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc -
trunk/LMDZ.MARS/libf/phymars/improvedco2clouds_mod.F90
- Property svn:executable deleted
-
trunk/LMDZ.MARS/libf/phymars/massflowrateco2.F90
- Property svn:executable deleted
r3008 r3739 528 528 visco = 0.0266958 * sqrt(M2*T) / ( sigma**2. * RGCS ) !!! microPa.s 529 529 530 return531 530 !======================================================================================================================! 532 531 ! END =================================================================================================================! -
trunk/LMDZ.MARS/libf/phymars/nucleaco2.F90
- Property svn:executable deleted
-
trunk/LMDZ.MARS/libf/phymars/orodrag_mod.F90
r2651 r3739 39 39 USE comcstfi_h, ONLY: g, cpp 40 40 USE yoegwd_h, ONLY: gkwake 41 USE orosetup_mod, ONLY: orosetup 41 42 42 43 implicit none … … 57 58 REAL, intent(in):: pvar(ndomainsz) ! Sub-grid scale standard deviation 58 59 REAL, intent(in):: psig(ndomainsz) ! Sub-grid scale slope 59 REAL, intent(in ):: pgam(ndomainsz) ! Sub-grid scale anisotropy60 REAL, intent(inout):: pgam(ndomainsz) ! Sub-grid scale anisotropy 60 61 REAL, intent(in):: pthe(ndomainsz) ! Sub-grid scale principal axes angle 61 62 REAL, intent(in):: zgeom(ndomainsz,nlayer) ! Geopotential height of full levels -
trunk/LMDZ.MARS/libf/phymars/orosetup.F90
r2651 r3739 1 MODULE orosetup_mod 2 3 IMPLICIT NONE 4 5 CONTAINS 6 1 7 SUBROUTINE OROSETUP( ngrid, nlayer, ktest, pplev, pplay, pu, pv, pt, zgeom, & 2 8 pvar,pthe, pgam, & … … 113 119 ! 1. INITIALIZATION 114 120 !-------------------------------------------------------------------------------- 115 ! 100 CONTINUE ! continue tag without source, maybe need delete in future116 121 117 122 !* 1.1 COMPUTATIONAL CONSTANTS 118 123 kidia=1 119 124 kfdia=ngrid 120 ! 110 CONTINUE ! continue tag without source, maybe need delete in future121 125 ILEVM1=nlayer-1 122 126 ILEVM2=nlayer-2 … … 129 133 ! 2. Compute all the critical levels and the coeffecients of anisotropy 130 134 !----------------------------------------------------------------------------------------------------- 131 ! 200 CONTINUE ! continue tag without source, maybe need delete in future 135 132 136 ! 2.1 Define low level wind, project winds in plane of low level wind, 133 137 ! determine sector in which to take the variance and set indicator for critical levels. … … 209 213 enddo 210 214 211 ! 210 CONTINUE ! continue tag without source, maybe need delete in future212 215 ! Initialize various arrays for the following computes 213 216 DO JL=kidia,kfdia … … 329 332 330 333 ! 2.2 Brunt-vaisala frequency and density at half levels 331 220 CONTINUE ! continue tag without source, maybe need delete in future332 334 333 335 DO JK=ilevh,nlayer … … 366 368 367 369 ! 2.3 Mean flow richardson number and critical height for proude layer 368 ! 230 CONTINUE ! continue tag without source, maybe need delete in future369 370 370 371 DO JK=2,nlayer … … 471 472 end DO 472 473 473 ! 260 CONTINUE ! continue tag without source, maybe need delete in future 474 475 RETURN 476 END 474 END SUBROUTINE OROSETUP 475 476 END MODULE orosetup_mod -
trunk/LMDZ.MARS/libf/phymars/tcondwater.F90
r1711 r3739 1 SUBROUTINE tcondwater(nbpts,p,q,tcond) 1 module tcondwater_mod 2 3 implicit none 4 5 contains 6 7 subroutine tcondwater(ngrid,nlay,p,q,tcond) 2 8 IMPLICIT NONE 3 9 … … 7 13 !--------------------------------------------------i 8 14 9 integer, intent(in) :: nbpts 10 real, intent(in), dimension(nbpts):: p,q 11 real, intent(out), dimension(nbpts):: tcond 15 integer, intent(in) :: ngrid, nlay 16 real, intent(in) :: p(ngrid,nlay) ! pressure (Pa) 17 real, intent(in) :: q(ngrid,nlay) ! water mass mixing ratio (kg/kg_air) 18 real, intent(out):: tcond(ngrid,nlay) ! condensation temeprature (K) 12 19 13 real, dimension(nbpts):: res14 20 real:: x 15 integer:: i 16 17 do i=1,nbpts 21 integer:: i,j 22 do i=1,ngrid 23 do j=1,nlay 18 24 !write(*,*) "i en cours", i, "sur nbpts=", nbpts 19 25 !write(*,*) "q(i)",q(i),"p(i)",p(i) 20 x=alog10(MAX(q(i ),1e-16)*p(i)/(100.*0.41)) ! max pour erreur q<=026 x=alog10(MAX(q(i,j),1e-16)*p(i,j)/(100.*0.41)) ! max pour erreur q<=0 21 27 ! attention change le 0.41 de place le 10 juin 2014 car priorites 22 28 ! fortran dans watersat.F … … 26 32 ! + 2.12411064e-04*x**6+1.64642075e-05*x**7+9.22615632e-07*x**8 27 33 ! + 3.18958825e-08*x**9+5.00656720e-10*x**10 degre 10: trop! 28 res(i) = 2.52846556e+02+ 2.39229653e+01*x+ 2.21333897e+00*x**2 &34 tcond(i,j) = 2.52846556e+02+ 2.39229653e+01*x+ 2.21333897e+00*x**2 & 29 35 + 1.79977992e-01*x**3+ 1.00068175e-02*x**4+2.55145012e-04*x**5 30 36 !write(*,*) "rex(x) tcondwater AP14! :) :) :) :P", res(i) 37 enddo 31 38 enddo 32 39 33 tcond=res 40 end subroutine tcondwater 34 41 35 return 36 end 42 end module tcondwater_mod 37 43 !polynome de degre 5 pas 0.0001 38 44 !polynomial coefs [ 2.52846556e+02 2.39229653e+01 2.21333897e+00 -
trunk/LMDZ.MARS/libf/phymars/thermcell_dqup.F90
- Property svn:executable deleted
-
trunk/LMDZ.MARS/libf/phymars/watercloud_mod.F
r3726 r3739 20 20 USE improvedclouds_mod, ONLY: improvedclouds 21 21 USE watersat_mod, ONLY: watersat 22 USE tcondwater_mod, ONLY: tcondwater 22 23 use tracer_mod, only: nqmx, igcm_h2o_vap, igcm_h2o_ice, 23 24 & igcm_hdo_vap, igcm_hdo_ice, … … 244 245 zqvap=zqclf(:,:,igcm_h2o_vap) 245 246 zqice=zqclf(:,:,igcm_h2o_ice) 246 CALL tcondwater(ngrid *nlay,pplay,zqvap+zqice,tcond)247 CALL tcondwater(ngrid,nlay,pplay,zqvap+zqice,tcond) 247 248 DO l=1,nlay 248 249 DO ig=1,ngrid
Note: See TracChangeset
for help on using the changeset viewer.