- Timestamp:
- 2011-12-05T14:55:12+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/PISCES/trcsms_pisces.F90
r3175 r3192 18 18 USE p4zbio ! Biological model 19 19 USE p4zche ! Chemical model 20 USE p4zsink ! vertical flux of particulate matter due to sinking21 USE p4zopt ! optical model22 USE p4zlim ! Co-limitations of differents nutrients23 USE p4zprod ! Growth rate of the 2 phyto groups24 USE p4zmort ! Mortality terms for phytoplankton25 USE p4zmicro ! Sources and sinks of microzooplankton26 USE p4zmeso ! Sources and sinks of mesozooplankton27 USE p4zrem ! Remineralisation of organic matter28 20 USE p4zlys ! Calcite saturation 29 21 USE p4zflx ! Gas exchange … … 74 66 IF( nn_timing == 1 ) CALL timing_start('trc_sms_pisces') 75 67 ! 76 IF( kt == nittrc000 ) CALL trc_sms_pisces_init ! Initialization (first time-step only)77 68 IF( ln_pisdmp .AND. MOD( kt - nn_dttrc, nn_pisdmp ) == 0 ) CALL trc_sms_pisces_dmp( kt ) ! Relaxation of some tracers 78 CALL trc_sms_pisces_mass_conserv( kt ) 69 CALL trc_sms_pisces_mass_conserv( kt ) ! Mass conservation checking 79 70 80 71 IF( ndayflxtr /= nday_year ) THEN ! New days … … 176 167 177 168 END SUBROUTINE trc_sms_pisces_dmp 178 179 SUBROUTINE trc_sms_pisces_init180 !!----------------------------------------------------------------------181 !! *** ROUTINE trc_sms_pisces_init ***182 !!183 !! ** Purpose : Initialization of PH variable184 !!185 !!----------------------------------------------------------------------186 INTEGER :: ji, jj, jk187 REAL(wp) :: zcaralk, zbicarb, zco3188 REAL(wp) :: ztmas, ztmas1189 190 IF( .NOT. ln_rsttr ) THEN191 ! Initialization of chemical variables of the carbon cycle192 ! --------------------------------------------------------193 DO jk = 1, jpk194 DO jj = 1, jpj195 DO ji = 1, jpi196 ztmas = tmask(ji,jj,jk)197 ztmas1 = 1. - tmask(ji,jj,jk)198 zcaralk = trn(ji,jj,jk,jptal) - borat(ji,jj,jk) / ( 1. + 1.E-8 / ( rtrn + akb3(ji,jj,jk) ) )199 zco3 = ( zcaralk - trn(ji,jj,jk,jpdic) ) * ztmas + 0.5e-3 * ztmas1200 zbicarb = ( 2. * trn(ji,jj,jk,jpdic) - zcaralk )201 hi(ji,jj,jk) = ( ak23(ji,jj,jk) * zbicarb / zco3 ) * ztmas + 1.e-9 * ztmas1202 END DO203 END DO204 END DO205 !206 END IF207 208 ! Time step duration for biology209 xstep = rfact2 / rday210 211 CALL p4z_sink_init ! vertical flux of particulate organic matter212 CALL p4z_opt_init ! Optic: PAR in the water column213 CALL p4z_lim_init ! co-limitations by the various nutrients214 CALL p4z_prod_init ! phytoplankton growth rate over the global ocean.215 CALL p4z_rem_init ! remineralisation216 CALL p4z_mort_init ! phytoplankton mortality217 CALL p4z_micro_init ! microzooplankton218 CALL p4z_meso_init ! mesozooplankton219 CALL p4z_sed_init ! sedimentation220 CALL p4z_lys_init ! calcite saturation221 CALL p4z_flx_init ! gas exchange222 223 ndayflxtr = 0224 225 END SUBROUTINE trc_sms_pisces_init226 169 227 170 SUBROUTINE trc_sms_pisces_mass_conserv ( kt ) … … 277 220 ENDIF 278 221 ENDIF 279 9500 FORMAT(i 6,e18.10)222 9500 FORMAT(i10,e18.10) 280 223 ! 281 224 END SUBROUTINE trc_sms_pisces_mass_conserv
Note: See TracChangeset
for help on using the changeset viewer.