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 8308 for branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO – NEMO

Ignore:
Timestamp:
2017-07-10T14:39:17+02:00 (7 years ago)
Author:
timgraham
Message:

Changes required to make scalar diagnostics work correctly in XIOS2. Note that a new grid definition is needed in the iodef.xml file as a result of this change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r8104 r8308  
    10341034   !!---------------------------------------------------------------------- 
    10351035   SUBROUTINE iom_g0d_intatt( kiomid, cdatt, pvar ) 
    1036       INTEGER         , INTENT(in   )                 ::   kiomid    ! Identifier of the file 
     1036      INTEGER         , INTENT(in   )                 ::   kiomid    !Identifier of the file 
    10371037      CHARACTER(len=*), INTENT(in   )                 ::   cdatt     ! Name of the attribute 
    10381038      INTEGER         , INTENT(  out)                 ::   pvar      ! read field 
     
    11501150      CHARACTER(LEN=*), INTENT(in) ::   cdname 
    11511151      REAL(wp)        , INTENT(in) ::   pfield0d 
     1152#if ! defined key_xios2 
    11521153      REAL(wp)        , DIMENSION(jpi,jpj) ::   zz     ! masson 
     1154#endif 
    11531155#if defined key_iomput 
     1156#if ! defined key_xios2 
    11541157      zz(:,:)=pfield0d 
    11551158      CALL xios_send_field(cdname, zz) 
    1156       !CALL xios_send_field(cdname, (/pfield0d/))  
     1159#else 
     1160      CALL xios_send_field(cdname, (/pfield0d/))  
     1161#endif 
    11571162#else 
    11581163      IF( .FALSE. )   WRITE(numout,*) cdname, pfield0d   ! useless test to avoid compilation warnings 
Note: See TracChangeset for help on using the changeset viewer.