Changeset 374 for trunk/LMDZ.GENERIC/libf/phystd/setspv.F90
- Timestamp:
- Nov 10, 2011, 3:08:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/setspv.F90
r253 r374 26 26 use radcommon_h, only: BWNV,BLAMV,WNOV,DWNV,WAVEV, & 27 27 STELLARF,TAURAY,gastype 28 use datafile_mod, only: datadir 28 29 29 30 implicit none … … 31 32 #include "comcstfi.h" 32 33 #include "callkeys.h" 33 #include "datafile.h"34 34 35 35 logical file_ok … … 52 52 write(temp1,'(i2.2)') L_NSPECTV 53 53 file_id='/corrk_data/'//trim(adjustl(banddir))//'/narrowbands_VI.in' 54 file_path= datafile(1:LEN_TRIM(datafile))//file_id(1:LEN_TRIM(file_id))54 file_path=TRIM(datadir)//TRIM(file_id) 55 55 56 56 ! check that the file exists 57 57 inquire(FILE=file_path,EXIST=file_ok) 58 58 if(.not.file_ok) then 59 write(*,*)'The file ', file_path(1:LEN_TRIM(file_path))59 write(*,*)'The file ',TRIM(file_path) 60 60 write(*,*)'was not found by setspv.F90, exiting.' 61 write(*,*)'Check that your path to datagcm:',trim(datadir) 62 write(*,*)' is correct. You can change it in callphys.def with:' 63 write(*,*)' datadir = /absolute/path/to/datagcm' 64 write(*,*)'Also check that the corrkdir you chose in callphys.def exists.' 61 65 call abort 62 66 endif … … 70 74 71 75 if(file_entries-1.ne.L_NSPECTV) then 72 write(*,*) ' L_NSPECTV = ',L_NSPECTV, 'in the model, but there are '76 write(*,*) 'setspv: L_NSPECTV = ',L_NSPECTV, 'in the model, but there are ' 73 77 write(*,*) file_entries-1,'entries in ', & 74 file_path(1:LEN_TRIM(file_path)),', exiting.'78 TRIM(file_path),', exiting.' 75 79 call abort 76 80 endif … … 88 92 89 93 90 print*,' VI band limits:'94 print*,'setspv: VI band limits:' 91 95 do M=1,L_NSPECTV+1 92 96 print*,m,'-->',BWNV(M),' cm^-1' … … 109 113 ! Set up stellar spectrum 110 114 111 write(*,*)' Interpolating stellar spectrum from the hires data...'115 write(*,*)'setspv: Interpolating stellar spectrum from the hires data...' 112 116 call ave_stelspec(STELLAR) 113 117 … … 118 122 sum = sum+STELLARF(N) 119 123 end do 120 write(6,'(" Stellar flux at 1 AU = ",f7.2," W m-2")') sum124 write(6,'("setspv: Stellar flux at 1 AU = ",f7.2," W m-2")') sum 121 125 print*,' ' 122 126 … … 130 134 call calc_rayleigh 131 135 else 132 print*,' No Rayleigh scattering, check for NaN in output!'136 print*,'setspv: No Rayleigh scattering, check for NaN in output!' 133 137 do N=1,L_NSPECTV 134 138 TAURAY(N) = 1E-16
Note: See TracChangeset
for help on using the changeset viewer.