Changeset 1470 for trunk/LMDZ.GENERIC/libf/phystd
- Timestamp:
- Sep 16, 2015, 1:00:04 PM (9 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/datafile_mod.F90
r716 r1470 1 1 !----------------------------------------------------------------------- 2 2 module datafile_mod 3 ! Address of the directory containing tables of data needed by the UCM3 ! Address of the directory containing tables of data needed by the GCM 4 4 implicit none 5 5 6 ! Main directory: 'datadir': 6 7 ! Default for Berserker @ UChicago: 7 8 ! character(len=300) :: datadir='/home/rwordsworth/datagcm' … … 9 10 ! character(len=300) :: datadir='/san/home/rdword/gcm/datagcm' 10 11 ! Default for LMD machines: 11 character(len=300) :: datadir='/u/rwlmd/datagcm' 12 character(len=300) :: datadir='/u/lmdz/WWW/planets/LMDZ.GENERIC/datagcm' 13 14 ! Subdirectories of 'datadir': 15 16 ! surfdir stores planetary topography, albedo, etc. (surface.nc files) 17 character(len=12),parameter :: surfdir="surface_data" 18 19 ! aerdir stores aerosol properties files (optprop_*dat files) 20 character(LEN=18),parameter :: aerdir="aerosol_properties" 12 21 13 22 end module datafile_mod -
trunk/LMDZ.GENERIC/libf/phystd/suaer_corrk.F90
r1397 r1470 4 4 use radinc_h, only: L_NSPECTI,L_NSPECTV,nsizemax,iim,jjm,naerkind 5 5 use radcommon_h, only: blamv,blami,lamrefir,lamrefvis 6 use datafile_mod, only: datadir 6 use datafile_mod, only: datadir, aerdir 7 7 8 8 ! outputs … … 205 205 206 206 !$OMP MASTER 207 INQUIRE(FILE=TRIM(datadir)//& 208 '/'//TRIM(file_id(iaer,idomain)),& 209 EXIST=file_ok) 207 INQUIRE(FILE=TRIM(datadir)//'/'//TRIM(aerdir)//& 208 '/'//TRIM(file_id(iaer,idomain)),& 209 EXIST=file_ok) 210 IF (file_ok) THEN 211 OPEN(UNIT=file_unit,& 212 FILE=TRIM(datadir)//'/'//TRIM(aerdir)//& 213 '/'//TRIM(file_id(iaer,idomain)),& 214 FORM='formatted') 215 ELSE 216 ! In ye old days these files were stored in datadir; 217 ! let's be retro-compatible 218 INQUIRE(FILE=TRIM(datadir)//& 219 '/'//TRIM(file_id(iaer,idomain)),& 220 EXIST=file_ok) 221 IF (file_ok) THEN 222 OPEN(UNIT=file_unit,& 223 FILE=TRIM(datadir)//& 224 '/'//TRIM(file_id(iaer,idomain)),& 225 FORM='formatted') 226 ENDIF 227 ENDIF 210 228 IF(.NOT.file_ok) THEN 211 229 write(*,*)'suaer_corrk: Problem opening ',& 212 230 TRIM(file_id(iaer,idomain)) 213 write(*,*)'It should be in: ',TRIM(datadir) 231 write(*,*)'It should be in: ',TRIM(datadir)//'/'//TRIM(aerdir) 214 232 write(*,*)'1) You can set this directory address ',& 215 233 'in callphys.def with:' … … 220 238 write(*,*)' can be obtained online at:' 221 239 write(*,*)' http://www.lmd.jussieu.fr/',& 222 '~ forget/datagcm/datafile'240 '~lmdz/planets/LMDZ.GENERIC/datagcm/' 223 241 CALL ABORT 224 242 ENDIF 225 OPEN(UNIT=file_unit,&226 FILE=TRIM(datadir)//&227 '/'//TRIM(file_id(iaer,idomain)),&228 FORM='formatted')229 243 230 244 ! 1.2 Allocate the optical property table
Note: See TracChangeset
for help on using the changeset viewer.