Changeset 877 for codes/icosagcm/devel/Python/src/kernels_caldyn_hydro.jin
- Timestamp:
- 05/29/19 11:16:16 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/src/kernels_caldyn_hydro.jin
r836 r877 93 93 END_BLOCK 94 94 95 KERNEL(caldyn_slow_hydro)96 FORALL_CELLS_EXT()97 ON_EDGES98 uu = .5*(rhodz(CELL1)+rhodz(CELL2))*u(EDGE)99 hflux(EDGE) = uu*LE_DE100 END_BLOCK101 END_BLOCK102 103 FORALL_CELLS()104 ON_PRIMAL105 ke=0.d0106 FORALL_EDGES107 ke = ke + LE_DE*u(EDGE)**2108 END_BLOCK109 BERNI(CELL)=ke*(.25/AI)110 END_BLOCK111 END_BLOCK112 IF(zero) THEN113 FORALL_CELLS()114 ON_EDGES115 du(EDGE) = SIGN*(berni(CELL1)-berni(CELL2)) ! minus gradient116 END_BLOCK117 END_BLOCK118 ELSE119 FORALL_CELLS()120 ON_EDGES121 du(EDGE) = du(EDGE) + SIGN*(berni(CELL1)-berni(CELL2)) ! minus gradient122 END_BLOCK123 END_BLOCK124 END IF125 126 END_BLOCK
Note: See TracChangeset
for help on using the changeset viewer.