New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 15450 for NEMO/trunk/src/TOP/PISCES/SED/sedstp.F90 – NEMO

Ignore:
Timestamp:
2021-10-27T16:32:08+02:00 (3 years ago)
Author:
cetlod
Message:

Some updates to make the PISCES/SED module usable. Totally orthogonal with no effect on other parts of the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/TOP/PISCES/SED/sedstp.F90

    r13970 r15450  
    88   USE sedchem  ! chemical constant 
    99   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 
    1311   USE sedadv   ! vertical advection 
    14    USE sedmbc   ! mass balance calculation 
    1512   USE sedsfc   ! sediment surface data 
    1613   USE sedrst   ! restart 
    1714   USE sedwri   ! outputs 
     15   USE sedini 
    1816   USE trcdmp_sed 
    1917   USE lib_mpp         ! distribued memory computing library 
     
    2523   !! * Routine accessibility 
    2624   PUBLIC sed_stp  ! called by step.F90 
     25 
     26   !! * Substitutions 
     27#  include "do_loop_substitute.h90" 
     28#  include "domzgr_substitute.h90" 
    2729 
    2830   !! $Id$ 
     
    4446      !!        !  06-04 (C. Ethe)  Re-organization 
    4547      !!---------------------------------------------------------------------- 
    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 
    4952      !!---------------------------------------------------------------------- 
    50       IF( ln_timing )      CALL timing_start('sed_stp') 
     53      IF( ln_timing )           CALL timing_start('sed_stp') 
    5154        ! 
    5255                                CALL sed_rst_opn  ( kt )       ! Open tracer restart file  
     
    5659 
    5760      dtsed  = rDt_trc 
    58 !      dtsed2 = dtsed 
    5961      IF (kt /= nitsed000) THEN 
    60          CALL sed_dta( kt, Kbb, Kmm )       ! Load  Data for bot. wat. Chem and fluxes 
     62         CALL sed_dta( kt, Kbb, Kmm )    ! Load  Data for bot. wat. Chem and fluxes 
    6163      ENDIF 
    6264 
     
    6668         ENDIF 
    6769 
    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  
    7871         CALL sed_adv( kt )         ! advection 
    7972         CALL sed_co3( kt )         ! pH actualization for saving 
    80          ! This routine is commented out since it does not work at all 
    81          CALL sed_mbc( kt )         ! cumulation for mass balance calculation 
    8273 
    83          IF (ln_sed_2way) CALL sed_sfc( kt, Kbb )         ! Give back new bottom wat chem to tracer model 
     74         IF (ln_sed_2way) CALL sed_sfc( kt, Kbb )   ! Give back new bottom wat chem to tracer model 
    8475      ENDIF 
    8576      CALL sed_wri( kt )         ! outputs 
    8677      IF( kt == nitsed000 ) THEN 
    8778          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 
    9080      ENDIF 
    9181      IF( lrst_sed )            CALL sed_rst_wri( kt )   ! restart file output 
    9282 
    93       IF( kt == nitsedend )  CLOSE( numsed ) 
     83      IF( kt == nitsedend )     CLOSE( numsed ) 
    9484 
    95       IF( ln_timing )   CALL timing_stop('sed_stp') 
     85      IF( ln_timing )           CALL timing_stop('sed_stp') 
    9686 
    9787   END SUBROUTINE sed_stp 
Note: See TracChangeset for help on using the changeset viewer.