- Timestamp:
- 2020-12-01T13:17:32+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/test_12905_xios_restart/src/OCE/TRA/trasbc.F90
r13727 r13934 107 107 ! !== Set before sbc tracer content fields ==! 108 108 IF( kt == nit000 ) THEN !* 1st time-step 109 IF( lroxios ) CALL iom_swap( TRIM(crxios_context) )110 109 IF( ln_rstart .AND. & ! Restart: read in restart file 111 110 & iom_varid( numror, 'sbc_hc_b', ldstop = .FALSE. ) > 0 ) THEN … … 113 112 zfact = 0.5_wp 114 113 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 trend116 CALL iom_get( numror, jpdom_auto, 'sbc_sc_b', sbc_tsc_b(:,:,jp_sal) , ldxios = lroxios) ! before salt content sbc trend114 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 117 116 ELSE ! No restart or restart not found: Euler forward time stepping 118 117 zfact = 1._wp … … 120 119 sbc_tsc_b(:,:,:) = 0._wp 121 120 ENDIF 122 IF( lroxios ) CALL iom_swap( TRIM(cxios_context) )123 121 ELSE !* other time-steps: swap of forcing fields 124 122 zfact = 0.5_wp … … 147 145 ! 148 146 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) ) 153 149 ENDIF 154 150 !
Note: See TracChangeset
for help on using the changeset viewer.