Ignore:
Timestamp:
Sep 16, 2015, 1:00:04 PM (9 years ago)
Author:
emillour
Message:

Generic GCM:

  • reorganizing the "datadir" structure: aerosol properties should now be in subdirectory 'aerosol_properties' of datadir, and surface.nc files should be in subdirectory 'surface_data'. These subdirectory names are stored in module datafile_mod.
  • Made things retro-compatible so that using an 'old' datadir structure (ie. aerosol properties files and surface files in datadir) still works.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/newstart.F

    r1422 r1470  
    2121     &                     zmea, zstd, zsig, zgam, zthe
    2222      USE comgeomfi_h, ONLY: lati, long, area
    23       use datafile_mod, only: datadir
     23      use datafile_mod, only: datadir, surfdir
    2424! to use  'getin'
    2525!      USE ioipsl_getincom, only: getin
     
    498498        call getin_p("datadir",datadir)
    499499        write(*,*) 'Available surface data files are:'
    500         filestring='ls '//trim(datadir)//' | grep .nc'
     500        filestring='ls '//trim(datadir)//'/'//
     501     &                    trim(surfdir)//' | grep .nc'
     502        call system(filestring)
     503        ! but in ye old days these files were in datadir, so scan it as well
     504        ! for the sake of retro-compatibility
     505        filestring='ls '//trim(datadir)//'/'//' | grep .nc'
    501506        call system(filestring)
    502507
Note: See TracChangeset for help on using the changeset viewer.