Changeset 1904 for trunk/LMDZ.TITAN/libf/dynphy_lonlat
- Timestamp:
- Feb 25, 2018, 7:44:55 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/vert_regrid_kim.F90
r1903 r1904 77 77 ENDDO 78 78 ! mass -> molar mixing ratio to be comparable to ykim_up later 79 avg_qtop(ichem,:)=avg_qtop(ichem,:) *rat_mmol(chimi_indx(ichem))79 avg_qtop(ichem,:)=avg_qtop(ichem,:)/rat_mmol(chimi_indx(ichem)) 80 80 ENDDO 81 82 avg_qtop(:,:) = avg_qtop(:,:) / real(iim) 81 83 82 84 ENDIF … … 150 152 ! so we deal with mono-gridpoints for North and South Poles 151 153 152 q(:,1,ilay,chimi_indx(ichem)) = (1.0-coef)*ykim_up(ichem,1,1) /rat_mmol(chimi_indx(ichem)) &154 q(:,1,ilay,chimi_indx(ichem)) = (1.0-coef)*ykim_up(ichem,1,1)*rat_mmol(chimi_indx(ichem)) & 153 155 + coef*q(:,1,isup,chimi_indx(ichem)) 154 q(:,jjm+1,ilay,chimi_indx(ichem)) = (1.0-coef)*ykim_up(ichem,ngridmx,1) /rat_mmol(chimi_indx(ichem)) &156 q(:,jjm+1,ilay,chimi_indx(ichem)) = (1.0-coef)*ykim_up(ichem,ngridmx,1)*rat_mmol(chimi_indx(ichem)) & 155 157 + coef*q(:,jjm+1,isup,chimi_indx(ichem)) 156 158 … … 161 163 DO ilon=2,iim 162 164 ! ykim_up and q are shifted one to the other on longitudinal grid 163 ykimlon = 0.5*(ykim_up(ichem,ng0+ilon-1,1)+ykim_up(ichem,ng0+ilon,1)) /rat_mmol(chimi_indx(ichem))165 ykimlon = 0.5*(ykim_up(ichem,ng0+ilon-1,1)+ykim_up(ichem,ng0+ilon,1)) * rat_mmol(chimi_indx(ichem)) 164 166 165 167 q(ilon,ilat,ilay,chimi_indx(ichem)) = (1.0-coef)*ykimlon + coef*q(ilon,ilat,isup,chimi_indx(ichem)) … … 168 170 ! Periodicity on longitude at 180 and -180 169 171 170 ykimlon = 0.5*(ykim_up(ichem,ng0+1,1)+ykim_up(ichem,ng0+iim,1)) /rat_mmol(chimi_indx(ichem))172 ykimlon = 0.5*(ykim_up(ichem,ng0+1,1)+ykim_up(ichem,ng0+iim,1)) * rat_mmol(chimi_indx(ichem)) 171 173 172 174 q(1,ilat,ilay,chimi_indx(ichem)) = (1.0-coef)*ykimlon + coef*q(1,ilat,isup,chimi_indx(ichem))
Note: See TracChangeset
for help on using the changeset viewer.