Changeset 687 for codes/icosagcm/devel/Python/src/kernels_transport.jin
- Timestamp:
- 03/08/18 13:05:02 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/src/kernels_transport.jin
r685 r687 234 234 rhodz_cum(CELL)=0. 235 235 cur_lev(HIDX(CELL))=1 236 eta(CELL)= 0.236 eta(CELL)=1. 237 237 new_rhodz_cum(HIDX(CELL))=0. 238 238 END_BLOCK … … 252 252 IF(rhodz_cum_target<=rhodz_cum_levp1) EXIT 253 253 END DO 254 IF(level>llm) level=llm 254 255 rhodz_cum_lev = rhodz_cum(AT_LEVEL(CELL,level)) 255 256 ! now rhodz_cum_lev <= rhodz_cum_target <= rhodz_cum_levp1 … … 275 276 BODY('1,llm+1') 276 277 X = eta(CELL) 277 level = FLOOR(X)278 level = MIN(llm,FLOOR(X)) ! eta=llm+1 => level=llm, X=1 278 279 X = X-level 279 280 new_thetarhodz_cum(CELL) = thetarhodz_cum(AT_LEVEL(CELL,level))+X*thetarhodz(AT_LEVEL(CELL,level)) 280 281 END_BLOCK 281 282 BODY('1,llm') 282 thetarhodz(CELL) )= new_thetarhodz_cum(UP(CELL)) - new_thetarhodz_cum(CELL)283 thetarhodz(CELL) = new_thetarhodz_cum(UP(CELL)) - new_thetarhodz_cum(CELL) 283 284 END_BLOCK 284 285 END_BLOCK … … 300 301 BODY('1,llm+1') 301 302 X = .5*(eta(CELL1)+eta(CELL2)) 302 level = FLOOR(X)303 level = MIN(llm,FLOOR(X)) 303 304 X = X-level 304 305 new_urhodz_cum(EDGE) = urhodz_cum(AT_LEVEL(EDGE,level))+X*urhodz(AT_LEVEL(EDGE,level))
Note: See TracChangeset
for help on using the changeset viewer.