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 9124 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90 – NEMO

Ignore:
Timestamp:
2017-12-19T09:26:25+01:00 (6 years ago)
Author:
gm
Message:

dev_merge_2017: ln_timing instead of nn_timing + restricted timing to nemo_init and routine called by step in OPA_SRC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90

    r9116 r9124  
    4848#if defined key_agrif 
    4949   USE agrif_opa_interp ! agrif 
     50   USE agrif_oce 
    5051#endif 
    5152#if defined key_asminc    
     
    5960   USE iom             ! IOM library 
    6061   USE restart         ! only for lrst_oce 
    61    USE timing          ! Timing     
    6262   USE diatmb          ! Top,middle,bottom output 
    63 #if defined key_agrif 
    64    USE agrif_opa_interp ! agrif 
    65    USE agrif_oce 
    66 #endif 
    67 #if defined key_asminc    
    68    USE asminc          ! Assimilation increment 
    69 #endif 
    7063 
    7164   IMPLICIT NONE 
    7265   PRIVATE 
    7366 
    74    PUBLIC dyn_spg_ts        ! routine called in dynspg.F90  
    75    PUBLIC dyn_spg_ts_alloc  !    "      "     "    " 
    76    PUBLIC dyn_spg_ts_init   !    "      "     "    " 
    77    PUBLIC ts_rst            !    "      "     "    " 
     67   PUBLIC dyn_spg_ts        ! called by dyn_spg  
     68   PUBLIC dyn_spg_ts_init   !    -    - dyn_spg_init 
    7869 
    7970   !! Time filtered arrays at baroclinic time step: 
    8071   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   un_adv , vn_adv   !: Advection vel. at "now" barocl. step 
     72   ! 
    8173   INTEGER, SAVE :: icycle      ! Number of barotropic sub-steps for each internal step nn_baro <= 2.5 nn_baro 
    8274   REAL(wp),SAVE :: rdtbt       ! Barotropic time step 
    8375   ! 
    8476   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:)   ::   wgtbtp1, wgtbtp2   ! 1st & 2nd weights used in time filtering of barotropic fields 
    85    REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::  zwz                 ! ff_f/h at F points 
    86    REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::  ftnw, ftne          ! triad of coriolis parameter 
    87    REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::  ftsw, ftse          ! (only used with een vorticity scheme) 
     77   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::   zwz                ! ff_f/h at F points 
     78   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::   ftnw, ftne         ! triad of coriolis parameter 
     79   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::   ftsw, ftse         ! (only used with een vorticity scheme) 
    8880 
    8981   REAL(wp) ::   r1_12 = 1._wp / 12._wp   ! local ratios 
     
    179171      !!---------------------------------------------------------------------- 
    180172      ! 
    181       IF( ln_timing )   CALL timing_start('dyn_spg_ts') 
    182       ! 
    183173      IF( ln_wd_il ) ALLOCATE( zcpx(jpi,jpj), zcpy(jpi,jpj) ) 
    184174      !                                         !* Allocate temporary arrays 
     
    284274            zhf(:,:) = 0._wp 
    285275             
    286 !!gm  assume 0 in both cases (xhich is almost surely WRONG ! ) as hvatf has been removed  
     276!!gm  assume 0 in both cases (which is almost surely WRONG ! ) as hvatf has been removed  
    287277!!gm    A priori a better value should be something like : 
    288278!!gm          zhf(i,j) = masked sum of  ht(i,j) , ht(i+1,j) , ht(i,j+1) , (i+1,j+1)  
     
    12631253         CALL iom_put( "baro_v" , vn_b*vmask(:,:,1)+zmdi*(1-vmask(:,:,1 ) ) )  ! Barotropic  V Velocity 
    12641254      ENDIF 
    1265       IF( ln_timing )   CALL timing_stop('dyn_spg_ts') 
    12661255      ! 
    12671256   END SUBROUTINE dyn_spg_ts 
     
    14871476      ENDIF 
    14881477      ! 
     1478      !                             ! Allocate time-splitting arrays 
     1479      IF( dyn_spg_ts_alloc() /= 0    )   CALL ctl_stop('STOP', 'dyn_spg_init: failed to allocate dynspg_ts  arrays' ) 
     1480      ! 
     1481      !                             ! read restart when needed 
     1482      IF( neuler /= 0 .AND. ln_bt_fw )   CALL ts_rst( nit000, 'READ' ) 
     1483      ! 
    14891484   END SUBROUTINE dyn_spg_ts_init 
    14901485 
Note: See TracChangeset for help on using the changeset viewer.