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/sbcapr.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/sbcapr.F90

    r8161 r8243  
    1919   USE iom             ! IOM library 
    2020   USE lib_mpp         ! MPP library 
     21   USE iom_def, ONLY : lwxios 
    2122 
    2223   IMPLICIT NONE 
     
    2930   LOGICAL, PUBLIC ::   ln_ref_apr   !: ref. pressure: global mean Patm (F) or a constant (F) 
    3031   REAL(wp)        ::   rn_pref      !  reference atmospheric pressure   [N/m2] 
     32   LOGICAL         ::   ln_apr_sio   ! single processor read flag 
    3133 
    3234   REAL(wp), ALLOCATABLE, SAVE, PUBLIC, DIMENSION(:,:) ::   ssh_ib    ! Inverse barometer now    sea surface height   [m] 
     
    7779      IF( kt == nit000 ) THEN                   ! First call kt=nit000 ! 
    7880         !                                      ! -------------------- ! 
     81         ln_apr_sio = .FALSE. 
    7982         REWIND( numnam_ref )              ! Namelist namsbc_apr in reference namelist : File for atmospheric pressure forcing 
    8083         READ  ( numnam_ref, namsbc_apr, IOSTAT = ios, ERR = 901) 
     
    126129         IF( kt /= nit000 )   ssh_ibb(:,:) = ssh_ib(:,:)    !* Swap of ssh_ib fields 
    127130         ! 
     131         lspr = ln_apr_sio 
    128132         CALL fld_read( kt, nn_fsbc, sf_apr )               !* input Patm provided at kt + nn_fsbc/2 
     133         lspr = .false. 
    129134         ! 
    130135         !                                                  !* update the reference atmospheric pressure (if necessary) 
     
    157162         IF(lwp) WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 
    158163         IF(lwp) WRITE(numout,*) '~~~~' 
    159          CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib ) 
     164         IF( lwxios ) CALL iom_swap(      wxios_context          ) 
     165         CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib, lxios = lwxios ) 
     166         IF( lwxios ) CALL iom_swap(      cxios_context          ) 
    160167      ENDIF 
    161168      ! 
Note: See TracChangeset for help on using the changeset viewer.