- Timestamp:
- 2017-12-19T09:26:25+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/SBC/sbcfwb.F90
r9019 r9124 25 25 USE in_out_manager ! I/O manager 26 26 USE lib_mpp ! distribued memory computing library 27 USE wrk_nemo ! work arrays28 USE timing ! Timing29 27 USE lbclnk ! ocean lateral boundary conditions 30 28 USE lib_fortran ! … … 70 68 REAL(wp) :: z_fwf, z_fwf_nsrf, zsum_fwf, zsum_erp ! local scalars 71 69 REAL(wp) :: zsurf_neg, zsurf_pos, zsurf_tospread, zcoef ! - - 72 REAL(wp), POINTER, DIMENSION(:,:) :: ztmsk_neg, ztmsk_pos, z_wgt ! 2D workspaces73 REAL(wp), POINTER, DIMENSION(:,:) :: ztmsk_tospread, zerp_cor ! - -70 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: ztmsk_neg, ztmsk_pos, z_wgt ! 2D workspaces 71 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: ztmsk_tospread, zerp_cor ! - - 74 72 !!---------------------------------------------------------------------- 75 !76 IF( nn_timing == 1 ) CALL timing_start('sbc_fwb')77 !78 CALL wrk_alloc( jpi,jpj, ztmsk_neg, ztmsk_pos, ztmsk_tospread, z_wgt, zerp_cor )79 73 ! 80 74 IF( kt == nit000 ) THEN … … 154 148 CASE ( 3 ) !== global fwf set to zero and spread out over erp area ==! 155 149 ! 150 ALLOCATE( ztmsk_neg(jpi,jpj) , ztmsk_pos(jpi,jpj) , ztmsk_tospread(jpi,jpj) , z_wgt(jpi,jpj) , zerp_cor(jpi,jpj) ) 151 ! 156 152 IF( MOD( kt-1, kn_fsbc ) == 0 ) THEN 157 153 ztmsk_pos(:,:) = tmask_i(:,:) ! Select <0 and >0 area of erp … … 203 199 ENDIF 204 200 ENDIF 201 DEALLOCATE( ztmsk_neg , ztmsk_pos , ztmsk_tospread , z_wgt , zerp_cor ) 205 202 ! 206 203 CASE DEFAULT !== you should never be there ==! … … 209 206 END SELECT 210 207 ! 211 CALL wrk_dealloc( jpi,jpj, ztmsk_neg, ztmsk_pos, ztmsk_tospread, z_wgt, zerp_cor )212 !213 IF( nn_timing == 1 ) CALL timing_stop('sbc_fwb')214 !215 208 END SUBROUTINE sbc_fwb 216 209
Note: See TracChangeset
for help on using the changeset viewer.