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 4345 for branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90 – NEMO

Ignore:
Timestamp:
2014-01-10T16:59:04+01:00 (10 years ago)
Author:
clem
Message:

clean the glob_sum diags and make scalar.nc work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r4220 r4345  
    982982      CHARACTER(LEN=*), INTENT(in) ::   cdname 
    983983      REAL(wp)        , INTENT(in) ::   pfield0d 
     984      REAL(wp)        , DIMENSION(jpi,jpj) ::   zz     ! masson 
    984985#if defined key_iomput 
    985       CALL xios_send_field(cdname, (/pfield0d/)) 
     986      zz(:,:)=pfield0d 
     987      CALL xios_send_field(cdname, zz) 
     988      !CALL xios_send_field(cdname, (/pfield0d/))  
    986989#else 
    987990      IF( .FALSE. )   WRITE(numout,*) cdname, pfield0d   ! useless test to avoid compilation warnings 
     
    11551158      !! 
    11561159      !!---------------------------------------------------------------------- 
    1157       REAL(wp), DIMENSION(1,1) ::   zz = 1. 
     1160      REAL(wp), DIMENSION(1) ::   zz = 1. 
    11581161      !!---------------------------------------------------------------------- 
    11591162      CALL iom_set_domain_attr('scalarpoint', ni_glo=jpnij, nj_glo=1, ibegin=narea, jbegin=1, ni=1, nj=1) 
    1160       CALL iom_set_domain_attr('scalarpoint', data_dim=1) 
    1161       CALL iom_set_domain_attr('scalarpoint', lonvalue=(/ zz /), latvalue=(/ zz /)) 
     1163      CALL iom_set_domain_attr('scalarpoint', data_dim=2, data_ibegin = 1, data_ni = 1, data_jbegin = 1, data_nj = 1) 
     1164      zz=REAL(narea,wp) 
     1165      CALL iom_set_domain_attr('scalarpoint', lonvalue=zz, latvalue=zz) 
    11621166 
    11631167   END SUBROUTINE set_scalar 
Note: See TracChangeset for help on using the changeset viewer.