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 12193 for NEMO/branches/2019/dev_r11943_MERGE_2019/src/TOP/trcini.F90 – NEMO

Ignore:
Timestamp:
2019-12-11T17:15:54+01:00 (4 years ago)
Author:
davestorkey
Message:

2019/dev_r11943_MERGE_2019: Merge in dev_r12072_TOP-01_ENHANCE-11_cethe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11943_MERGE_2019/src/TOP/trcini.F90

    r11949 r12193  
    2424   USE lib_mpp         ! distribued memory computing library 
    2525   USE trcice          ! tracers in sea ice 
    26    USE trcbc,   only : trc_bc_ini ! generalized Boundary Conditions 
    27    USE trcstp          ! for time level indices (to be initialised) 
     26   USE trcbc           ! generalized Boundary Conditions 
    2827  
    2928   IMPLICIT NONE 
     
    177176         ln_trc_obc(jn) =       sn_tracer(jn)%llobc 
    178177      END DO 
     178      ! 
     179      IF( .NOT.ln_trcbc ) THEN 
     180         DO jn = 1, jp_bgc 
     181            ln_trc_sbc(jn) = .FALSE. 
     182            ln_trc_cbc(jn) = .FALSE. 
     183            ln_trc_obc(jn) = .FALSE. 
     184         END DO 
     185      ENDIF 
     186      
     187      lltrcbc = ( COUNT(ln_trc_sbc) + COUNT(ln_trc_obc) + COUNT(ln_trc_cbc) ) > 0  
    179188      !     
    180189      IF( ln_pisces      )   CALL trc_ini_pisces( Kmm )     !  PISCES model 
     
    193202         END DO 
    194203      ENDIF 
     204      IF( lwp .AND. ln_trcbc .AND. lltrcbc ) THEN 
     205         WRITE(numout,*) 
     206         WRITE(numout,*) ' Applying tracer boundary conditions ' 
     207      ENDIF 
     208      
    1952099001  FORMAT(3x,i3,1x,a10,3x,l2,3x,l2,3x,l2,3x,l2) 
    196210      ! 
     
    238252      IF( ln_trcdta )   CALL trc_dta_ini( jptra )           ! set initial tracers values 
    239253      ! 
    240       IF( ln_my_trc )   CALL trc_bc_ini ( jptra, Kmm )      ! set tracers Boundary Conditions 
     254      IF( ln_trcbc .AND. lltrcbc )  THEN  
     255        CALL trc_bc_ini ( jptra, Kmm  )            ! set tracers Boundary Conditions 
     256        CALL trc_bc     ( nit000, Kmm, tr, Kaa )   ! tracers: surface and lateral Boundary Conditions 
     257      ENDIF 
    241258      ! 
    242259      ! 
Note: See TracChangeset for help on using the changeset viewer.