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 8243 for branches/UKMO/test_moci_test_suite/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90 – NEMO

Ignore:
Timestamp:
2017-06-29T11:41:55+02:00 (7 years ago)
Author:
andmirek
Message:

#1914 working XIOS read, XIOS write and single processor read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/test_moci_test_suite/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90

    r7924 r8243  
    2727   USE eosbn2 
    2828   USE wrk_nemo        ! Memory allocation 
    29    USE iom_def, ONLY : lxios_read 
     29   USE iom_def, ONLY : lxios_read, lwxios 
    3030 
    3131   IMPLICIT NONE 
     
    5656 
    5757   LOGICAL           , PUBLIC ::   l_rnfcpl = .false.       ! runoffs recieved from oasis 
     58   LOGICAL                    ::   ln_rnf_sio      !: single processor read 
    5859 
    5960   INTEGER , PUBLIC  ::   nkrnf = 0         !: nb of levels over which Kz is increased at river mouths 
     
    172173            &                    'at it= ', kt,' date= ', ndastp 
    173174         IF(lwp) WRITE(numout,*) '~~~~' 
    174          CALL iom_rstput( kt, nitrst, numrow, 'rnf_b' , rnf ) 
    175          CALL iom_rstput( kt, nitrst, numrow, 'rnf_hc_b', rnf_tsc(:,:,jp_tem) ) 
    176          CALL iom_rstput( kt, nitrst, numrow, 'rnf_sc_b', rnf_tsc(:,:,jp_sal) ) 
     175         IF( lwxios ) CALL iom_swap(      wxios_context          ) 
     176         CALL iom_rstput( kt, nitrst, numrow, 'rnf_b' , rnf, lxios = lwxios ) 
     177         CALL iom_rstput( kt, nitrst, numrow, 'rnf_hc_b', rnf_tsc(:,:,jp_tem), lxios = lwxios ) 
     178         CALL iom_rstput( kt, nitrst, numrow, 'rnf_sc_b', rnf_tsc(:,:,jp_sal), lxios = lwxios ) 
     179         IF( lwxios ) CALL iom_swap(      cxios_context          ) 
    177180      ENDIF 
    178181      ! 
     
    258261         &                 sn_rnf, sn_cnf    , sn_s_rnf    , sn_t_rnf  , sn_dep_rnf,   & 
    259262         &                 ln_rnf_mouth      , rn_hrnf     , rn_avt_rnf, rn_rfact,     & 
    260          &                 ln_rnf_depth_ini  , rn_dep_max  , rn_rnf_max, nn_rnf_depth_file 
     263         &                 ln_rnf_depth_ini  , rn_dep_max  , rn_rnf_max, nn_rnf_depth_file, & 
     264         &                 ln_rnf_sio 
    261265      !!---------------------------------------------------------------------- 
    262266      ! 
     
    278282      !                                   ! ============ 
    279283      ! 
     284      ln_rnf_sio = .FALSE. 
    280285      REWIND( numnam_ref )              ! Namelist namsbc_rnf in reference namelist : Runoffs  
    281286      READ  ( numnam_ref, namsbc_rnf, IOSTAT = ios, ERR = 901) 
     
    302307      !                                   ! ================== 
    303308      ! 
     309      lspr = ln_rnf_sio 
    304310      IF( .NOT. l_rnfcpl ) THEN                     
    305311         ALLOCATE( sf_rnf(1), STAT=ierror )         ! Create sf_rnf structure (runoff inflow) 
     
    482488      ENDIF 
    483489      ! 
     490   lspr = .false. 
    484491   END SUBROUTINE sbc_rnf_init 
    485492 
Note: See TracChangeset for help on using the changeset viewer.