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 3192 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/PISCES/trcsms_pisces.F90 – NEMO

Ignore:
Timestamp:
2011-12-05T14:55:12+01:00 (12 years ago)
Author:
cetlod
Message:

Perform the initialisation phase of PISCES at nit000 rather than nittrc000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/PISCES/trcsms_pisces.F90

    r3175 r3192  
    1818   USE p4zbio          !  Biological model 
    1919   USE p4zche          !  Chemical model 
    20    USE p4zsink         !  vertical flux of particulate matter due to sinking 
    21    USE p4zopt          !  optical model 
    22    USE p4zlim          !  Co-limitations of differents nutrients 
    23    USE p4zprod         !  Growth rate of the 2 phyto groups 
    24    USE p4zmort         !  Mortality terms for phytoplankton 
    25    USE p4zmicro        !  Sources and sinks of microzooplankton 
    26    USE p4zmeso         !  Sources and sinks of mesozooplankton 
    27    USE p4zrem          !  Remineralisation of organic matter 
    2820   USE p4zlys          !  Calcite saturation 
    2921   USE p4zflx          !  Gas exchange 
     
    7466      IF( nn_timing == 1 )  CALL timing_start('trc_sms_pisces') 
    7567      ! 
    76       IF( kt == nittrc000 )                                        CALL trc_sms_pisces_init       ! Initialization (first time-step only) 
    7768      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 
    7970 
    8071      IF( ndayflxtr /= nday_year ) THEN      ! New days 
     
    176167 
    177168   END SUBROUTINE trc_sms_pisces_dmp 
    178  
    179    SUBROUTINE trc_sms_pisces_init 
    180       !!---------------------------------------------------------------------- 
    181       !!                  ***  ROUTINE trc_sms_pisces_init  *** 
    182       !! 
    183       !! ** Purpose :   Initialization of PH variable 
    184       !! 
    185       !!---------------------------------------------------------------------- 
    186       INTEGER  ::  ji, jj, jk 
    187       REAL(wp) ::  zcaralk, zbicarb, zco3 
    188       REAL(wp) ::  ztmas, ztmas1 
    189  
    190       IF( .NOT. ln_rsttr ) THEN 
    191          ! Initialization of chemical variables of the carbon cycle 
    192          ! -------------------------------------------------------- 
    193          DO jk = 1, jpk 
    194             DO jj = 1, jpj 
    195                DO ji = 1, jpi 
    196                   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 * ztmas1 
    200                   zbicarb = ( 2. * trn(ji,jj,jk,jpdic) - zcaralk ) 
    201                   hi(ji,jj,jk) = ( ak23(ji,jj,jk) * zbicarb / zco3 ) * ztmas + 1.e-9 * ztmas1 
    202                END DO 
    203             END DO 
    204          END DO 
    205          ! 
    206       END IF 
    207  
    208       ! Time step duration for biology 
    209       xstep = rfact2 / rday 
    210  
    211       CALL p4z_sink_init      !  vertical flux of particulate organic matter 
    212       CALL p4z_opt_init       !  Optic: PAR in the water column 
    213       CALL p4z_lim_init       !  co-limitations by the various nutrients 
    214       CALL p4z_prod_init      !  phytoplankton growth rate over the global ocean.  
    215       CALL p4z_rem_init       !  remineralisation 
    216       CALL p4z_mort_init      !  phytoplankton mortality 
    217       CALL p4z_micro_init     !  microzooplankton 
    218       CALL p4z_meso_init      !  mesozooplankton 
    219       CALL p4z_sed_init       !  sedimentation 
    220       CALL p4z_lys_init       !  calcite saturation 
    221       CALL p4z_flx_init       !  gas exchange 
    222  
    223       ndayflxtr = 0 
    224  
    225    END SUBROUTINE trc_sms_pisces_init 
    226169 
    227170   SUBROUTINE trc_sms_pisces_mass_conserv ( kt ) 
     
    277220         ENDIF 
    278221       ENDIF 
    279  9500  FORMAT(i6,e18.10)      
     222 9500  FORMAT(i10,e18.10)      
    280223       ! 
    281224   END SUBROUTINE trc_sms_pisces_mass_conserv 
Note: See TracChangeset for help on using the changeset viewer.