Ignore:
Timestamp:
Apr 8, 2016, 10:55:28 AM (9 years ago)
Author:
emillour
Message:

Generic GCM:

  • Adapted rcm1d.F so that it also runs when compiled from LMDZ.COMMON.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F

    r1533 r1536  
    1313      USE comgeomfi_h, only: lati, long, area
    1414      use phyredem, only: physdem0,physdem1
    15       use comgeomphy, only: initcomgeomphy
     15      use comgeomphy, only: initcomgeomphy, airephy
    1616      use slab_ice_h, only: noceanmx
    1717      use planete_mod, only: apoastr,periastr,year_day,peri_day,
     
    140140c=======================================================================
    141141! initialize "serial/parallel" related stuff
    142       CALL init_phys_lmdz(iim,jjm+1,llm,1,(/(jjm-1)*iim+2/))
     142!      CALL init_phys_lmdz(iim,jjm+1,llm,1,(/(jjm-1)*iim+2/))
     143      CALL init_phys_lmdz(1,1,llm,1,(/1/))
    143144      call initcomgeomphy
    144145
     
    237238! OK. now that run.def has been read once -- any variable is in memory.
    238239! so we can dump the dummy run.def
    239       call system("rm -rf run.def")
     240!      call system("rm -rf run.def") ! Ehouarn: delay this to after inifis
    240241
    241242! while we're at it, check if there is a 'traceur.def' file
     
    330331     !!! AREA. useless in 1D
    331332      area(1)=1.E+0
    332       aire(1)=area(1) !JL+EM to have access to the area in the diagfi.nc files. area in comgeomfi.h and aire in comgeom.h
     333      airephy(1)=area(1) !JL+EM to have access to the area in the diagfi.nc files. area in comgeomfi.h and aire in comgeom.h
    333334     !!! GEOPOTENTIAL. useless in 1D because control by surface pressure
    334335      phisfi(1)=0.E+0
     
    516517      CALL inifis(1,llm,nq,day0,daysec,nday,dtphys,
    517518     .            latitude,longitude,area,rad,g,r,cpp)
     519
     520! At this point, both getin() and getin_p() functions have been used,
     521! and the run.def file can be removed.
     522      call system("rm -rf run.def")
     523
    518524!!! We check everything is OK.
    519525      PRINT *,"CHECK"
     
    635641      write(*,*) " v = ",grv
    636642
     643! To be clean, also set vertical winds to zero
     644      w(1:nlayer)=0
     645
    637646c     Initialisation des vents  au premier pas de temps
    638647      DO ilayer=1,nlayer
Note: See TracChangeset for help on using the changeset viewer.