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/SBC/sbcfwb.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/SBC/sbcfwb.F90

    r9019 r9124  
    2525   USE in_out_manager ! I/O manager 
    2626   USE lib_mpp        ! distribued memory computing library 
    27    USE wrk_nemo       ! work arrays 
    28    USE timing         ! Timing 
    2927   USE lbclnk         ! ocean lateral boundary conditions 
    3028   USE lib_fortran    !  
     
    7068      REAL(wp) ::   z_fwf, z_fwf_nsrf, zsum_fwf, zsum_erp                ! local scalars 
    7169      REAL(wp) ::   zsurf_neg, zsurf_pos, zsurf_tospread, zcoef          !   -      - 
    72       REAL(wp), POINTER, DIMENSION(:,:) ::   ztmsk_neg, ztmsk_pos, z_wgt ! 2D workspaces 
    73       REAL(wp), POINTER, DIMENSION(:,:) ::   ztmsk_tospread, zerp_cor    !   -      - 
     70      REAL(wp), ALLOCATABLE, DIMENSION(:,:) ::   ztmsk_neg, ztmsk_pos, z_wgt ! 2D workspaces 
     71      REAL(wp), ALLOCATABLE, DIMENSION(:,:) ::   ztmsk_tospread, zerp_cor    !   -      - 
    7472      !!---------------------------------------------------------------------- 
    75       ! 
    76       IF( nn_timing == 1 )  CALL timing_start('sbc_fwb') 
    77       ! 
    78       CALL wrk_alloc( jpi,jpj, ztmsk_neg, ztmsk_pos, ztmsk_tospread, z_wgt, zerp_cor ) 
    7973      ! 
    8074      IF( kt == nit000 ) THEN 
     
    154148      CASE ( 3 )                             !==  global fwf set to zero and spread out over erp area  ==! 
    155149         ! 
     150         ALLOCATE( ztmsk_neg(jpi,jpj) , ztmsk_pos(jpi,jpj) , ztmsk_tospread(jpi,jpj) , z_wgt(jpi,jpj) , zerp_cor(jpi,jpj) ) 
     151         ! 
    156152         IF( MOD( kt-1, kn_fsbc ) == 0 ) THEN 
    157153            ztmsk_pos(:,:) = tmask_i(:,:)                      ! Select <0 and >0 area of erp 
     
    203199            ENDIF 
    204200         ENDIF 
     201         DEALLOCATE( ztmsk_neg , ztmsk_pos , ztmsk_tospread , z_wgt , zerp_cor ) 
    205202         ! 
    206203      CASE DEFAULT                           !==  you should never be there  ==! 
     
    209206      END SELECT 
    210207      ! 
    211       CALL wrk_dealloc( jpi,jpj, ztmsk_neg, ztmsk_pos, ztmsk_tospread, z_wgt, zerp_cor ) 
    212       ! 
    213       IF( nn_timing == 1 )  CALL timing_stop('sbc_fwb') 
    214       ! 
    215208   END SUBROUTINE sbc_fwb 
    216209 
Note: See TracChangeset for help on using the changeset viewer.