Changeset 1238 for trunk/LMDZ.MARS/libf/aeronomars
- Timestamp:
- May 7, 2014, 12:35:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/aeronomars/jthermcalc.F
r1119 r1238 158 158 limup=1.e26 159 159 160 ! Ehouarn: sanity check 161 ! test that auxcolinp in monotonously increasing from 1 to nlayermx 162 do j=1,nlayermx-1 163 if (auxcolinp(j).gt.auxcolinp(j+1)) then 164 !there is a problem 165 write(*,*) "jthermcalc error: " 166 write(*,*) "auxcolinp() not increasing with altitude index!" 167 write(*,*) "j=",j," auxcolinp(j)=",auxcolinp(j) 168 write(*,*) " auxcolinp(j+1)=",auxcolinp(j+1) 169 ! Quick fix: 170 if (j==1) then 171 auxcolinp(j)=auxcolinp(j+1)/2. 172 else 173 ! compute it as a geometric mean from encompassing values 174 auxcolinp(j)=sqrt(auxcolinp(j-1)*auxcolinp(j+1)) 175 endif 176 write(*,*) " Quick fixed to auxcolinp(j)=",auxcolinp(j) 177 endif 178 enddo 160 179 161 180 c Interpolations
Note: See TracChangeset
for help on using the changeset viewer.