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 4058 for branches/2013/dev_r3996_CMCC6_topbc – NEMO

Ignore:
Timestamp:
2013-10-11T11:51:22+02:00 (11 years ago)
Author:
vichi
Message:

Finalize the structure of generic boundary conditions for trc

Include the subroutine trcbc.F90 that implements a structure
similar to trcdta for reading surface, coastal (river) and
open boundary conditions for tracers.
A new namelist trc_bc can be included in namelist_top
where the files to be read during stepping are specified.
At the moment this structure is only used by the BFM but it
is harmless for PISCES as this model still reads those
data internally.
NOTE: OBC reading has not been implementetested as it will be made
available only for BDY.
--This line, and th se below, will be ignored--

M trcdta.F90
A trcbc.F90
M par_trc.F90

Location:
branches/2013/dev_r3996_CMCC6_topbc/NEMOGCM/NEMO/TOP_SRC
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3996_CMCC6_topbc/NEMOGCM/NEMO/TOP_SRC/par_trc.F90

    r3680 r4058  
    1717 
    1818   IMPLICIT NONE 
     19 
     20   ! Passive tracers : Maximum number of tracers. Needed to define data structures 
     21   ! ---------------  
     22   INTEGER, PUBLIC,  PARAMETER ::   jpmaxtrc = 100 
    1923 
    2024   ! Passive tracers : Total size 
  • branches/2013/dev_r3996_CMCC6_topbc/NEMOGCM/NEMO/TOP_SRC/trcdta.F90

    r4026 r4058  
    2929   PUBLIC   trc_dta_init    ! called in trcini.F90  
    3030 
    31    INTEGER  , PARAMETER, PUBLIC                        :: MAXTRC=100  ! maximum number of tracers  
    3231   INTEGER  , SAVE, PUBLIC                             :: nb_trcdta   ! number of tracers to be initialised with data 
    3332   INTEGER  , SAVE, PUBLIC, ALLOCATABLE, DIMENSION(:)  :: n_trc_index ! indice of tracer which is initialised with data 
     
    5554      !!---------------------------------------------------------------------- 
    5655      ! 
    57       INTEGER,INTENT(IN) :: ntrc 
    58       INTEGER            :: jl, jn                   ! dummy loop indicies 
     56      INTEGER,INTENT(IN) :: ntrc                             ! number of tracers 
     57      INTEGER            :: jl, jn                           ! dummy loop indices 
    5958      INTEGER            :: ierr0, ierr1, ierr2, ierr3       ! temporary integers 
    6059      CHARACTER(len=100) :: clndta, clntrc 
     
    6261      ! 
    6362      CHARACTER(len=100) :: cn_dir 
    64       TYPE(FLD_N), ALLOCATABLE, DIMENSION(:) :: slf_i     ! array of namelist informations on the fields to read 
    65       TYPE(FLD_N), DIMENSION(MAXTRC) :: sn_trcdta 
    66       REAL(wp)   , DIMENSION(MAXTRC) :: rn_trfac    ! multiplicative factor for tracer values 
     63      TYPE(FLD_N), ALLOCATABLE, DIMENSION(:) :: slf_i ! array of namelist informations on the fields to read 
     64      TYPE(FLD_N), DIMENSION(jpmaxtrc) :: sn_trcdta 
     65      REAL(wp)   , DIMENSION(jpmaxtrc) :: rn_trfac    ! multiplicative factor for tracer values 
    6766      !! 
    6867      NAMELIST/namtrc_dta/ sn_trcdta, cn_dir, rn_trfac  
     
    150149      ENDIF 
    151150      ! 
     151      DEALLOCATE( slf_i )          ! deallocate local field structure 
    152152      IF( nn_timing == 1 )  CALL timing_stop('trc_dta_init') 
    153153      ! 
Note: See TracChangeset for help on using the changeset viewer.