Changeset 1918 for trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Timestamp:
- Apr 12, 2018, 8:35:48 AM (7 years ago)
- Location:
- trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/datareadnc.F
r1422 r1918 42 42 c======================================================================= 43 43 44 ! to use 'getin' 45 use ioipsl_getincom 44 use ioipsl_getincom, only: getin 46 45 USE comconst_mod, ONLY: g,pi 46 use datafile_mod, only: datadir 47 47 48 48 implicit none 49 49 50 #include "dimensions.h" 51 #include "paramet.h" 52 #include "comgeom.h" 53 #include "netcdf.inc" 54 #include "datafile.h" 50 include "dimensions.h" 51 include "paramet.h" 52 include "comgeom.h" 53 include "netcdf.inc" 55 54 56 55 c======================================================================= … … 113 112 write(*,*) 'datareadnc: opening file surface.nc' 114 113 115 data file="/u/lmdz/WWW/planets/mars/datadir" ! default path to surface.nc116 call getin("datadir",data file) ! but users may specify another path114 datadir="/u/lmdz/WWW/planets/mars/datadir" ! default path to surface.nc 115 call getin("datadir",datadir) ! but users may specify another path 117 116 118 ierr = NF_OPEN (trim(data file)//'/surface.nc',117 ierr = NF_OPEN (trim(datadir)//'/surface.nc', 119 118 & NF_NOWRITE,unit) 120 119 IF (ierr.NE.NF_NOERR) THEN 121 120 write(*,*)'Error : cannot open file surface.nc ' 122 121 write(*,*)'(in phymars/datareadnc.F)' 123 write(*,*)'It should be in :',trim(data file),'/'122 write(*,*)'It should be in :',trim(datadir),'/' 124 123 write(*,*)'1) You can set this path in the 125 124 & callphys.def file:' … … 210 209 if (ierr.ne.nf_noerr) then 211 210 write(*,*) 'datareadnc error, cannot find ',trim(string(k)) 212 write(*,*) ' in file ',trim(data file),'/surface.nc'211 write(*,*) ' in file ',trim(datadir),'/surface.nc' 213 212 stop 214 213 endif -
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/newstart.F
r1711 r1918 53 53 include "clesph0.h" 54 54 include "netcdf.inc" 55 include "datafile.h"56 55 c======================================================================= 57 56 c Declarations … … 1662 1661 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1663 1662 subroutine load_MONS_data(MONS_Hdn,MONS_d21) 1663 1664 use datafile_mod, only:datadir 1665 1664 1666 implicit none 1665 1667 ! routine to load Benedicte Diez MONS dataset, fill in date in southern 1666 1668 ! polar region, and interpolate the result onto the GCM grid 1667 #include"dimensions.h" 1668 #include"paramet.h" 1669 #include"datafile.h" 1670 #include"comgeom.h" 1669 include"dimensions.h" 1670 include"paramet.h" 1671 include"comgeom.h" 1671 1672 ! arguments: 1672 1673 real,intent(out) :: MONS_Hdn(iip1,jjp1) ! Hdn: %WEH=Mass fraction of H2O … … 1697 1698 1698 1699 ! Open MONS datafile: 1699 open(42,file=trim(data file)//"/"//trim(filename),1700 open(42,file=trim(datadir)//"/"//trim(filename), 1700 1701 & status="old",iostat=ierr) 1701 1702 if (ierr/=0) then 1702 1703 write(*,*) "Error in load_MONS_data:" 1703 1704 write(*,*) "Failed opening file ", 1704 & trim(datafile)//"/"//trim(filename) 1705 write(*,*)'1) You can change the path to the file in ' 1706 write(*,*)' file phymars/datafile.h' 1705 & trim(datadir)//"/"//trim(filename) 1706 write(*,*)'1) You can change this directory address in ', 1707 & 'callfis.def with' 1708 write(*,*)' datadir=/path/to/datafiles' 1707 1709 write(*,*)'2) If necessary ',trim(filename), 1708 1710 & ' (and other datafiles)'
Note: See TracChangeset
for help on using the changeset viewer.