Ignore:
Timestamp:
Apr 12, 2018, 8:35:48 AM (7 years ago)
Author:
emillour
Message:

Mars GCM:
Code cleanup:

  • remove "comorbit.h" since it is no longer used.
  • turn "datafile.h" into module datafile_mod.F90 (and rename variable "datafile" as "datadir" since it stores the path to the datafile directory).

EM

File:
1 edited

Legend:

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

    r1422 r1918  
    4545       use ioipsl_getincom
    4646      USE comconst_mod, ONLY: g,pi
     47      use datafile_mod, only: datadir
    4748
    4849      implicit none
    4950
    50 #include "dimensions.h"
    51 #include "paramet.h"
    52 #include "comgeom.h"
    53 #include "netcdf.inc"
    54 #include "datafile.h"
     51      include "dimensions.h"
     52      include "paramet.h"
     53      include "comgeom.h"
     54      include "netcdf.inc"
    5555
    5656c=======================================================================
     
    113113      write(*,*) 'datareadnc: opening file surface.nc'
    114114
    115       datafile="/u/lmdz/WWW/planets/mars/datadir" ! default path to surface.nc
    116       call getin("datadir",datafile) ! but users may specify another path
     115      datadir="/u/lmdz/WWW/planets/mars/datadir" ! default path to surface.nc
     116      call getin("datadir",datadir) ! but users may specify another path
    117117     
    118       ierr = NF_OPEN (trim(datafile)//'/surface.nc',
     118      ierr = NF_OPEN (trim(datadir)//'/surface.nc',
    119119     &  NF_NOWRITE,unit)
    120120      IF (ierr.NE.NF_NOERR) THEN
    121121        write(*,*)'Error : cannot open file surface.nc '
    122122        write(*,*)'(in phymars/datareadnc.F)'
    123         write(*,*)'It should be in :',trim(datafile),'/'
     123        write(*,*)'It should be in :',trim(datadir),'/'
    124124        write(*,*)'1) You can set this path in the
    125125     & callphys.def file:'
     
    210210      if (ierr.ne.nf_noerr) then
    211211        write(*,*) 'datareadnc error, cannot find ',trim(string(k))
    212         write(*,*) ' in file ',trim(datafile),'/surface.nc'
     212        write(*,*) ' in file ',trim(datadir),'/surface.nc'
    213213        stop
    214214      endif
Note: See TracChangeset for help on using the changeset viewer.