Changeset 2502 for palm/trunk
- Timestamp:
- Sep 26, 2017 3:51:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_ocean.f90
r2195 r2502 21 21 ! ----------------- 22 22 ! 23 ! 23 ! 24 24 ! Former revisions: 25 25 ! ------------------ 26 26 ! $Id$ 27 ! Bugfix: use equation of state for seawater to calculate rho_ocean_init at nzt 28 ! 29 ! 2195 2017-03-23 08:15:17Z raasch 27 30 ! 28 31 ! 2194 2017-03-23 08:03:04Z raasch … … 126 129 rho_reference = rho_surface * 0.5_wp * dzu(nzt+1) 127 130 128 DO k = nzt -1, 0, -1131 DO k = nzt, 0, -1 129 132 130 133 sa_l = 0.5_wp * ( sa_init(k) + sa_init(k+1) ) … … 139 142 rho_reference = rho_reference / ( zw(nzt) - zu(nzb) ) 140 143 141 DO k = nzt -1, 0, -1142 hyp(k) = hyp(k+1) + g * 0.5_wp * ( rho_ocean_init(k) + rho_ocean_init(k+1 ) ) *&143 dzu(k+1)144 DO k = nzt, 0, -1 145 hyp(k) = hyp(k+1) + g * 0.5_wp * ( rho_ocean_init(k) & 146 + rho_ocean_init(k+1) ) * dzu(k+1) 144 147 ENDDO 145 148
Note: See TracChangeset
for help on using the changeset viewer.