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 2368 for branches/nemo_v3_3_beta/NEMOGCM/EXTERNAL/IOIPSL/src/histcom.f90 – NEMO

Ignore:
Timestamp:
2010-11-09T16:38:45+01:00 (14 years ago)
Author:
acc
Message:

nemo_v3_3_beta. Changes to code relating to key_netcdf4 option to provide more robust compilation. See #755 and #754

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/EXTERNAL/IOIPSL/src/histcom.f90

    r2364 r2368  
    77!- 
    88  USE netcdf 
    9   USE nc4dummy ! needed to allow compilation with netcdf3 libraries 
     9  USE nc4interface ! needed to allow compilation with netcdf3 libraries 
    1010!- 
    1111  USE stringop, ONLY : nocomma,cmpblank,findpos,find_str,strlowercase 
     
    3636!- to describe the grid, just two vectors. 
    3737!--------------------------------------------------------------------- 
    38 !- 
    39   TYPE, PUBLIC :: snc4_ctl    !: netcdf4 chunking control structure  
    40                               !: (optional on histbeg and histend calls) 
    41      SEQUENCE 
    42      INTEGER :: ni 
    43      INTEGER :: nj 
    44      INTEGER :: nk 
    45      LOGICAL :: luse 
    46   END TYPE snc4_ctl 
    4738!- 
    4839  INTERFACE histbeg 
     
    428419!- 
    429420  IF (PRESENT(snc4chunks)) THEN 
    430     IF (snc4chunks%luse) m_c = NF90_HDF5  ! will conflict if compiling with netcdf4 libraries without "key_netcdf4" 
     421    IF (snc4chunks%luse) CALL get_nf90_symbol("NF90_HDF5", m_c) 
    431422  ENDIF 
    432423!- 
     
    15641555           ichunksz(3) = MIN(ichunksz(3), MAX((ichunksz(3)-1)/snc4chunks%nk + 1, 1)) 
    15651556           ! Always use a chunk size of 1 for the unlimited dimension 
    1566            iret = NF90_DEF_VAR_CHUNKING(nfid, nvid, ichunkalg, ichunksz) ! will conflict if compiling with netcdf4 libraries without "key_netcdf4" 
    1567  
    1568            iret = NF90_DEF_VAR_DEFLATE(nfid, nvid, ishuffle, ideflate, ideflate_level) ! will conflict if compiling with netcdf4 libraries without "key_netcdf4" 
    1569  
     1557           iret = SET_NF90_DEF_VAR_CHUNKING(nfid, nvid, ichunkalg, ichunksz) 
     1558           iret = SET_NF90_DEF_VAR_DEFLATE(nfid, nvid, ishuffle, ideflate, ideflate_level) 
    15701559          ENDIF 
    15711560        ENDIF 
Note: See TracChangeset for help on using the changeset viewer.