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 12961 for NEMO/branches/2020/dev_12905_xios_restart/src/TOP/CFC/trcsms_cfc.F90 – NEMO

Ignore:
Timestamp:
2020-05-22T13:51:12+02:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2462: read/write restart with XIOS in TOP (with debug print statements)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_12905_xios_restart/src/TOP/CFC/trcsms_cfc.F90

    r12489 r12961  
    178178         IF(lwp) WRITE(numout,*) '~~~~' 
    179179         jl = 0 
     180         IF( lwxios ) CALL iom_swap(      cwtxios_context         ) 
    180181         DO jn = jp_cfc0, jp_cfc1 
    181182             jl = jl + 1 
    182             CALL iom_rstput( kt, nitrst, numrtw, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jl) ) 
     183            CALL iom_rstput( kt, nitrst, numrtw, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jl), ldxios = lwxios ) 
    183184         END DO 
     185         IF( lwxios ) CALL iom_swap(      cxios_context         ) 
    184186      ENDIF                                             
    185187      ! 
     
    295297         ! 
    296298         jl = 0 
     299         IF(lrxios) CALL iom_swap(crtxios_context) 
    297300         DO jn = jp_cfc0, jp_cfc1 
    298301            jl = jl + 1 
    299             CALL iom_get( numrtr, jpdom_autoglo, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jl) )  
     302            CALL iom_get( numrtr, jpdom_autoglo, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jl), ldxios = lrxios )  
    300303         END DO 
     304         IF(lrxios) CALL iom_swap(cxios_context) 
    301305      ENDIF 
    302306      IF(lwp) WRITE(numout,*) 
Note: See TracChangeset for help on using the changeset viewer.