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 10905 for NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/TOP – NEMO

Ignore:
Timestamp:
2019-04-29T13:50:19+02:00 (5 years ago)
Author:
davestorkey
Message:

2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps :

  1. Alter top-level TOP routines so they use the time-level indices from step.F90 rather than having their own time level indices.
  2. First part of changes for OFF modules.
Location:
NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/TOP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/TOP/trcini.F90

    r10880 r10905  
    4040CONTAINS 
    4141    
    42    SUBROUTINE trc_init 
     42   SUBROUTINE trc_init( Kbb, Kmm, Kaa ) 
    4343      !!--------------------------------------------------------------------- 
    4444      !!                     ***  ROUTINE trc_init  *** 
     
    5252      !!                or read data or analytical formulation 
    5353      !!--------------------------------------------------------------------- 
     54      !! Time level indices only required for call to update_pointers_trc 
     55      !! To be removed after IMMERSE development finished.  
     56      INTEGER, INTENT( in ) :: Kbb, Kmm, Kaa ! time level indices 
    5457      ! 
    5558      IF( ln_timing )   CALL timing_start('trc_init') 
     
    6366      CALL top_alloc()   ! allocate TOP arrays 
    6467 
    65       ! Initialise time level indices 
    66       Nbb = 1; Nnn = 2; Naa = 3; Nrhs = Naa 
    67  
    6868      ! Initialisation of temporary pointers (to be deleted after development finished) 
    69       CALL update_pointers_trc() 
     69      CALL update_pointers_trc( Kbb, Kmm, Kaa ) 
    7070      ! 
    7171      IF(.NOT.ln_trcdta )   ln_trc_ini(:) = .FALSE. 
  • NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/TOP/trcstp.F90

    r10880 r10905  
    3232   PUBLIC   update_pointers_trc ! called in initialisation 
    3333 
    34    !!---------------------------------------------------------------------- 
    35    !! time level indices 
    36    !!---------------------------------------------------------------------- 
    37    INTEGER, PUBLIC :: Nbb, Nnn, Naa, Nrhs               !! used by trc_init 
    38  
    3934   LOGICAL  ::   llnew                   ! ??? 
    4035   REAL(wp) ::   rdt_sampl               ! ??? 
     
    5045CONTAINS 
    5146 
    52    SUBROUTINE trc_stp( kt ) 
     47   SUBROUTINE trc_stp( kt, Kbb, Kmm, Krhs, Kaa ) 
    5348      !!------------------------------------------------------------------- 
    5449      !!                     ***  ROUTINE trc_stp  *** 
     
    5954      !!                Update the passive tracers 
    6055      !!------------------------------------------------------------------- 
    61       INTEGER, INTENT( in ) ::   kt   ! ocean time-step index 
     56      INTEGER, INTENT( in ) :: kt                  ! ocean time-step index 
     57      INTEGER, INTENT( in ) :: Kbb, Kmm, Krhs, Kaa ! time level indices 
    6258      ! 
    6359      INTEGER ::   jk, jn   ! dummy loop indices 
     
    106102                                   CALL trc_wri      ( kt )       ! output of passive tracers with iom I/O manager 
    107103                                   CALL trc_sms      ( kt )       ! tracers: sinks and sources 
    108                                    CALL trc_trp      ( kt, Nbb, Nnn, Nrhs, Naa )       ! transport of passive tracers 
     104                                   CALL trc_trp      ( kt, Kbb, Kmm, Krhs, Kaa )       ! transport of passive tracers 
    109105         IF( kt == nittrc000 ) THEN 
    110106            CALL iom_close( numrtr )       ! close input tracer restart file 
     
    131127   END SUBROUTINE trc_stp 
    132128 
    133    SUBROUTINE update_pointers_trc 
     129   SUBROUTINE update_pointers_trc( Kbb, Kmm, Kaa ) 
    134130      !!---------------------------------------------------------------------- 
    135131      !!                     ***  ROUTINE update_pointers_trc  *** 
     
    140136      !! ** Method  : 
    141137      !!---------------------------------------------------------------------- 
    142  
    143       trb => tr(:,:,:,:,Nbb); trn => tr(:,:,:,:,Nnn); tra => tr(:,:,:,:,Naa) 
     138      INTEGER, INTENT( in ) :: Kbb, Kmm, Kaa ! time level indices 
     139 
     140      trb => tr(:,:,:,:,Kbb); trn => tr(:,:,:,:,Kmm); tra => tr(:,:,:,:,Kaa) 
    144141 
    145142   END SUBROUTINE update_pointers_trc 
Note: See TracChangeset for help on using the changeset viewer.