Changeset 1725 for trunk/LMDZ.TITAN/libf
- Timestamp:
- Jul 21, 2017, 5:30:44 PM (7 years ago)
- Location:
- trunk/LMDZ.TITAN/libf/phytitan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/optci.F90
r1722 r1725 74 74 75 75 real*8 KCOEF(4) 76 77 ! temporary variable to reduce memory access time to gasi 78 real*8 tmpk(2,2) 76 79 77 80 ! temporary variables for multiple aerosol calculation … … 216 219 ! Now compute TAUGAS 217 220 218 KCOEF(1) = GASI(MT(K),MP(K),1,NW,NG) 219 KCOEF(2) = GASI(MT(K),MP(K)+1,1,NW,NG) 220 KCOEF(3) = GASI(MT(K)+1,MP(K)+1,1,NW,NG) 221 KCOEF(4) = GASI(MT(K)+1,MP(K),1,NW,NG) 221 ! JVO 2017 : added tmpk because the repeated calls to gasi/v increased dramatically 222 ! the execution time of optci/v -> ~ factor 2 on the whole radiative 223 ! transfer on the tested simulations ! 224 225 tmpk = GASI(MT(K):MT(K)+1,MP(K):MP(K)+1,1,NW,NG) 226 227 KCOEF(1) = tmpk(1,1) ! KCOEF(1) = GASI(MT(K),MP(K),1,NW,NG) 228 KCOEF(2) = tmpk(1,2) ! KCOEF(2) = GASI(MT(K),MP(K)+1,1,NW,NG) 229 KCOEF(3) = tmpk(2,2) ! KCOEF(3) = GASI(MT(K)+1,MP(K)+1,1,NW,NG) 230 KCOEF(4) = tmpk(2,1) ! KCOEF(4) = GASI(MT(K)+1,MP(K),1,NW,NG) 231 222 232 223 233 ! Interpolate the gaseous k-coefficients to the requested T,P values -
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.