- Timestamp:
- Apr 12, 2018, 8:35:48 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dynlonlat_phylonlat/phymars/datareadnc.F
r1422 r1918 45 45 use ioipsl_getincom 46 46 USE comconst_mod, ONLY: g,pi 47 use datafile_mod, only: datadir 47 48 48 49 implicit none 49 50 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" 55 55 56 56 c======================================================================= … … 113 113 write(*,*) 'datareadnc: opening file surface.nc' 114 114 115 data file="/u/lmdz/WWW/planets/mars/datadir" ! default path to surface.nc116 call getin("datadir",data file) ! but users may specify another path115 datadir="/u/lmdz/WWW/planets/mars/datadir" ! default path to surface.nc 116 call getin("datadir",datadir) ! but users may specify another path 117 117 118 ierr = NF_OPEN (trim(data file)//'/surface.nc',118 ierr = NF_OPEN (trim(datadir)//'/surface.nc', 119 119 & NF_NOWRITE,unit) 120 120 IF (ierr.NE.NF_NOERR) THEN 121 121 write(*,*)'Error : cannot open file surface.nc ' 122 122 write(*,*)'(in phymars/datareadnc.F)' 123 write(*,*)'It should be in :',trim(data file),'/'123 write(*,*)'It should be in :',trim(datadir),'/' 124 124 write(*,*)'1) You can set this path in the 125 125 & callphys.def file:' … … 210 210 if (ierr.ne.nf_noerr) then 211 211 write(*,*) 'datareadnc error, cannot find ',trim(string(k)) 212 write(*,*) ' in file ',trim(data file),'/surface.nc'212 write(*,*) ' in file ',trim(datadir),'/surface.nc' 213 213 stop 214 214 endif
Note: See TracChangeset
for help on using the changeset viewer.