Changeset 1566 for trunk/NEMO/OPA_SRC/DOM/domzgr.F90
- Timestamp:
- 2009-07-31T16:34:08+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/DOM/domzgr.F90
r1528 r1566 4 4 !! Ocean initialization : domain initialization 5 5 !!============================================================================== 6 !! History : OPA ! 1995-12 (G. Madec) Original code : s vertical coordinate 7 !! ! 1997-07 (G. Madec) lbc_lnk call 8 !! ! 1997-04 (J.-O. Beismann) 9 !! 8.5 ! 2002-09 (A. Bozec, G. Madec) F90: Free form and module 10 !! - ! 2002-09 (A. de Miranda) rigid-lid + islands 11 !! NEMO 1.0 ! 2003-08 (G. Madec) F90: Free form and module 12 !! - ! 2005-10 (A. Beckmann) modifications for hybrid s-ccordinates & new stretching function 13 !! 2.0 ! 2006-04 (R. Benshila, G. Madec) add zgr_zco 14 !! 3.0 ! 2008-06 (G. Madec) insertion of domzgr_zps.h90 & conding style 6 !! History : OPA ! 1995-12 (G. Madec) Original code : s vertical coordinate 7 !! ! 1997-07 (G. Madec) lbc_lnk call 8 !! ! 1997-04 (J.-O. Beismann) 9 !! 8.5 ! 2002-09 (A. Bozec, G. Madec) F90: Free form and module 10 !! - ! 2002-09 (A. de Miranda) rigid-lid + islands 11 !! NEMO 1.0 ! 2003-08 (G. Madec) F90: Free form and module 12 !! - ! 2005-10 (A. Beckmann) modifications for hybrid s-ccordinates & new stretching function 13 !! 2.0 ! 2006-04 (R. Benshila, G. Madec) add zgr_zco 14 !! 3.0 ! 2008-06 (G. Madec) insertion of domzgr_zps.h90 & conding style 15 !! 3.2 ! 2009-07 (R. Benshila) Suppression of rigid-lid option 15 16 !!---------------------------------------------------------------------- 16 17 … … 623 624 ENDIF 624 625 625 ! Set to zero mbathy over islands if necessary626 IF(lwp) WRITE(numout,*)627 IF(lwp) WRITE(numout,*) ' mbathy set to 0 over islands'628 IF(lwp) WRITE(numout,*) ' ----------------------------'629 !630 mbathy(:,:) = MAX( 0, mbathy(:,:) )631 !632 626 ! Boundary condition on mbathy 633 627 IF( .NOT.lk_mpp ) THEN … … 655 649 ENDIF 656 650 657 ! control print 658 IF( lwp .AND. nprint == 1 ) THEN 651 IF( lwp .AND. nprint == 1 ) THEN ! control print 659 652 WRITE(numout,*) 660 653 WRITE(numout,*) ' bathymetric field : number of non-zero T-levels ' … … 1027 1020 REAL(wp), INTENT(in ) :: bb ! Stretching coefficient 1028 1021 REAL(wp) :: pf1 ! sigma value 1029 1030 !!---------------------------------------------------------------------- 1031 ! 1032 IF ( theta == 0 ) then !uniform sigma 1033 pf1 = -(pk1-0.5)/REAL(jpkm1) 1034 ELSE ! stretched sigma 1022 !!---------------------------------------------------------------------- 1023 ! 1024 IF ( theta == 0 ) then ! uniform sigma 1025 pf1 = -(pk1-0.5) / REAL( jpkm1 ) 1026 ELSE ! stretched sigma 1035 1027 pf1 = (1.0-bb) * (sinh( theta*(-(pk1-0.5)/REAL(jpkm1)) ) ) / sinh(theta) + & 1036 1037 1038 ENDIF 1039 1028 & bb * ( (tanh( theta*( (-(pk1-0.5)/REAL(jpkm1)) + 0.5) ) - tanh(0.5*theta) ) / & 1029 & (2*tanh(0.5*theta) ) ) 1030 ENDIF 1031 ! 1040 1032 END FUNCTION fssig1 1041 1033 … … 1078 1070 REAL(wp), DIMENSION(jpi,jpj) :: zenv, ztmp, zmsk ! 2D workspace 1079 1071 REAL(wp), DIMENSION(jpi,jpj) :: zri , zrj , zhbat ! - - 1080 1081 LOGICAL :: ln_s_sigma = .false. !use hybrid s_sigma coordinates & stretching function fssig1,used with ln_sco = .true.1072 !! 1073 LOGICAL :: ln_s_sigma = .false. !use hybrid s_sigma coordinates & stretching function fssig1,used with ln_sco = .true. 1082 1074 REAL(wp) :: bb = 0.8 ! stretching parameter for song and haidvogel stretching, bb=0; top only, bb =1; top and bottom 1083 1075 REAL(wp) :: hc = 150 ! Critical depth for s-sigma coordinates 1084 1076 !!gm never do that !!!! ==> Pb at compilation phase on several computer 1085 1077 REAL(wp), DIMENSION(jpi,jpj,jpk) :: gsigw3 = 0.0d0 1086 1078 REAL(wp), DIMENSION(jpi,jpj,jpk) :: gsigt3 = 0.0d0 … … 1093 1085 REAL(wp), DIMENSION(jpi,jpj,jpk) :: esigwu3 = 0.0d0 1094 1086 REAL(wp), DIMENSION(jpi,jpj,jpk) :: esigwv3 = 0.0d0 1087 !!gm end 1095 1088 !! 1096 1089 NAMELIST/nam_zgr_sco/ sbot_max, sbot_min, theta, thetb, r_max, ln_s_sigma, bb, hc
Note: See TracChangeset
for help on using the changeset viewer.