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 13934 for NEMO/branches/2020/test_12905_xios_restart/src/OCE/TRA/trasbc.F90 – NEMO

Ignore:
Timestamp:
2020-12-01T13:17:32+01:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2462: update test branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/test_12905_xios_restart/src/OCE/TRA/trasbc.F90

    r13727 r13934  
    107107      !                             !==  Set before sbc tracer content fields  ==! 
    108108      IF( kt == nit000 ) THEN             !* 1st time-step 
    109          IF( lroxios ) CALL iom_swap( TRIM(crxios_context) ) 
    110109         IF( ln_rstart .AND.    &               ! Restart: read in restart file 
    111110              & iom_varid( numror, 'sbc_hc_b', ldstop = .FALSE. ) > 0 ) THEN 
     
    113112            zfact = 0.5_wp 
    114113            sbc_tsc(:,:,:) = 0._wp 
    115             CALL iom_get( numror, jpdom_auto, 'sbc_hc_b', sbc_tsc_b(:,:,jp_tem), ldxios = lroxios )   ! before heat content sbc trend 
    116             CALL iom_get( numror, jpdom_auto, 'sbc_sc_b', sbc_tsc_b(:,:,jp_sal), ldxios = lroxios )   ! before salt content sbc trend 
     114            CALL iom_get( numror, jpdom_auto, 'sbc_hc_b', sbc_tsc_b(:,:,jp_tem) )   ! before heat content sbc trend 
     115            CALL iom_get( numror, jpdom_auto, 'sbc_sc_b', sbc_tsc_b(:,:,jp_sal) )   ! before salt content sbc trend 
    117116         ELSE                                   ! No restart or restart not found: Euler forward time stepping 
    118117            zfact = 1._wp 
     
    120119            sbc_tsc_b(:,:,:) = 0._wp 
    121120         ENDIF 
    122          IF( lroxios ) CALL iom_swap( TRIM(cxios_context) ) 
    123121      ELSE                                !* other time-steps: swap of forcing fields 
    124122         zfact = 0.5_wp 
     
    147145      !                   
    148146      IF( lrst_oce ) THEN           !==  write sbc_tsc in the ocean restart file  ==! 
    149          IF( lwxios ) CALL iom_swap(      cwxios_context          ) 
    150          CALL iom_rstput( kt, nitrst, numrow, 'sbc_hc_b', sbc_tsc(:,:,jp_tem), ldxios = lwxios ) 
    151          CALL iom_rstput( kt, nitrst, numrow, 'sbc_sc_b', sbc_tsc(:,:,jp_sal), ldxios = lwxios ) 
    152          IF( lwxios ) CALL iom_swap(      cxios_context          ) 
     147         CALL iom_rstput( kt, nitrst, numrow, 'sbc_hc_b', sbc_tsc(:,:,jp_tem) ) 
     148         CALL iom_rstput( kt, nitrst, numrow, 'sbc_sc_b', sbc_tsc(:,:,jp_sal) ) 
    153149      ENDIF 
    154150      ! 
Note: See TracChangeset for help on using the changeset viewer.