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

Ignore:
Timestamp:
2016-01-06T17:21:02+01:00 (8 years ago)
Author:
jpalmier
Message:

JPALM -- 06-01-2016 -- debugg CFC diag-restart reading and writing

File:
1 edited

Legend:

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

    r6213 r6220  
    300300      fq1 = MAXVAL(qint_idtra(:,:,1)) 
    301301      fq2 = SUM(qint_idtra(:,:,1)) 
    302       if (lwp) write (numout,'(a,3f15.5)') 'qint_idtra ', fq0, fq1, fq2 
     302      if (lwp) write (numout,'(a,3f15.5)') 'qint_IDTRA ', fq0, fq1, fq2 
    303303#endif 
    304304      ! 
    305305#if defined key_cfc 
    306       DO jn = jp_cfc0, jp_cfc1 
     306      DO jl = 1, jp_cfc 
     307         jn = jp_cfc0 + jl - 1 
    307308         IF( iom_varid( numrtr, 'qint_'//ctrcnm(jn), ldstop = .FALSE. ) > 0 ) THEN 
    308309            !! YES; in which case read them 
    309310            !! 
    310311            IF(lwp) WRITE(numout,*) ' CFC averaged properties present - reading in ...' 
    311             CALL iom_get( numrtr, jpdom_autoglo, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jn) ) 
     312            CALL iom_get( numrtr, jpdom_autoglo, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jl) ) 
    312313         ELSE 
    313314            !! NO; in which case set them to zero 
     
    319320         !! calculate stats on these fields 
    320321         IF(lwp) WRITE(numout,*) ' CFC averaged properties stats (min, max, sum) ...' 
    321          fq0 = MINVAL(qint_cfc(:,:,jn)) 
    322          fq1 = MAXVAL(qint_cfc(:,:,jn)) 
    323          fq2 = SUM(qint_cfc(:,:,jn)) 
     322         fq0 = MINVAL(qint_cfc(:,:,jl)) 
     323         fq1 = MAXVAL(qint_cfc(:,:,jl)) 
     324         fq2 = SUM(qint_cfc(:,:,jl)) 
    324325         if (lwp) write (numout,'(a,3f15.5)') 'qint_'//ctrcnm(jn), fq0, fq1, fq2 
    325326      END DO 
     
    336337      INTEGER, INTENT( in ) ::   kt    ! ocean time-step index 
    337338      !! 
    338       INTEGER  :: jn 
     339      INTEGER  :: jn, jl 
    339340      REAL(wp) :: zarak0 
    340341      !! AXY (05/11/13): temporary variables 
     
    459460      fq1 = MAXVAL(qint_idtra(:,:,1)) 
    460461      fq2 = SUM(qint_idtra(:,:,1)) 
    461       if (lwp) write (numout,'(a,3f15.5)') 'qint_idtra ', fq0, fq1, fq2 
     462      if (lwp) write (numout,'(a,3f15.5)') 'qint_IDTRA ', fq0, fq1, fq2 
    462463#endif 
    463464      ! 
    464465#if defined key_cfc 
    465       DO jn = jp_cfc0, jp_cfc1 
     466      DO jl = 1, jp_cfc 
     467         jn = jp_cfc0 + jl - 1 
    466468         IF(lwp) WRITE(numout,*) ' CFC averaged properties - writing out ...' 
    467          CALL iom_rstput( kt, nitrst, numrtw, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jn) ) 
     469         CALL iom_rstput( kt, nitrst, numrtw, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jl) ) 
    468470         !! 
    469471         !! calculate stats on these fields 
    470472         IF(lwp) WRITE(numout,*) ' CFC averaged properties stats (min, max, sum) ...' 
    471          fq0 = MINVAL(qint_cfc(:,:,jn)) 
    472          fq1 = MAXVAL(qint_cfc(:,:,jn)) 
    473          fq2 = SUM(qint_cfc(:,:,jn)) 
     473         fq0 = MINVAL(qint_cfc(:,:,jl)) 
     474         fq1 = MAXVAL(qint_cfc(:,:,jl)) 
     475         fq2 = SUM(qint_cfc(:,:,jl)) 
    474476         if (lwp) write (numout,'(a,3f15.5)') 'qint_'//ctrcnm(jn), fq0, fq1, fq2 
    475477      END DO 
Note: See TracChangeset for help on using the changeset viewer.