Changeset 12963
- Timestamp:
- 2020-05-22T18:27:18+02:00 (4 years ago)
- Location:
- branches/UKMO/dev_r5518_Surge_Modelling/NEMOGCM/NEMO/OPA_SRC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_Surge_Modelling/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90
r5942 r12963 128 128 INTEGER :: ji, jj, jk ! dummy loop indices 129 129 INTEGER :: jkbot ! 130 REAL(wp) :: zztmp, zztmpx, zztmpy !130 REAL(wp) :: zztmp, zztmpx, zztmpy, zmdi ! 131 131 !! 132 132 REAL(wp), POINTER, DIMENSION(:,:) :: z2d ! 2D workspace … … 134 134 !!---------------------------------------------------------------------- 135 135 ! 136 zmdi=1.e+20 !missing data indicator for masking 137 136 138 IF( nn_timing == 1 ) CALL timing_start('dia_wri') 137 139 ! … … 152 154 ENDIF 153 155 154 CALL iom_put( "ssh" , sshn ) ! sea surface height 156 z2d = sshn(:,:)*tmask(:,:,1) + zmdi*(1.0-tmask(:,:,1)) 157 CALL iom_put( "ssh" , z2d ) ! sea surface height 155 158 if( iom_use('ssh2') ) CALL iom_put( "ssh2", sshn(:,:) * sshn(:,:) ) ! square of sea surface height 156 159 … … 196 199 197 200 CALL iom_put( "uoce", un(:,:,:) ) ! 3D i-current 198 CALL iom_put( "ssu", un(:,:,1) ) ! surface i-current 201 z2d = un(:,:,1)*umask(:,:,1) + zmdi*(1.0-umask(:,:,1)) 202 CALL iom_put( "ssu", z2d ) ! surface i-current 199 203 IF ( iom_use("sbu") ) THEN 200 204 DO jj = 1, jpj … … 213 217 214 218 CALL iom_put( "voce", vn(:,:,:) ) ! 3D j-current 215 CALL iom_put( "ssv", vn(:,:,1) ) ! surface j-current 219 z2d = vn(:,:,1)*vmask(:,:,1) + zmdi*(1.0-vmask(:,:,1)) 220 CALL iom_put( "ssv", z2d ) ! surface j-current 216 221 IF ( iom_use("sbv") ) THEN 217 222 DO jj = 1, jpj -
branches/UKMO/dev_r5518_Surge_Modelling/NEMOGCM/NEMO/OPA_SRC/SBC/sbcsurge.F90
r6592 r12963 151 151 ! 152 152 INTEGER :: ji, jj ! dummy loop indices 153 REAL(wp) :: zztmp ! local variable153 REAL(wp) :: zztmp,zmdi ! local variable 154 154 REAL(wp) :: z_z0, z_Cd1 ! local variable 155 155 REAL(wp) :: zi ! local variable 156 REAL(wp), DIMENSION(:,:), POINTER :: zwnd_i, zwnd_j ! wind speed components at T-point156 REAL(wp), DIMENSION(:,:), POINTER :: zwnd_i, zwnd_j, z2d ! wind speed components at T-point 157 157 REAL(wp), DIMENSION(:,:), POINTER :: Cd ! transfer coefficient for momentum (tau) 158 158 !!--------------------------------------------------------------------- 159 159 ! 160 zmdi=1.e+20 !missing data indicator for masking 161 160 162 IF( nn_timing == 1 ) CALL timing_start('surge_oce') 161 163 ! 162 CALL wrk_alloc( jpi,jpj, zwnd_i, zwnd_j )164 CALL wrk_alloc( jpi,jpj, zwnd_i, zwnd_j, z2d ) 163 165 CALL wrk_alloc( jpi,jpj, Cd ) 164 166 ! … … 218 220 END DO 219 221 220 CALL iom_put( "taum_oce", taum ) ! output wind stress module 221 CALL iom_put( "uwnd", uwnd ) ! output wind stress module 222 CALL iom_put( "vwnd", vwnd ) ! output wind stress module 222 z2d = taum*tmask(:,:,1) + zmdi*(1.0-tmask(:,:,1)) 223 CALL iom_put( "taum_oce", z2d ) ! output wind stress module 224 z2d = uwnd*tmask(:,:,1) + zmdi*(1.0-tmask(:,:,1)) 225 CALL iom_put( "uwnd", z2d ) ! output wind stress module 226 z2d = vwnd*tmask(:,:,1) + zmdi*(1.0-tmask(:,:,1)) 227 CALL iom_put( "vwnd", z2d ) ! output wind stress module 223 228 224 229 ! ... utau, vtau at U- and V_points, resp.
Note: See TracChangeset
for help on using the changeset viewer.