Changeset 1576 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Jul 27, 2016, 11:14:41 AM (9 years ago)
Author:
emillour
Message:

All models:
Clean up the dynamics/physics interface to converge with LMDZ5;
get rid of tracerdyn parameter (which was supposed to send information
about wether tracers should be advected or not in the Mars and Generic
models).
EM

Location:
trunk/LMDZ.MARS
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r1573 r1576  
    23122312package (directory phymars) must be done in the related phymars/iniphysiq
    23132313routine.
     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  
    11      PROGRAM gcm
    22
     3      use ioipsl_getincom, only: getin
    34      use infotrac, only: iniadvtrac, nqtot, iadv
    45      use control_mod, only: day_step, iperiod, iphysiq, ndynstep,
     
    129130      character*80 abort_message
    130131
    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     
    135135C Calendrier
    136136      LOGICAL true_calendar
     
    161161c-----------------------------------------------------------------------
    162162      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
    163168
    164169! Initialize tracers
     
    491496        CALL calfis( nqtot, lafin ,rdayvrai,rday_ecri,time  ,
    492497     $                 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)
    494499
    495500
  • trunk/LMDZ.MARS/libf/dynphy_lonlat/calfis.F

    r1549 r1576  
    22     $            pucov,pvcov,pteta,pq,pmasse,pps,pp,ppk,pphis,pphi,
    33     $            pducov,pdvcov,pdteta,pdq,pw,
    4      $            pdufi,pdvfi,pdhfi,pdqfi,pdpsfi,tracer )
     4     $            pdufi,pdvfi,pdhfi,pdqfi,pdpsfi )
    55c
    66c    Auteur :  P. Le Van, F. Hourdin
     
    5656c        pdtsfi         tendency for the surface temperature
    5757c
    58 c        tracer         Call tracer in  gcm.F ? (decided in callphys.def)
    59 c
    6058c=======================================================================
    6159c
     
    103101      REAL pdqfi(iip1,jjp1,llm,nq)
    104102      REAL pdpsfi(iip1,jjp1)
    105       logical tracer
    106103
    107104c    Local variables :
     
    437434     ,     flxwfi,
    438435C - sorties
    439      s     zdufi, zdvfi, zdtfi, zdqfi,zdpsrf,tracer)
     436     s     zdufi, zdvfi, zdtfi, zdqfi,zdpsrf)
    440437
    441438
  • trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/callphysiq_mod.F90

    r1549 r1576  
    1616                       zufi_omp,zvfi_omp,zrfi_omp,ztfi_omp,zqfi_omp,      &
    1717                       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)
    2019
    2120  USE control_mod, ONLY: planet_type
     
    5251  REAL,INTENT(OUT) :: zdqfi_omp(klon,llm,nqtot) ! tendency on tracers
    5352  REAL,INTENT(OUT) :: zdpsrf_omp(klon) ! tendency on surface pressure
    54   LOGICAL,INTENT(OUT) :: tracerdyn
    5553
    5654  ! Local variables
     
    8987              zdtfi_omp,      & ! pdt
    9088              zdqfi_omp,      & ! pdq
    91               zdpsrf_omp,     & ! pdpsrf
    92               tracerdyn)        ! tracerdyn (somewhat obsolete)
     89              zdpsrf_omp)       ! pdpsrf
    9390
    9491
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F

    r1550 r1576  
    109109      INTEGER ierr, aslun
    110110      REAL tmp1(0:nlayer),tmp2(0:nlayer)
    111       Logical  tracerdyn
    112111      integer :: nq=1 ! number of tracers
    113112      real :: latitude(1), longitude(1), cell_area(1)
     
    753752     ,     w,
    754753C - outputs
    755      s     du, dv, dtemp, dq,dpsurf,tracerdyn)
     754     s     du, dv, dtemp, dq,dpsurf)
    756755!      write(*,*) "testphys1d apres q", q(1,:)
    757756
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r1549 r1576  
    1212     $            ,pu,pv,pt,pq
    1313     $            ,flxw
    14      $            ,pdu,pdv,pdt,pdq,pdpsrf,tracerdyn)
     14     $            ,pdu,pdv,pdt,pdq,pdpsrf)
    1515
    1616      use tracer_mod, only: noms, mmol, igcm_co2, igcm_n2,
     
    146146c    pdq(ngrid,nlayer,nq)    |
    147147c    pdpsrf(ngrid)           |
    148 c    tracerdyn                 call tracer in dynamical part of GCM ?
    149148
    150149c
     
    191190      REAL,INTENT(out) :: pdq(ngrid,nlayer,nq) ! tracer tendencies (../kg/s)
    192191      REAL,INTENT(out) :: pdpsrf(ngrid) ! surface pressure tendency (Pa/s)
    193       LOGICAL,INTENT(out) :: tracerdyn ! signal to the dynamics to advect tracers or not
    194192
    195193
     
    434432c        initialize tracers
    435433c        ~~~~~~~~~~~~~~~~~~
    436          tracerdyn=tracer
    437434         IF (tracer) THEN
    438435            CALL initracer(ngrid,nq,qsurf)
Note: See TracChangeset for help on using the changeset viewer.