Changeset 878 for codes/icosagcm/devel/Python/src/kernels_caldyn_hevi.jin
- Timestamp:
- 05/29/19 20:33:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/src/kernels_caldyn_hevi.jin
r876 r878 96 96 END_BLOCK 97 97 98 KERNEL(theta)99 IF(caldyn_eta==eta_mass) THEN ! Compute mass100 ! FIXME : here mass_col is computed from rhodz101 ! so that the DOFs are the same whatever caldyn_eta102 ! in DYNAMICO mass_col is prognosed rather than rhodz103 SEQUENCE_C1104 PROLOGUE(0)105 mass_col(HIDX(CELL))=0.106 END_BLOCK107 BODY('1,llm')108 mass_col(HIDX(CELL)) = mass_col(HIDX(CELL)) + rhodz(CELL)109 END_BLOCK110 END_BLOCK111 FORALL_CELLS_EXT()112 ON_PRIMAL113 ! FIXME : formula below (used in DYNAMICO) is for dak, dbk based on pressure rather than mass114 ! m = mass_dak(CELL)+(mass_col(HIDX(CELL))*g+ptop)*mass_dbk(CELL)115 ! rhodz(CELL) = m/g116 rhodz(CELL) = mass_dak(CELL) + mass_col(HIDX(CELL))*mass_dbk(CELL)117 END_BLOCK118 END_BLOCK119 END IF120 DO iq=1,nqdyn121 FORALL_CELLS_EXT()122 ON_PRIMAL123 theta(CELL,iq) = theta_rhodz(CELL,iq)/rhodz(CELL)124 END_BLOCK125 END_BLOCK126 END DO127 END_BLOCK128 98
Note: See TracChangeset
for help on using the changeset viewer.