Changeset 1725 for trunk/LMDZ.TITAN/libf/phytitan/optcv.F90
- Timestamp:
- Jul 21, 2017, 5:30:44 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/optcv.F90
r1722 r1725 83 83 84 84 real*8 KCOEF(4) 85 86 ! temporary variable to reduce memory access time to gasv 87 real*8 tmpk(2,2) 85 88 86 89 ! temporary variables for multiple aerosol calculation … … 233 236 ! Now compute TAUGAS 234 237 235 KCOEF(1) = GASV(MT(K),MP(K),1,NW,NG) 236 KCOEF(2) = GASV(MT(K),MP(K)+1,1,NW,NG) 237 KCOEF(3) = GASV(MT(K)+1,MP(K)+1,1,NW,NG) 238 KCOEF(4) = GASV(MT(K)+1,MP(K),1,NW,NG) 238 ! JVO 2017 : added tmpk because the repeated calls to gasi/v increased dramatically 239 ! the execution time of optci/v -> ~ factor 2 on the whole radiative 240 ! transfer on the tested simulations ! 241 242 tmpk = GASV(MT(K):MT(K)+1,MP(K):MP(K)+1,1,NW,NG) 243 244 KCOEF(1) = tmpk(1,1) ! KCOEF(1) = GASV(MT(K),MP(K),1,NW,NG) 245 KCOEF(2) = tmpk(1,2) ! KCOEF(2) = GASV(MT(K),MP(K)+1,1,NW,NG) 246 KCOEF(3) = tmpk(2,2) ! KCOEF(3) = GASV(MT(K)+1,MP(K)+1,1,NW,NG) 247 KCOEF(4) = tmpk(2,1) ! KCOEF(4) = GASV(MT(K)+1,MP(K),1,NW,NG) 239 248 240 249 ! Interpolate the gaseous k-coefficients to the requested T,P values
Note: See TracChangeset
for help on using the changeset viewer.