Changeset 96 for palm/trunk/SOURCE/init_ocean.f90
- Timestamp:
- Jun 4, 2007 8:07:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_ocean.f90
r95 r96 8 8 ! Former revisions: 9 9 ! ------------------ 10 ! $Id :$10 ! $Id$ 11 11 ! 12 12 ! Initial revision (raasch 01/06/07) … … 37 37 ! 38 38 !-- Calculate initial vertical profile of hydrostatic pressure (in Pa) 39 !-- and the reference density (used later in buoyancy term) 39 40 hyp(nzt+1) = surface_pressure * 100.0 40 41 41 42 hyp(nzt) = hyp(nzt+1) + rho_surface * g * 0.5 * dzu(nzt+1) 43 rho_ref = rho_surface * 0.5 * dzu(nzt+1) 42 44 43 45 DO k = nzt-1, 0, -1 … … 46 48 pt_l = 0.5 * ( pt_init(k) + pt_init(k+1) ) 47 49 48 rho_l = eqn_state_seawater_func( hyp(k+1), pt_l, sa_l )50 rho_l = eqn_state_seawater_func( hyp(k+1), pt_l, sa_l ) 49 51 50 hyp(k) = hyp(k+1) + rho_l * g * dzu(k+1) 52 hyp(k) = hyp(k+1) + rho_l * g * dzu(k+1) 53 rho_ref = rho_ref + rho_l * dzu(k+1) 51 54 52 55 ENDDO 53 56 57 rho_ref = rho_ref / ( zw(nzt) - zu(nzb) ) 58 print*, '*** rho_ref = ', rho_ref 59 54 60 55 61 END SUBROUTINE init_ocean
Note: See TracChangeset
for help on using the changeset viewer.