Changeset 1918 for trunk/LMDZ.MARS/libf/dynlonlat_phylonlat
- Timestamp:
- Apr 12, 2018, 8:35:48 AM (7 years ago)
- Location:
- trunk/LMDZ.MARS/libf/dynlonlat_phylonlat/phymars
- Files:
-
- 2 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 -
trunk/LMDZ.MARS/libf/dynlonlat_phylonlat/phymars/newstart.F
r1711 r1918 51 51 #include "clesph0.h" 52 52 #include "netcdf.inc" 53 #include "datafile.h"54 53 c======================================================================= 55 54 c Declarations … … 1680 1679 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1681 1680 subroutine load_MONS_data(MONS_Hdn,MONS_d21) 1681 1682 use datafile_mod, only:datadir 1683 1682 1684 implicit none 1683 1685 ! routine to load Benedicte Diez MONS dataset, fill in date in southern 1684 1686 ! polar region, and interpolate the result onto the GCM grid 1685 #include"dimensions.h" 1686 #include"paramet.h" 1687 #include"datafile.h" 1688 #include"comgeom.h" 1687 include"dimensions.h" 1688 include"paramet.h" 1689 include"comgeom.h" 1689 1690 ! arguments: 1690 1691 real,intent(out) :: MONS_Hdn(iip1,jjp1) ! Hdn: %WEH=Mass fraction of H2O … … 1715 1716 1716 1717 ! Open MONS datafile: 1717 open(42,file=trim(data file)//"/"//trim(filename),1718 open(42,file=trim(datadir)//"/"//trim(filename), 1718 1719 & status="old",iostat=ierr) 1719 1720 if (ierr/=0) then 1720 1721 write(*,*) "Error in load_MONS_data:" 1721 1722 write(*,*) "Failed opening file ", 1722 & trim(datafile)//"/"//trim(filename) 1723 write(*,*)'1) You can change the path to the file in ' 1724 write(*,*)' file phymars/datafile.h' 1723 & trim(datadir)//"/"//trim(filename) 1724 write(*,*)'1) You can change this directory address in ', 1725 & 'callfis.def with' 1726 write(*,*)' datadir=/path/to/datafiles' 1725 1727 write(*,*)'2) If necessary ',trim(filename), 1726 1728 & ' (and other datafiles)'
Note: See TracChangeset
for help on using the changeset viewer.