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 6234 for branches/NERC – NEMO

Changeset 6234 for branches/NERC


Ignore:
Timestamp:
2016-01-13T14:36:18+01:00 (8 years ago)
Author:
jpalmier
Message:

JPALM -- 13-01-2016 -- add trn and tra stat print statement

Location:
branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/TRP/trctrp.F90

    r5729 r6234  
    6565         ! 
    6666                                CALL trc_sbc( kstp )            ! surface boundary condition 
     67# if defined key_debug_medusa 
     68         IF(lwp) WRITE(numout,*) ' MEDUSA trc_trp after trc_sbc at kt =', kt 
     69         CALL trc_rst_tra_stat 
     70         CALL flush(numout) 
     71# endif 
    6772         IF( lk_trabbl )        CALL trc_bbl( kstp )            ! advective (and/or diffusive) bottom boundary layer scheme 
    6873         IF( ln_trcdmp )        CALL trc_dmp( kstp )            ! internal damping trends 
    6974         IF( ln_trcdmp_clo )    CALL trc_dmp_clo( kstp )        ! internal damping trends on closed seas only 
    7075                                CALL trc_adv( kstp )            ! horizontal & vertical advection  
     76# if defined key_debug_medusa 
     77         IF(lwp) WRITE(numout,*) ' MEDUSA trc_trp after trc_adv at kt =', kt 
     78         CALL trc_rst_tra_stat 
     79         CALL flush(numout) 
     80# endif 
    7181                                CALL trc_ldf( kstp )            ! lateral mixing 
    7282         IF( .NOT. lk_offline .AND. lk_zdfkpp )    & 
     
    7686#endif 
    7787                                CALL trc_zdf( kstp )            ! vertical mixing and after tracer fields 
     88# if defined key_debug_medusa 
     89         IF(lwp) WRITE(numout,*) ' MEDUSA trc_trp after trc_zdf at kt =', kt 
     90         CALL trc_rst_tra_stat 
     91         CALL flush(numout) 
     92# endif 
    7893                                CALL trc_nxt( kstp )            ! tracer fields at next time step      
     94# if defined key_debug_medusa 
     95         IF(lwp) WRITE(numout,*) ' MEDUSA trc_trp after trc_nxt at kt =', kt 
     96         CALL trc_rst_tra_stat 
     97         CALL flush(numout) 
     98# endif 
    7999         IF( ln_trcrad )        CALL trc_rad( kstp )            ! Correct artificial negative concentrations 
    80100 
  • branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/trcrst.F90

    r6233 r6234  
    4949   PUBLIC   trc_rst_stat 
    5050   PUBLIC   trc_rst_dia_stat 
     51   PUBLIC   trc_rst_tra_stat 
    5152 
    5253   !! * Substitutions 
     
    569570 
    570571 
     572   SUBROUTINE trc_rst_tra_stat 
     573      !!---------------------------------------------------------------------- 
     574      !!                    ***  trc_rst_tra_stat  *** 
     575      !! 
     576      !! ** purpose  :   Compute tracers statistics - check where crazy values appears 
     577      !!---------------------------------------------------------------------- 
     578      INTEGER  :: jk, jn 
     579      REAL(wp) :: ztraf, zmin, zmax, zmean, zdrift 
     580      REAL(wp), DIMENSION(jpi,jpj,jpk) :: zvol 
     581      !!---------------------------------------------------------------------- 
     582 
     583      IF( lwp ) THEN 
     584         WRITE(numout,*) 
     585         WRITE(numout,*) '           ----SURFACE TRA STAT----             ' 
     586         WRITE(numout,*) 
     587      ENDIF 
     588      ! 
     589      DO jk = 1, jpk 
     590         zvol(:,:,jk) = e1e2t(:,:) * fse3t_a(:,:,jk) * tmask(:,:,jk) 
     591      END DO 
     592      ! 
     593      DO jn = 1, jptra 
     594         ztraf = glob_sum( tra(:,:,1,jn) * zvol(:,:,:) ) 
     595         zmin  = MINVAL( tra(:,:,1,jn), mask= ((tmask(:,:,1).NE.0.)) ) 
     596         zmax  = MAXVAL( tra(:,:,1,jn), mask= ((tmask(:,:,1).NE.0.)) ) 
     597         IF( lk_mpp ) THEN 
     598            CALL mpp_min( zmin )      ! min over the global domain 
     599            CALL mpp_max( zmax )      ! max over the global domain 
     600         END IF 
     601         zmean  = ztraf / areatot 
     602         IF(lwp) WRITE(numout,9001) jn, TRIM( ctrcnm(jn) ), zmean, zmin, zmax 
     603      END DO 
     604      IF(lwp) WRITE(numout,*) 
     6059001  FORMAT(' tracer nb :',i2,'    name :',a10,'    mean :',e18.10,'    min :',e18.10, & 
     606      &      '    max :',e18.10) 
     607      ! 
     608   END SUBROUTINE trc_rst_tra_stat 
     609 
     610 
     611 
    571612   SUBROUTINE trc_rst_dia_stat( dgtr, names) 
    572613      !!---------------------------------------------------------------------- 
     
    595636      END IF 
    596637      zmean  = ztraf / areatot 
    597       IF(lwp) WRITE(numout,9001) TRIM( names ), zmean, zmin, zmax 
     638      IF(lwp) WRITE(numout,9002) TRIM( names ), zmean, zmin, zmax 
    598639      ! 
    599640      IF(lwp) WRITE(numout,*) 
    600 9001  FORMAT(' tracer name :',a10,'    mean :',e18.10,'    min :',e18.10, & 
     6419002  FORMAT(' tracer name :',a10,'    mean :',e18.10,'    min :',e18.10, & 
    601642      &      '    max :',e18.10 ) 
    602643      ! 
  • branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/trcstp.F90

    r6223 r6234  
    9494# if defined key_debug_medusa 
    9595                                   CALL trc_rst_stat  
     96                                   CALL trc_rst_tra_stat 
    9697# endif 
    9798         IF( lrst_trc )            CALL trc_rst_cal  ( kt, 'WRITE' )   ! calendar 
     
    103104         IF(lwp) WRITE(numout,*) ' MEDUSA trc_stp SMS complete at kt =', kt 
    104105         CALL trc_rst_stat 
     106         CALL trc_rst_tra_stat 
    105107         CALL flush(numout) 
    106108# endif 
     
    109111         IF(lwp) WRITE(numout,*) ' MEDUSA trc_stp transport complete at kt =', kt 
    110112         CALL trc_rst_stat 
     113         CALL trc_rst_tra_stat 
    111114         CALL flush(numout) 
    112115# endif 
Note: See TracChangeset for help on using the changeset viewer.