Ignore:
Timestamp:
Apr 2, 2020, 5:45:44 PM (5 years ago)
Author:
emillour
Message:

Mars GCM:
Some code cleanup:

  • move profile.F to dyn1d since it is only used by the 1D model
  • remove scatter.F, which is not used (and moreover a synonym of the scatter routine from the "mod_phys_lmdz_para" module)
  • remove obsolete "multipl.F" routine, replace the calls to it in vdifc_mod by modern Fortran syntax.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/vdifc_mod.F

    r2260 r2274  
    444444c       et /zkv/ = Ku
    445445 
    446       CALL multipl((nlay-1)*ngrid,zkv(1,2),zb0(1,2),zb(1,2))
    447       CALL multipl(ngrid,zcdv,zb0,zb)
     446      zb(1:ngrid,2:nlay)=zkv(1:ngrid,2:nlay)*zb0(1:ngrid,2:nlay)
     447      zb(1:ngrid,1)=zcdv(1:ngrid)*zb0(1:ngrid,1)
    448448
    449449      DO ig=1,ngrid
     
    534534
    535535c Mass variation scheme:
    536       CALL multipl((nlay-1)*ngrid,zkh(1,2),zb0(1,2),zb(1,2))
    537       CALL multipl(ngrid,zcdh,zb0,zb)
     536      zb(1:ngrid,2:nlay)=zkh(1:ngrid,2:nlay)*zb0(1:ngrid,2:nlay)
     537      zb(1:ngrid,1)=zcdh(1:ngrid)*zb0(1:ngrid,1)
    538538
    539539c on initialise dm c
     
    784784c       --------------------------------
    785785        do iq=1,nq  !for all tracers including stormdust
    786           CALL multipl((nlay-1)*ngrid,zkh(1,2),zb0(1,2),zb(1,2))
     786          zb(1:ngrid,2:nlay)=zkh(1:ngrid,2:nlay)*zb0(1:ngrid,2:nlay)
    787787
    788788          if ((water).and.(iq.eq.igcm_h2o_vap)) then
    789789c            This line is required to account for turbulent transport
    790790c            from surface (e.g. ice) to mid-layer of atmosphere:
    791              CALL multipl(ngrid,zcdv,zb0,zb(1,1))
    792              CALL multipl(ngrid,dryness,zb(1,1),zb(1,1))
     791             zb(1:ngrid,1)=zcdv(1:ngrid)*zb0(1:ngrid,1)
     792             zb(1:ngrid,1)=dryness(1:ngrid)*zb(1:ngrid,1)
    793793          else ! (re)-initialize zb(:,1)
    794794             zb(1:ngrid,1)=0
Note: See TracChangeset for help on using the changeset viewer.