Changeset 13342
- Timestamp:
- 2020-07-27T11:32:05+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/releases/r4.0/r4.0-HEAD/src/TOP/PISCES/P4Z/p4zsms.F90
r13029 r13342 65 65 REAL(wp), ALLOCATABLE, DIMENSION(:,: ) :: zw2d 66 66 REAL(wp), ALLOCATABLE, DIMENSION(:,:,: ) :: zw3d 67 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:,:) :: ztrdt ! 4D workspace67 REAL(wp), DIMENSION(jpi,jpj,jpk,jp_pisces) :: ztrbbio 68 68 69 69 !!--------------------------------------------------------------------- … … 89 89 rfact = r2dttrc 90 90 ! 91 ! trends computation initialisation92 IF( l_trdtrc ) THEN93 ALLOCATE( ztrdt(jpi,jpj,jpk,jp_pisces) ) !* store now fields before applying the Asselin filter94 ztrdt(:,:,:,:) = trn(:,:,:,:)95 ENDIF96 !97 98 91 IF( ( ln_top_euler .AND. kt == nittrc000 ) .OR. ( .NOT.ln_top_euler .AND. kt <= nittrc000 + nn_dttrc ) ) THEN 99 92 rfactr = 1. / rfact … … 113 106 END DO 114 107 ENDIF 108 109 DO jn = jp_pcs0, jp_pcs1 ! Store the tracer concentrations before entering PISCES 110 ztrbbio(:,:,:,jn) = trb(:,:,:,jn) 111 END DO 112 115 113 ! 116 114 IF( ll_sbc ) CALL p4z_sbc( kt ) ! external sources of nutrients … … 145 143 trb(:,:,:,jn) = trb(:,:,:,jn) + xnegtr(:,:,:) * tra(:,:,:,jn) 146 144 END DO 145 147 146 ! 148 147 IF( iom_use( 'INTdtAlk' ) .OR. iom_use( 'INTdtDIC' ) .OR. iom_use( 'INTdtFer' ) .OR. & … … 194 193 ENDIF 195 194 ! 196 DO jn = jp_pcs0, jp_pcs1 197 tra(:,:,:,jn) = 0._wp 198 END DO 199 ! 200 IF( ln_top_euler ) THEN 201 DO jn = jp_pcs0, jp_pcs1 202 trn(:,:,:,jn) = trb(:,:,:,jn) 203 END DO 204 ENDIF 195 DO jn = jp_pcs0, jp_pcs1 196 tra(:,:,:,jn) = 0._wp 197 END DO 198 ! 199 END DO 200 ! 201 #endif 202 ! 203 IF( ln_sediment ) THEN 204 ! 205 CALL sed_model( kt ) ! Main program of Sediment model 206 ! 207 ENDIF 208 ! 209 DO jn = jp_pcs0, jp_pcs1 210 tra(:,:,:,jn) = ( trb(:,:,:,jn) - ztrbbio(:,:,:,jn) ) * rfactr 211 trb(:,:,:,jn) = ztrbbio(:,:,:,jn) 212 ztrbbio(:,:,:,jn) = 0._wp 205 213 END DO 206 214 ! 207 215 IF( l_trdtrc ) THEN 208 216 DO jn = jp_pcs0, jp_pcs1 209 ztrdt(:,:,:,jn) = ( trb(:,:,:,jn) - ztrdt(:,:,:,jn) ) * rfactr 210 CALL trd_trc( ztrdt(:,:,:,jn), jn, jptra_sms, kt ) ! save trends 217 CALL trd_trc( tra(:,:,:,jn), jn, jptra_sms, kt ) ! save trends 211 218 END DO 212 DEALLOCATE( ztrdt )213 219 END IF 214 #endif 215 ! 216 IF( ln_sediment ) THEN 217 ! 218 CALL sed_model( kt ) ! Main program of Sediment model 219 ! 220 IF( ln_top_euler ) THEN 221 DO jn = jp_pcs0, jp_pcs1 222 trn(:,:,:,jn) = trb(:,:,:,jn) 223 END DO 224 ENDIF 225 ! 226 ENDIF 227 ! 220 ! 228 221 IF( lrst_trc ) CALL p4z_rst( kt, 'WRITE' ) !* Write PISCES informations in restart file 229 222 !
Note: See TracChangeset
for help on using the changeset viewer.