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 11844 for NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/ISF/isfutils.F90 – NEMO

Ignore:
Timestamp:
2019-11-01T21:54:15+01:00 (5 years ago)
Author:
mathiot
Message:

rm useless lbclnk + fix reproducibility WED025 + add isf debug option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/ISF/isfutils.F90

    r11521 r11844  
    6565      !!-------------------------------------------------------------------- 
    6666      ! 
    67       zsum = glob_sum_full( 'debug', pvar(:,:) ) 
    68       zmin = MINVAL( pvar(:,:) ) ; CALL mpp_min( 'debug', zmin ) ! min over the global domain 
    69       zmax = MAXVAL( pvar(:,:) ) ; CALL mpp_max( 'debug', zmax ) ! max over the global domain 
     67      zsum = glob_sum( 'debug', pvar(:,:) ) 
     68      zmin = glob_min( 'debug', pvar(:,:) ) 
     69      zmax = glob_max( 'debug', pvar(:,:) ) 
    7070      ! 
    71       WRITE(numout,*) TRIM(cdtxt),' (min, max, sum) : ',zmin, zmax, zsum 
     71      IF (lwp) WRITE(numout,*) TRIM(cdtxt),' (min, max, sum) : ',zmin, zmax, zsum 
    7272      ! 
    73       FLUSH(numout) 
     73      CALL FLUSH(numout) 
     74      ! 
    7475   END SUBROUTINE debug2d 
    7576 
     
    8990      !!-------------------------------------------------------------------- 
    9091      ! 
    91       zsum = glob_sum_full( 'debug', pvar(:,:,:) ) 
    92       zmin = MINVAL( pvar(:,:,:) ) ; CALL mpp_min( 'debug', zmin ) ! min over the global domain 
    93       zmax = MAXVAL( pvar(:,:,:) ) ; CALL mpp_max( 'debug', zmax ) ! max over the global domain 
     92      zsum = glob_sum( 'debug', pvar(:,:,:) ) 
     93      zmin = glob_min( 'debug', pvar(:,:,:) ) 
     94      zmax = glob_max( 'debug', pvar(:,:,:) ) 
    9495      ! 
    95       WRITE(numout,*) TRIM(cdtxt),' (min, max, sum) : ',zmin, zmax, zsum 
     96      IF (lwp) WRITE(numout,*) TRIM(cdtxt),' (min, max, sum) : ',zmin, zmax, zsum 
    9697      ! 
    97       FLUSH(numout) 
     98      CALL FLUSH(numout) 
    9899      ! 
    99100   END SUBROUTINE debug3d 
Note: See TracChangeset for help on using the changeset viewer.