Changeset 1470 for trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat
- Timestamp:
- Sep 16, 2015, 1:00:04 PM (9 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/datareadnc.F
r1422 r1470 42 42 c======================================================================= 43 43 44 use datafile_mod, only: datadir 44 use datafile_mod, only: datadir, surfdir 45 45 ! to use 'getin' 46 46 USE ioipsl_getincom … … 94 94 CHARACTER*20 string 95 95 DIMENSION string(4) 96 97 96 !#include "fxyprim.h" 98 97 … … 106 105 c Lecture NetCDF des donnees latitude et longitude 107 106 c----------------------------------------------------------------------- 108 ierr = NF_OPEN (trim(datadir)//'/'//trim(adjustl(filename)), 109 & NF_NOWRITE,unit) 107 ierr = NF_OPEN (trim(datadir)//'/'//trim(surfdir)//'/'// 108 & trim(adjustl(filename)), 109 & NF_NOWRITE,unit) 110 IF (ierr.NE.NF_NOERR) THEN 111 ! In ye old days this file was stored in datadir; 112 ! let's be retro-compatible 113 ierr = NF_OPEN (trim(datadir)//'/'// 114 & trim(adjustl(filename)), 115 & NF_NOWRITE,unit) 116 117 ENDIF 110 118 IF (ierr.NE.NF_NOERR) THEN 111 119 write(*,*)'Error : cannot open file '//trim(filename) 112 120 write(*,*)'(in phystd/datareadnc.F)' 113 write(*,*)'It should be in :',trim(datadir),'/' 121 write(*,*)'It should be in :',trim(datadir),'/',trim(surfdir) 114 122 write(*,*)'Check that your path to datagcm:',trim(datadir) 115 123 write(*,*)' is correct. You can change it in callphys.def with:' … … 117 125 write(*,*)'If necessary surface.nc (and other datafiles)' 118 126 write(*,*)' can be obtained online on:' 119 write(*,*)' http://www.lmd.jussieu.fr/~forget/datagcm/datafile' 127 write(*,*)' http://www.lmd.jussieu.fr/~lmdz/planets/'// 128 & 'LMDZ.GENERIC/datagcm/' 120 129 STOP 121 130 ENDIF -
trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/newstart.F
r1422 r1470 21 21 & zmea, zstd, zsig, zgam, zthe 22 22 USE comgeomfi_h, ONLY: lati, long, area 23 use datafile_mod, only: datadir 23 use datafile_mod, only: datadir, surfdir 24 24 ! to use 'getin' 25 25 ! USE ioipsl_getincom, only: getin … … 498 498 call getin_p("datadir",datadir) 499 499 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' 501 506 call system(filestring) 502 507
Note: See TracChangeset
for help on using the changeset viewer.