Changeset 989 for trunk/LMDZ.GENERIC/libf
- Timestamp:
- Jun 14, 2013, 9:17:44 AM (12 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/physiq.F90
r969 r989 1103 1103 enddo 1104 1104 dEtot=cpp*SUM(massarea(:,:)*(dtlscale(:,:)))/totarea 1105 if(isnan(dEtot)) then 1106 print*,'Nan in largescale, abort'1107 STOP1108 endif1105 ! if(isnan(dEtot)) then ! NB: isnan() is not a standard function... 1106 ! print*,'Nan in largescale, abort' 1107 ! STOP 1108 ! endif 1109 1109 print*,'In largescale atmospheric energy change =',dEtot,' W m-2' 1110 1110 -
trunk/LMDZ.GENERIC/libf/phystd/setspi.F90
r961 r989 33 33 logical file_ok 34 34 integer nw, nt, m, mm, file_entries 35 real*8 a, b, ans, y, bpa, bma, T 35 real*8 a, b, ans, y, bpa, bma, T, dummy 36 36 37 37 character(len=30) :: temp1 … … 48 48 49 49 !! used to count lines 50 integer :: nb= -1 !because first line is not an actual value50 integer :: nb=0 51 51 integer :: ierr=0 52 52 … … 94 94 ! check that the file contains the right number of bands 95 95 open(131,file=file_path,form='formatted') 96 read(131,*,iostat=ierr) file_entries 96 97 do while (ierr==0) 97 read(131,*,iostat=ierr) file_entries 98 read(131,*,iostat=ierr) dummy 99 ! write(*,*) 'setspi: file_entries:',dummy,'ierr=',ierr 98 100 if (ierr==0) nb=nb+1 99 101 enddo 100 102 close(131) 103 101 104 write(*,*) 'setspi: L_NSPECTI = ',L_NSPECTI, 'in the model ' 102 105 write(*,*) ' there are ',nb, 'entries in ',TRIM(file_path) -
trunk/LMDZ.GENERIC/libf/phystd/setspv.F90
r789 r989 44 44 45 45 real*8 STELLAR(L_NSPECTV) 46 real*8 sum 46 real*8 sum, dummy 47 47 48 48 !! used to count lines 49 integer :: nb= -1 !because first line is not an actual value49 integer :: nb=0 50 50 integer :: ierr=0 51 51 … … 72 72 ! check that the file contains the right number of bands 73 73 open(131,file=file_path,form='formatted') 74 read(131,*,iostat=ierr) file_entries 74 75 do while (ierr==0) 75 read(131,*,iostat=ierr) file_entries76 read(131,*,iostat=ierr) dummy 76 77 if (ierr==0) nb=nb+1 77 78 enddo 78 79 close(131) 80 79 81 write(*,*) 'setspv: L_NSPECTV = ',L_NSPECTV, 'in the model ' 80 82 write(*,*) ' there are ',nb, 'entries in ',TRIM(file_path) -
trunk/LMDZ.GENERIC/libf/phystd/watercommon_h.F90
r875 r989 61 61 else if (T.lt.Tmin) then 62 62 print*, "careful, T<Tmin in psat water" 63 psat = Pref_solid_liquid*Exp(r3sublimation*(Tmin-T_h2O_ice_liq)/(Tmin-Trefsublimation)) ! min psat 63 ! psat = Pref_solid_liquid*Exp(r3sublimation*(Tmin-T_h2O_ice_liq)/(Tmin-Trefsublimation)) ! min psat 64 ! Ehouarn: gfortran says: Error: Result of EXP underflows its kind, 65 ! so set psat to the smallest possible value instead 66 psat=tiny(psat) 64 67 else 65 68 psat = Pref_solid_liquid*Exp(r3sublimation*(T-T_h2O_ice_liq)/(T-Trefsublimation)) ! solid / vapour
Note: See TracChangeset
for help on using the changeset viewer.