Changeset 2715 for trunk/NEMOGCM/NEMO/OPA_SRC/LBC/cla.F90
- Timestamp:
- 2011-03-30T17:58:35+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/OPA_SRC/LBC/cla.F90
r2442 r2715 31 31 USE lib_mpp ! distributed memory computing library 32 32 USE lbclnk ! ocean lateral boundary conditions (or mpp link) 33 USE lib_mpp ! MPP library 33 34 34 35 IMPLICIT NONE … … 43 44 ! ! for Bab-el-Mandeb, Gibraltar, and Hormuz straits 44 45 45 ! 46 REAL(wp), DIMENSION (jpk) :: hdiv_139_101, hdiv_139_101_kt ! Gibraltar strait, fixed & time evolving part(i,j)=(172,101)47 REAL(wp), DIMENSION (jpk) :: hdiv_139_102 ! Gibraltar strait, fixed part only(i,j)=(139,102)48 REAL(wp), DIMENSION (jpk) :: hdiv_141_102, hdiv_141_102_kt ! Gibraltar strait, fixed & time evolving part(i,j)=(141,102)49 REAL(wp), DIMENSION (jpk) :: hdiv_161_88 , hdiv_161_88_kt ! Bab-el-Mandeb strait, fixed & time evolving part(i,j)=(161,88)50 REAL(wp), DIMENSION (jpk) :: hdiv_161_87 ! Bab-el-Mandeb strait, fixed part only(i,j)=(161,87)51 REAL(wp), DIMENSION (jpk) :: hdiv_160_89 , hdiv_160_89_kt ! Bab-el-Mandeb strait, fixed & time evolving part(i,j)=(160,89)52 REAL(wp), DIMENSION (jpk) :: hdiv_172_94 ! Hormuz strait, fixed part only(i,j)=(172, 94)53 54 REAL(wp), DIMENSION (jpk) :: t_171_94_hor, s_171_94_hor ! Temperature, salinity in theHormuz strait46 ! ! fixed part ! time evolving !!! profile of hdiv for some straits 47 REAL(wp), ALLOCATABLE, SAVE, DIMENSION (:) :: hdiv_139_101, hdiv_139_101_kt ! Gibraltar (i,j)=(172,101) 48 REAL(wp), ALLOCATABLE, SAVE, DIMENSION (:) :: hdiv_139_102 ! Gibraltar (i,j)=(139,102) 49 REAL(wp), ALLOCATABLE, SAVE, DIMENSION (:) :: hdiv_141_102, hdiv_141_102_kt ! Gibraltar (i,j)=(141,102) 50 REAL(wp), ALLOCATABLE, SAVE, DIMENSION (:) :: hdiv_161_88 , hdiv_161_88_kt ! Bab-el-Mandeb (i,j)=(161,88) 51 REAL(wp), ALLOCATABLE, SAVE, DIMENSION (:) :: hdiv_161_87 ! Bab-el-Mandeb (i,j)=(161,87) 52 REAL(wp), ALLOCATABLE, SAVE, DIMENSION (:) :: hdiv_160_89 , hdiv_160_89_kt ! Bab-el-Mandeb (i,j)=(160,89) 53 REAL(wp), ALLOCATABLE, SAVE, DIMENSION (:) :: hdiv_172_94 ! Hormuz (i,j)=(172, 94) 54 55 REAL(wp), ALLOCATABLE, SAVE, DIMENSION (:) :: t_171_94_hor, s_171_94_hor ! Temperature, salinity in Hormuz strait 55 56 56 57 !! * Substitutions … … 177 178 !! ** Action : nbab, ngib, nhor strait inside the local domain or not 178 179 !!--------------------------------------------------------------------- 179 REAL(wp) :: ztemp 180 REAL(wp) :: ztemp ! local scalar 181 INTEGER :: ierr ! local integer 180 182 !!--------------------------------------------------------------------- 181 183 ! … … 184 186 IF(lwp) WRITE(numout,*) '~~~~~~~~~' 185 187 ! 188 ! ! Allocate arrays for this module 189 ALLOCATE( hdiv_139_101(jpk) , hdiv_139_101_kt(jpk) , & ! Gibraltar 190 & hdiv_139_102(jpk) , & 191 & hdiv_141_102(jpk) , hdiv_141_102_kt(jpk) , & 192 & hdiv_161_88 (jpk) , hdiv_161_88_kt (jpk) , & ! Bab-el-Mandeb 193 & hdiv_161_87 (jpk) , & 194 & hdiv_160_89 (jpk) , hdiv_160_89_kt (jpk) , & ! Hormuz 195 & hdiv_172_94 (jpk) , & 196 & t_171_94_hor(jpk) , s_171_94_hor (jpk) , STAT=ierr ) 197 IF( lk_mpp ) CALL mpp_sum( ierr ) 198 IF( ierr /= 0 ) CALL ctl_stop( 'STOP', 'cla_init: unable to allocate arrays' ) 199 ! 186 200 IF( .NOT.lk_dynspg_flt ) CALL ctl_stop( 'cla_init: Cross Land Advection works only with lk_dynspg_flt=T ' ) 187 201 ! 188 IF( lk_vvl ) CALL ctl_stop( 'cla_init: Cross Land Advection does not work with lk_vvl=T option' )189 ! 190 IF( jpk /= 31 ) CALL ctl_stop( 'cla_init: Cross Land Advection hard coded for ORCA_R2_L31' )202 IF( lk_vvl ) CALL ctl_stop( 'cla_init: Cross Land Advection does not work with lk_vvl=T option' ) 203 ! 204 IF( jpk /= 31 ) CALL ctl_stop( 'cla_init: Cross Land Advection hard coded for ORCA_R2_L31' ) 191 205 ! 192 206 ! _|_______|_______|_ … … 723 737 !! Default key Dummy module 724 738 !!---------------------------------------------------------------------- 725 USE in_out_manager ! I/O manager739 USE lib_mpp, ONLY: ctl_stop 726 740 CONTAINS 727 741 SUBROUTINE cla_init
Note: See TracChangeset
for help on using the changeset viewer.