Changeset 2821 for trunk/LMDZ.GENERIC
- Timestamp:
- Nov 17, 2022, 3:42:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/tpindex.F
r2582 r2821 83 83 ! Get the upper and lower temperature grid indicies that bound the 84 84 ! requested temperature. If the sought temperature is below 85 ! the T-grid minimum, assume that lower value. If the sought te perature86 ! is above the T-grid maximum, extrapolate.85 ! the T-grid minimum, assume that lower value. If the sought temperature 86 ! is above the T-grid maximum, assume that maximum value. 87 87 ! TW : temperature to interpolate to 88 88 ! TREF : reference temperature array … … 96 96 MT = 1 97 97 TWL=TREF(1)*1.00 98 write(*,*) 'tpindex: Caution! Temperature of upper levels lower99 $ than ref temperature for k-coef: k-coeff fixed for upper levels'100 write(*,*) " TW=",TWL101 write(*,*) " TREF(1)=",TREF(1)102 98 ELSEIF(TWL.GE.TREF(L_NTREF)) THEN 103 99 ! Above highest tabulated temperature 104 MT = L_NTREF-1 100 MT=L_NTREF-1 101 TWL = TREF(L_NTREF)*1.00 105 102 ELSE 106 103 ! Regular case, find encompassing tabulated temperatures … … 121 118 ! requested pressure. If the sought pressure is below 122 119 ! the P-grid minimum, assume that lower value. If the sought pressure 123 ! is above the P-grid maximum, extrapolate.120 ! is above the P-grid maximum, assume that maximum value. 124 121 125 122 PWL = log10(PW) … … 129 126 MP = 1 130 127 PWL=Pref(1)*1.00 131 write(*,*) 'tpindex: Caution! Pressure of upper levels lower132 $than ref pressure for k-coef: k-coeff fixed for upper levels'133 write(*,*) " PWL=",PWL134 write(*,*) " PREF(1)=",PREF(1)135 128 ELSEIF(PWL.GE.PREF(L_PINT)) THEN 136 129 ! Above highest tabulated pressure 137 130 MP = L_PINT-1 131 PWL = PREF(L_PINT) 138 132 ELSE 139 133 ! Regular case, find encompassing tabulated pressures
Note: See TracChangeset
for help on using the changeset viewer.