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

    r6486 r8243  
    3535   INTEGER , PARAMETER ::   jp_emp  = 5   ! index of evaporation-precipation file 
    3636   TYPE(FLD), ALLOCATABLE, DIMENSION(:) ::   sf    ! structure of input fields (file informations, fields read) 
     37   LOGICAL, PRIVATE    ::   ln_lfx_sio    ! single processor read flag 
    3738 
    3839   !! * Substitutions 
     
    8687      TYPE(FLD_N), DIMENSION(jpfld) ::   slf_i                    ! array of namelist information structures 
    8788      TYPE(FLD_N) ::   sn_utau, sn_vtau, sn_qtot, sn_qsr, sn_emp  ! informations about the fields to be read 
    88       NAMELIST/namsbc_flx/ cn_dir, sn_utau, sn_vtau, sn_qtot, sn_qsr, sn_emp 
     89      NAMELIST/namsbc_flx/ cn_dir, sn_utau, sn_vtau, sn_qtot, sn_qsr, sn_emp, ln_lfx_sio 
    8990      !!--------------------------------------------------------------------- 
    9091      ! 
    9192      IF( kt == nit000 ) THEN                ! First call kt=nit000   
    9293         ! set file information 
     94         ln_lfx_sio = .FALSE. 
    9395         REWIND( numnam_ref )              ! Namelist namsbc_flx in reference namelist : Files for fluxes 
    9496         READ  ( numnam_ref, namsbc_flx, IOSTAT = ios, ERR = 901) 
     
    124126      ENDIF 
    125127 
     128      lspr = ln_lfx_sio 
    126129      CALL fld_read( kt, nn_fsbc, sf )                            ! input fields provided at the current time-step 
     130      lspr = .false. 
    127131      
    128132      IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN                        ! update ocean fluxes at each SBC frequency 
     
    170174               CALL prihre( sf(jf)%fnow, jpi, jpj, 1, jpi, 20, 1, jpj, 10, zfact, numout ) 
    171175            END DO 
    172             CALL FLUSH(numout) 
    173176         ENDIF 
    174177         ! 
Note: See TracChangeset for help on using the changeset viewer.