Changeset 15450 for NEMO/trunk/src/TOP/PISCES/SED/sedstp.F90
- Timestamp:
- 2021-10-27T16:32:08+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/src/TOP/PISCES/SED/sedstp.F90
r13970 r15450 8 8 USE sedchem ! chemical constant 9 9 USE sedco3 ! carbonate in sediment pore water 10 USE sedorg ! Organic reactions and diffusion 11 USE sedinorg ! Inorganic dissolution 12 USE sedbtb ! bioturbation 10 USE sedsol ! Organic reactions and diffusion 13 11 USE sedadv ! vertical advection 14 USE sedmbc ! mass balance calculation15 12 USE sedsfc ! sediment surface data 16 13 USE sedrst ! restart 17 14 USE sedwri ! outputs 15 USE sedini 18 16 USE trcdmp_sed 19 17 USE lib_mpp ! distribued memory computing library … … 25 23 !! * Routine accessibility 26 24 PUBLIC sed_stp ! called by step.F90 25 26 !! * Substitutions 27 # include "do_loop_substitute.h90" 28 # include "domzgr_substitute.h90" 27 29 28 30 !! $Id$ … … 44 46 !! ! 06-04 (C. Ethe) Re-organization 45 47 !!---------------------------------------------------------------------- 46 INTEGER, INTENT(in) :: kt ! number of iteration 47 INTEGER, INTENT(in) :: Kbb, Kmm, Krhs ! time level indices 48 INTEGER :: ji,jk,js,jn,jw 48 INTEGER, INTENT(in) :: kt ! number of iteration 49 INTEGER, INTENT(in) :: Kbb, Kmm, Krhs ! time level indices 50 51 INTEGER :: ji,jk,js,jn,jw,jkmax,jsmax 49 52 !!---------------------------------------------------------------------- 50 IF( ln_timing ) CALL timing_start('sed_stp')53 IF( ln_timing ) CALL timing_start('sed_stp') 51 54 ! 52 55 CALL sed_rst_opn ( kt ) ! Open tracer restart file … … 56 59 57 60 dtsed = rDt_trc 58 ! dtsed2 = dtsed59 61 IF (kt /= nitsed000) THEN 60 CALL sed_dta( kt, Kbb, Kmm ) 62 CALL sed_dta( kt, Kbb, Kmm ) ! Load Data for bot. wat. Chem and fluxes 61 63 ENDIF 62 64 … … 66 68 ENDIF 67 69 68 CALL sed_btb( kt ) ! 1st pass of bioturbation at t+1/2 69 CALL sed_org( kt ) ! Organic related reactions and diffusion 70 CALL sed_inorg( kt ) ! Dissolution reaction 71 CALL sed_btb( kt ) ! 2nd pass of bioturbation at t+1 72 tokbot(:,:) = 0.0 73 DO jw = 1, jpwat 74 DO ji = 1, jpoce 75 tokbot(ji,jw) = pwcp(ji,1,jw) * 1.e-3 * dzkbot(ji) 76 END DO 77 ENDDO 70 CALL sed_sol( kt ) ! Solute diffusion and reactions 78 71 CALL sed_adv( kt ) ! advection 79 72 CALL sed_co3( kt ) ! pH actualization for saving 80 ! This routine is commented out since it does not work at all81 CALL sed_mbc( kt ) ! cumulation for mass balance calculation82 73 83 IF (ln_sed_2way) CALL sed_sfc( kt, Kbb ) 74 IF (ln_sed_2way) CALL sed_sfc( kt, Kbb ) ! Give back new bottom wat chem to tracer model 84 75 ENDIF 85 76 CALL sed_wri( kt ) ! outputs 86 77 IF( kt == nitsed000 ) THEN 87 78 CALL iom_close( numrsr ) ! close input tracer restart file 88 IF(lrxios) CALL iom_context_finalize( cr_sedrst_cxt ) 89 ! IF(lwm) CALL FLUSH( numont ) ! flush namelist output 79 ! IF(lwm) CALL FLUSH( numont ) ! flush namelist output 90 80 ENDIF 91 81 IF( lrst_sed ) CALL sed_rst_wri( kt ) ! restart file output 92 82 93 IF( kt == nitsedend ) CLOSE( numsed )83 IF( kt == nitsedend ) CLOSE( numsed ) 94 84 95 IF( ln_timing ) CALL timing_stop('sed_stp')85 IF( ln_timing ) CALL timing_stop('sed_stp') 96 86 97 87 END SUBROUTINE sed_stp
Note: See TracChangeset
for help on using the changeset viewer.