Ignore:
Timestamp:
Oct 21, 2011, 10:20:46 AM (13 years ago)
Author:
emillour
Message:

Mars GCM:

  • Corrected small bug in newstart: initracer was not always used and thus some tracer indexes (igm_co2, igcm_h2o_vap,...) were not set. This however means that we now also call inifis from newstart and that we read in flags set in 'callphys.def' (required for sanity checks in initracer). Also adapted 'inichim_readcallphys': removed some obsolescent tests on number of tracers for given combinations of options.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/dyn3d/newstart.F

    r224 r321  
    347347      CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,aire,airefi)
    348348
     349! also initialize various physics flags/settings which might be needed
     350!    (for instance initracer needs to know about some flags, and/or
     351!      'datafile' path may be changed by user)
     352      call inifis(ngridmx,llm,day_ini,daysec,dtphys,
     353     &                latfi,lonfi,airefi,rad,g,r,cpp)
     354
    349355c=======================================================================
    350356c   lecture topographie, albedo, inertie thermique, relief sous-maille
     
    361367        relief="mola"
    362368c     enddo
    363 
    364 ! before using datareadnc, "datafile" must be set (normaly done in inifis)
    365       datafile="/u/forget/WWW/datagcm/datafile" ! default value
    366       call getin("datadir",datafile) ! in case user specified another path
    367369
    368370      CALL datareadnc(relief,phis,alb,surfith,z0S,
     
    457459        tnom(1:nqmx)=noms(1:nqmx)
    458460        write(*,*) 'Newstart: updated tracer names'
     461      else
     462       ! initialize tracer names and indexes (igcm_co2, igcm_h2o_vap, ...)
     463        call initracer(qsurf,co2ice)
    459464      endif
    460465
     
    883888          DO l=1,llm
    884889            DO j=1,jjp1
    885               DO i=1,iip1
     890              DO i=1,iip1-1
    886891                q(i,j,l,igcm_h2o_vap)=150.e-6 * (rlatu(j)+pi/2.) / pi
    887892              ENDDO
     893              ! We want to have the very same value at lon -180 and lon 180
     894              q(iip1,j,l,igcm_h2o_vap) = q(1,j,l,igcm_h2o_vap)
    888895            ENDDO
    889896          ENDDO
Note: See TracChangeset for help on using the changeset viewer.