Changeset 2108


Ignore:
Timestamp:
Mar 4, 2019, 9:57:40 AM (6 years ago)
Author:
emillour
Message:

Follow-up of r2016 commit of nogcm main program: adapt leapfrog_gcm so that it does not explicitely depend on "phymars" and thus causes compilation issues when using other physics packages.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3d/leapfrog_nogcm.F

    r2106 r2108  
    1212      use IOIPSL
    1313#endif
    14       USE infotrac, ONLY: nqtot,ok_iso_verif
     14      USE infotrac, ONLY: nqtot,ok_iso_verif,tname
    1515      USE guide_mod, ONLY : guide_main
    1616      USE write_field, ONLY: writefield
     
    2121     &                       ok_dyn_ins,output_grads_dyn
    2222      use exner_hyb_m, only: exner_hyb
    23       use surfdat_h, only: co2ice
    2423      use exner_milieu_m, only: exner_milieu
    2524      use cpdet_mod, only: cpdet,tpot2t,t2tpot
     
    2928     &                   aps,bps,presnivs,pseudoalt,preff,scaleheight
    3029      USE comconst_mod, ONLY: daysec,dtvr,dtphys,dtdiss,
    31      .                  cpp,ihf,iflag_top_bound,pi,kappa
     30     .                  cpp,ihf,iflag_top_bound,pi,kappa,r
    3231      USE logic_mod, ONLY: iflag_phys,ok_guide,forward,leapf,apphys,
    3332     .                  statcl,conser,purmats,tidal,ok_strato
    3433      USE temps_mod, ONLY: jD_ref,jH_ref,itaufin,day_ini,day_ref,
    3534     .                  start_time,dt
    36       USE comcstfi_h, ONLY: r,g
    37       USE tracer_mod, ONLY: igcm_co2
    3835
    3936
     
    246243      real :: co2mass(iip1,jjp1)
    247244      real :: co2ice_ij(iip1,jjp1)
     245      integer,save :: igcm_co2=0 ! index of CO2 tracer (if any)
    248246      integer :: i,j,ig
    249247      integer, parameter :: ngrid = 2+(jjm-1)*iim
     
    346344! ED18 TEST
    347345!      PRINT*,'igcm_co2 = ',igcm_co2
     346! Locate tracer "co2" and set igcm_co2:
     347      do iq=1,nqtot
     348        if (tname(iq)=="co2") then
     349          igcm_co2=iq
     350          exit
     351        endif
     352      enddo
    348353
    349354c-----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.