Changeset 1576
- Timestamp:
- Jul 27, 2016, 11:14:41 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DOC/chantiers/commit_importants.log
r1575 r1576 1859 1859 - grid_atob_m.F90: fix for some zoomed grid interpolation cases 1860 1860 1861 ********************** 1862 **** commit_v1576 **** 1863 ********************** 1864 Ehouarn: Clean up the dynamics/physics interface to converge with LMDZ5; 1865 get rid of tracerdyn parameter (which was supposed to send information 1866 about wether tracers should be advected or not in the Mars and Generic 1867 models). 1868 -
trunk/LMDZ.COMMON/libf/dynphy_lonlat/calfis.F
r1549 r1576 183 183 LOGICAL,SAVE :: firstcal=.true., debut=.true. 184 184 ! REAL rdayvrai 185 186 LOGICAL tracerdyn ! for generic/mars physics call ; possibly to get rid of187 185 188 186 ! For Titan only right now: … … 707 705 & zufi,zvfi,zrfi,ztfi,zqfi, 708 706 & flxwfi,pducov, 709 & zdufi,zdvfi,zdtfi,zdqfi,zdpsrf, 710 & tracerdyn) 707 & zdufi,zdvfi,zdtfi,zdqfi,zdpsrf) 711 708 712 709 ! if (planet_type.eq."earth") then -
trunk/LMDZ.COMMON/libf/dynphy_lonlat/calfis_p.F
r1572 r1576 253 253 INTEGER :: offset 254 254 INTEGER :: jjb,jje 255 256 LOGICAL tracerdyn ! for generic/mars physics call ; possibly to get rid of257 255 258 256 ! For Titan only right now: … … 945 943 & flxwfi_omp,pducov, 946 944 & zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp, 947 & zdpsrf_omp ,tracerdyn)945 & zdpsrf_omp) 948 946 949 947 ! if (planet_type=="earth") then -
trunk/LMDZ.COMMON/libf/dynphy_lonlat/phytitan/callphysiq_mod.F90
r1549 r1576 16 16 zufi_omp,zvfi_omp,zrfi_omp,ztfi_omp,zqfi_omp, & 17 17 flxwfi_omp,pducov, & 18 zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp,zdpsrf_omp,& 19 tracerdyn) 18 zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp,zdpsrf_omp) 20 19 21 20 USE control_mod, ONLY: planet_type … … 52 51 REAL,INTENT(OUT) :: zdqfi_omp(klon,llm,nqtot) ! tendency on tracers 53 52 REAL,INTENT(OUT) :: zdpsrf_omp(klon) ! tendency on surface pressure 54 LOGICAL,INTENT(OUT) :: tracerdyn55 53 56 54 ! Local variables -
trunk/LMDZ.COMMON/libf/dynphy_lonlat/phyvenus/callphysiq_mod.F90
r1549 r1576 16 16 zufi_omp,zvfi_omp,zrfi_omp,ztfi_omp,zqfi_omp, & 17 17 flxwfi_omp,pducov, & 18 zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp,zdpsrf_omp,& 19 tracerdyn) 18 zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp,zdpsrf_omp) 20 19 21 20 USE control_mod, ONLY: planet_type … … 52 51 REAL,INTENT(OUT) :: zdqfi_omp(klon,llm,nqtot) ! tendency on tracers 53 52 REAL,INTENT(OUT) :: zdpsrf_omp(klon) ! tendency on surface pressure 54 LOGICAL,INTENT(OUT) :: tracerdyn55 53 56 54 ! Local variables -
trunk/LMDZ.GENERIC/README
r1573 r1576 1238 1238 package (directory phystd) must be done in the related phystd/iniphysiq 1239 1239 routine. 1240 1241 == 27/07/2016 == EM 1242 - further cleanup in the dynamics/physics interface: stop sending information 1243 about tracer advection (tracerdyn) back from physics to dynamics as this 1244 input parameter can be read and set in the dynamics. -
trunk/LMDZ.GENERIC/libf/dyn3d/gcm.F
r1543 r1576 1 1 PROGRAM gcm 2 2 3 use ioipsl_getincom, only: getin 3 4 use infotrac, only: iniadvtrac, nqtot, iadv 4 5 use sponge_mod,only: callsponge,mode_sponge,sponge … … 129 130 character*80 abort_message 130 131 131 LOGICAL tracer 132 data tracer/.true./ 133 ! INTEGER nq 134 132 ! flag to run with or without tracer transport (read from run.def) 133 logical tracer 134 135 135 C Calendrier 136 136 LOGICAL true_calendar … … 177 177 c----------------------------------------------------------------------- 178 178 CALL defrun_new( 99, .TRUE. ) 179 WRITE(*,*) "" 180 WRITE(*,*) "Run with or without tracer transport ?" 181 tracer=.true. ! default value 182 call getin("tracer",tracer) 183 WRITE(*,*)" tracer = ",tracer 179 184 180 185 ! Initialize tracers … … 479 484 CALL calfis( nqtot, lafin ,rdayvrai,rday_ecri,time , 480 485 $ ucov,vcov,teta,q,masse,ps,p,pk,phis,phi , 481 $ du,dv,dteta,dq,w, dufi,dvfi,dhfi,dqfi,dpfi ,tracer)486 $ du,dv,dteta,dq,w, dufi,dvfi,dhfi,dqfi,dpfi) 482 487 483 488 -
trunk/LMDZ.GENERIC/libf/dynphy_lonlat/calfis.F
r1549 r1576 2 2 $ pucov,pvcov,pteta,pq,pmasse,pps,pp,ppk,pphis,pphi, 3 3 $ pducov,pdvcov,pdteta,pdq,pw, 4 $ pdufi,pdvfi,pdhfi,pdqfi,pdpsfi ,tracer)4 $ pdufi,pdvfi,pdhfi,pdqfi,pdpsfi ) 5 5 c 6 6 c Auteur : P. Le Van, F. Hourdin … … 56 56 c pdtsfi tendency for the surface temperature 57 57 c 58 c tracer Call tracer in gcm.F ? (decided in callphys.def)59 c60 58 c======================================================================= 61 59 c … … 106 104 REAL pdqfi(iip1,jjp1,llm,nqtot) 107 105 REAL pdpsfi(iip1,jjp1) 108 logical tracer109 106 110 107 c Local variables : … … 441 438 , flxwfi, 442 439 C - sorties 443 s zdufi, zdvfi, zdtfi, zdqfi,zdpsrf ,tracer)440 s zdufi, zdvfi, zdtfi, zdqfi,zdpsrf) 444 441 445 442 -
trunk/LMDZ.GENERIC/libf/dynphy_lonlat/phystd/callphysiq_mod.F90
r1549 r1576 16 16 zufi_omp,zvfi_omp,zrfi_omp,ztfi_omp,zqfi_omp, & 17 17 flxwfi_omp,pducov, & 18 zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp,zdpsrf_omp,& 19 tracerdyn) 18 zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp,zdpsrf_omp) 20 19 21 20 USE control_mod, ONLY: planet_type … … 52 51 REAL,INTENT(OUT) :: zdqfi_omp(klon,llm,nqtot) ! tendency on tracers 53 52 REAL,INTENT(OUT) :: zdpsrf_omp(klon) ! tendency on surface pressure 54 LOGICAL,INTENT(OUT) :: tracerdyn55 53 56 54 ! Local variables … … 90 88 zdtfi_omp, & ! pdt 91 89 zdqfi_omp, & ! pdq 92 zdpsrf_omp, & ! pdpsrf 93 tracerdyn) ! tracerdyn (somewhat obsolete) 90 zdpsrf_omp) ! pdpsrf 94 91 95 92 -
trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F
r1549 r1576 108 108 INTEGER ierr, aslun 109 109 REAL tmp1(0:llm),tmp2(0:llm) 110 Logical tracerdyn111 110 integer :: nq !=1 ! number of tracers 112 111 … … 906 905 , w, 907 906 C - sorties 908 s du, dv, dtemp, dq,dpsurf ,tracerdyn)907 s du, dv, dtemp, dq,dpsurf) 909 908 910 909 -
trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90
r1549 r1576 12 12 pu,pv,pt,pq, & 13 13 flxw, & 14 pdu,pdv,pdt,pdq,pdpsrf ,tracerdyn)14 pdu,pdv,pdt,pdq,pdpsrf) 15 15 16 16 use radinc_h, only : L_NSPECTI,L_NSPECTV,naerkind … … 132 132 ! pdq(ngrid,nlayer) / 133 133 ! pdpsrf(ngrid) / 134 ! tracerdyn call tracer in dynamical part of GCM ?135 134 ! 136 135 ! … … 195 194 real,intent(out) :: pdq(ngrid,nlayer,nq) ! Tracer tendencies (kg/kg_of_air/s). 196 195 real,intent(out) :: pdpsrf(ngrid) ! Surface pressure tendency (Pa/s). 197 logical,intent(out) :: tracerdyn ! Signal to the dynamics to advect tracers or not.198 196 199 197 ! Local saved variables: … … 517 515 ! Initialize tracer names, indexes and properties. 518 516 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 519 tracerdyn=tracer520 517 IF (.NOT.ALLOCATED(noms)) ALLOCATE(noms(nq)) ! (because noms is an argument of physdem1 whether or not tracer is on) 521 518 if (tracer) then -
trunk/LMDZ.MARS/README
r1573 r1576 2312 2312 package (directory phymars) must be done in the related phymars/iniphysiq 2313 2313 routine. 2314 2315 == 27/07/2016 == EM 2316 - further cleanup in the dynamics/physics interface: stop sending information 2317 about tracer advection (tracerdyn) back from physics to dynamics as this 2318 input parameter can be read and set in the dynamics. -
trunk/LMDZ.MARS/libf/dyn3d/gcm.F
r1543 r1576 1 1 PROGRAM gcm 2 2 3 use ioipsl_getincom, only: getin 3 4 use infotrac, only: iniadvtrac, nqtot, iadv 4 5 use control_mod, only: day_step, iperiod, iphysiq, ndynstep, … … 129 130 character*80 abort_message 130 131 131 LOGICAL tracer 132 data tracer/.true./ 133 ! INTEGER nq 134 132 ! flag to run with or without tracer transport (read from run.def) 133 logical tracer 134 135 135 C Calendrier 136 136 LOGICAL true_calendar … … 161 161 c----------------------------------------------------------------------- 162 162 CALL defrun_new( 99, .TRUE. ) 163 WRITE(*,*) "" 164 WRITE(*,*) "Run with or without tracer transport ?" 165 tracer=.true. ! default value 166 call getin("tracer",tracer) 167 WRITE(*,*)" tracer = ",tracer 163 168 164 169 ! Initialize tracers … … 491 496 CALL calfis( nqtot, lafin ,rdayvrai,rday_ecri,time , 492 497 $ ucov,vcov,teta,q,masse,ps,p,pk,phis,phi , 493 $ du,dv,dteta,dq,w, dufi,dvfi,dhfi,dqfi,dpfi ,tracer)498 $ du,dv,dteta,dq,w, dufi,dvfi,dhfi,dqfi,dpfi) 494 499 495 500 -
trunk/LMDZ.MARS/libf/dynphy_lonlat/calfis.F
r1549 r1576 2 2 $ pucov,pvcov,pteta,pq,pmasse,pps,pp,ppk,pphis,pphi, 3 3 $ pducov,pdvcov,pdteta,pdq,pw, 4 $ pdufi,pdvfi,pdhfi,pdqfi,pdpsfi ,tracer)4 $ pdufi,pdvfi,pdhfi,pdqfi,pdpsfi ) 5 5 c 6 6 c Auteur : P. Le Van, F. Hourdin … … 56 56 c pdtsfi tendency for the surface temperature 57 57 c 58 c tracer Call tracer in gcm.F ? (decided in callphys.def)59 c60 58 c======================================================================= 61 59 c … … 103 101 REAL pdqfi(iip1,jjp1,llm,nq) 104 102 REAL pdpsfi(iip1,jjp1) 105 logical tracer106 103 107 104 c Local variables : … … 437 434 , flxwfi, 438 435 C - sorties 439 s zdufi, zdvfi, zdtfi, zdqfi,zdpsrf ,tracer)436 s zdufi, zdvfi, zdtfi, zdqfi,zdpsrf) 440 437 441 438 -
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/callphysiq_mod.F90
r1549 r1576 16 16 zufi_omp,zvfi_omp,zrfi_omp,ztfi_omp,zqfi_omp, & 17 17 flxwfi_omp,pducov, & 18 zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp,zdpsrf_omp,& 19 tracerdyn) 18 zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp,zdpsrf_omp) 20 19 21 20 USE control_mod, ONLY: planet_type … … 52 51 REAL,INTENT(OUT) :: zdqfi_omp(klon,llm,nqtot) ! tendency on tracers 53 52 REAL,INTENT(OUT) :: zdpsrf_omp(klon) ! tendency on surface pressure 54 LOGICAL,INTENT(OUT) :: tracerdyn55 53 56 54 ! Local variables … … 89 87 zdtfi_omp, & ! pdt 90 88 zdqfi_omp, & ! pdq 91 zdpsrf_omp, & ! pdpsrf 92 tracerdyn) ! tracerdyn (somewhat obsolete) 89 zdpsrf_omp) ! pdpsrf 93 90 94 91 -
trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F
r1550 r1576 109 109 INTEGER ierr, aslun 110 110 REAL tmp1(0:nlayer),tmp2(0:nlayer) 111 Logical tracerdyn112 111 integer :: nq=1 ! number of tracers 113 112 real :: latitude(1), longitude(1), cell_area(1) … … 753 752 , w, 754 753 C - outputs 755 s du, dv, dtemp, dq,dpsurf ,tracerdyn)754 s du, dv, dtemp, dq,dpsurf) 756 755 ! write(*,*) "testphys1d apres q", q(1,:) 757 756 -
trunk/LMDZ.MARS/libf/phymars/physiq_mod.F
r1549 r1576 12 12 $ ,pu,pv,pt,pq 13 13 $ ,flxw 14 $ ,pdu,pdv,pdt,pdq,pdpsrf ,tracerdyn)14 $ ,pdu,pdv,pdt,pdq,pdpsrf) 15 15 16 16 use tracer_mod, only: noms, mmol, igcm_co2, igcm_n2, … … 146 146 c pdq(ngrid,nlayer,nq) | 147 147 c pdpsrf(ngrid) | 148 c tracerdyn call tracer in dynamical part of GCM ?149 148 150 149 c … … 191 190 REAL,INTENT(out) :: pdq(ngrid,nlayer,nq) ! tracer tendencies (../kg/s) 192 191 REAL,INTENT(out) :: pdpsrf(ngrid) ! surface pressure tendency (Pa/s) 193 LOGICAL,INTENT(out) :: tracerdyn ! signal to the dynamics to advect tracers or not194 192 195 193 … … 434 432 c initialize tracers 435 433 c ~~~~~~~~~~~~~~~~~~ 436 tracerdyn=tracer437 434 IF (tracer) THEN 438 435 CALL initracer(ngrid,nq,qsurf)
Note: See TracChangeset
for help on using the changeset viewer.