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 11362 for NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/src/OCE/IOM/iom.F90 – NEMO

Ignore:
Timestamp:
2019-07-29T13:54:58+02:00 (5 years ago)
Author:
clem
Message:

debug the ice output by adding a missing value to the outputed fields. Unfortunately this method imposes a value of 1.e20 where there is no ice, which is annoying when using ncview for example, but this is the only way (from what I know) to output averages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/src/OCE/IOM/iom.F90

    r11223 r11362  
    5858   PUBLIC iom_init, iom_swap, iom_open, iom_close, iom_setkt, iom_varid, iom_get 
    5959   PUBLIC iom_chkatt, iom_getatt, iom_putatt, iom_getszuld, iom_rstput, iom_delay_rst, iom_put 
    60    PUBLIC iom_use, iom_context_finalize 
     60   PUBLIC iom_use, iom_context_finalize, iom_miss_val 
    6161 
    6262   PRIVATE iom_rp0d, iom_rp1d, iom_rp2d, iom_rp3d 
     
    16711671      CHARACTER(LEN=*), INTENT(in) ::   cdname 
    16721672      REAL(wp)        , INTENT(in) ::   pfield0d 
    1673       REAL(wp)        , DIMENSION(jpi,jpj) ::   zz     ! masson 
     1673!!      REAL(wp)        , DIMENSION(jpi,jpj) ::   zz     ! masson 
    16741674#if defined key_iomput 
    1675       zz(:,:)=pfield0d 
    1676       CALL xios_send_field(cdname, zz) 
    1677       !CALL xios_send_field(cdname, (/pfield0d/))  
     1675!!clem      zz(:,:)=pfield0d 
     1676!!clem      CALL xios_send_field(cdname, zz) 
     1677      CALL xios_send_field(cdname, (/pfield0d/))  
    16781678#else 
    16791679      IF( .FALSE. )   WRITE(numout,*) cdname, pfield0d   ! useless test to avoid compilation warnings 
     
    23912391   !!   NOT 'key_iomput'                               a few dummy routines 
    23922392   !!---------------------------------------------------------------------- 
    2393  
    23942393   SUBROUTINE iom_setkt( kt, cdname ) 
    23952394      INTEGER         , INTENT(in)::   kt  
     
    24062405 
    24072406   LOGICAL FUNCTION iom_use( cdname ) 
    2408       !!---------------------------------------------------------------------- 
    2409       !!---------------------------------------------------------------------- 
    24102407      CHARACTER(LEN=*), INTENT(in) ::   cdname 
    2411       !!---------------------------------------------------------------------- 
    24122408#if defined key_iomput 
    24132409      iom_use = xios_field_is_active( cdname ) 
     
    24162412#endif 
    24172413   END FUNCTION iom_use 
    2418     
     2414 
     2415   SUBROUTINE iom_miss_val( cdname, pmiss_val ) 
     2416      CHARACTER(LEN=*), INTENT(in ) ::   cdname 
     2417      REAL(wp)        , INTENT(out) ::   pmiss_val    
     2418#if defined key_iomput 
     2419      ! get missing value 
     2420      CALL xios_get_field_attr( cdname, default_value = pmiss_val ) 
     2421#else 
     2422      IF( .FALSE. )   WRITE(numout,*) cdname, pmiss_val   ! useless test to avoid compilation warnings 
     2423#endif 
     2424   END SUBROUTINE iom_miss_val 
     2425   
    24192426   !!====================================================================== 
    24202427END MODULE iom 
Note: See TracChangeset for help on using the changeset viewer.