Changeset 14450 for NEMO/branches/UKMO/NEMO_4.0.4_ocean_mean_fluxes
- Timestamp:
- 2021-02-15T10:35:14+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/NEMO_4.0.4_ocean_mean_fluxes/src/OCE/SBC/sbccpl.F90
r14424 r14450 213 213 #if defined key_si3 || defined key_cice 214 214 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: a_i_last_couple !: Ice fractional area at last coupling time 215 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: leads_last_couple !: Leads fractional area at last coupling time216 215 #endif 217 216 218 217 REAL(wp) :: rpref = 101000._wp ! reference atmospheric pressure[N/m2] 219 218 REAL(wp) :: r1_grau ! = 1.e0 / (grav * rau0) 219 220 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: leads_last_couple !: Leads fractional area at last coupling time 220 221 221 222 INTEGER , ALLOCATABLE, SAVE, DIMENSION(:) :: nrcvinfo ! OASIS info argument … … 234 235 !! *** FUNCTION sbc_cpl_alloc *** 235 236 !!---------------------------------------------------------------------- 236 INTEGER :: ierr( 6)237 INTEGER :: ierr(5) 237 238 !!---------------------------------------------------------------------- 238 239 ierr(:) = 0 239 240 ! 240 241 ALLOCATE( alb_oce_mix(jpi,jpj), nrcvinfo(jprcv), STAT=ierr(1) ) 242 243 ALLOCATE( leads_last_couple(jpi,jpj) , STAT=ierr(1) ) 241 244 242 245 #if ! defined key_si3 && ! defined key_cice … … 246 249 #if defined key_si3 || defined key_cice 247 250 ALLOCATE( a_i_last_couple(jpi,jpj,jpl) , STAT=ierr(4) ) 248 ALLOCATE( leads_last_couple(jpi,jpj) , STAT=ierr(5) )249 251 #endif 250 252 ! 251 IF( .NOT. ln_apr_dyn ) ALLOCATE( ssh_ib(jpi,jpj), ssh_ibb(jpi,jpj), apr(jpi, jpj), STAT=ierr( 6) )253 IF( .NOT. ln_apr_dyn ) ALLOCATE( ssh_ib(jpi,jpj), ssh_ibb(jpi,jpj), apr(jpi, jpj), STAT=ierr(5) ) 252 254 253 255 sbc_cpl_alloc = MAXVAL( ierr ) … … 1898 1900 ! Calculate the total non solar heat flux. The ocean only non solar heat flux (zqns_oce) will be recalculated after this CASE 1899 1901 ! statement to be consistent with other coupling methods even though .zqns_oce = frcv(jpr_qnsoce)%z3(:,:,1) 1900 zqns_tot(:,:) = frcv(jpr_qnsoce)%z3(:,:,1) * leads_last_couple(:,:) + SUM( zqns_ice(:,:,:) * a_i _last_couple(:,:,:), dim=3 )1902 zqns_tot(:,:) = frcv(jpr_qnsoce)%z3(:,:,1) * leads_last_couple(:,:) + SUM( zqns_ice(:,:,:) * a_i(:,:,:), dim=3 ) 1901 1903 1902 1904 CASE( 'conservative' ) ! the required fields are directly provided
Note: See TracChangeset
for help on using the changeset viewer.