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 15759 – NEMO

Changeset 15759


Ignore:
Timestamp:
2022-03-18T12:36:32+01:00 (2 years ago)
Author:
smueller
Message:

Refined 'tracer.stat' output and replacement of a non-standard intrinsic function

Location:
NEMO/branches/NERC/dev_r4.0.4_MEDUSA_PSyclone/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/NERC/dev_r4.0.4_MEDUSA_PSyclone/src/OCE/stpctl.F90

    r13137 r15759  
    2828 
    2929   USE netcdf          ! NetCDF library 
     30   USE, INTRINSIC :: ieee_arithmetic 
    3031   IMPLICIT NONE 
    3132   PRIVATE 
     
    171172         &  zmax(4) >= 100._wp .OR.   &                    ! too large sea surface salinity ( > 100 ) 
    172173         &  zmax(4) <    0._wp .OR.   &                    ! too large sea surface salinity (keep this line for sea-ice) 
    173          &  ISNAN( zmax(1) + zmax(2) + zmax(3) ) .OR.  &   ! NaN encounter in the tests 
     174         &  ieee_is_nan( zmax(1) + zmax(2) + zmax(3) ) .OR.  &   ! NaN encounter in the tests 
    174175         &  ABS(   zmax(1) + zmax(2) + zmax(3) ) > HUGE(1._wp) ) THEN    ! Infinity encounter in the tests 
    175176         IF( ll_colruns ) THEN 
  • NEMO/branches/NERC/dev_r4.0.4_MEDUSA_PSyclone/src/TOP/trcstp.F90

    r13323 r15759  
    5757      INTEGER ::   jk, jn   ! dummy loop indices 
    5858      REAL(wp)::   ztrai    ! local scalar 
     59      REAL(wp),DIMENSION(jptra):: zztrai 
    5960      LOGICAL ::   ll_trcstat ! local logical 
    6061      CHARACTER (len=25) ::   charout   ! 
     
    117118         ztrai = 0._wp                                                   !  content of all tracers 
    118119         DO jn = 1, jptra 
    119             ztrai = ztrai + glob_sum( 'trcstp', trn(:,:,:,jn) * cvol(:,:,:)   ) 
     120            zztrai(jn) = glob_sum( 'trcstp', trn(:,:,:,jn) * cvol(:,:,:)   ) 
     121            ztrai = ztrai + zztrai(jn) 
    120122         END DO 
    121          IF( lwm ) WRITE(numstr,9300) kt,  ztrai / areatot 
    122       ENDIF 
    123 9300  FORMAT(i10,D23.16) 
     123         IF( lwm ) WRITE(numstr,9300) kt,  ztrai / areatot, zztrai(:) / areatot 
     124      ENDIF 
     1259300  FORMAT(i10,16D23.16) 
    124126      ! 
    125127      IF( ln_timing )   CALL timing_stop('trc_stp') 
Note: See TracChangeset for help on using the changeset viewer.