Changeset 5073 for LMDZ6/trunk/libf/misc


Ignore:
Timestamp:
Jul 18, 2024, 4:57:05 PM (2 months ago)
Author:
abarral
Message:

Remove all NC_DOUBLE uses outside of lmdz_netcdf.F90 (except in obsolete/, which I hope we'll ditch soon...)
Note: make sure to check convergence at some point, it's possible that we've messed up some when replacing nf_* by nf90_* calls
(lint) replace obsolete logical operators along the way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/misc/lmdz_netcdf.F90

    r5071 r5073  
    33! It serves two primary functions:
    44!  1) Turn netcdf into a "real" fortran module, without the INCLUDE call
    5 !  2) Handle the NC_DOUBLE CPP key. Ideally, this key should ONLY appear here (WIP). TODO
     5!  2) Handle the NC_DOUBLE CPP key. This key should ONLY be used here.
    66! Ideally, the "real" netcdf module/headers should ONLY be called here. (WIP) TODO
    77! ---------------------------------------------
    8 ! TODO check that none of the wrapped functions remain elsewhere
    98! TODO check all uses of `use netcdf` + netcdf.inc
    109
     
    1514  ! Note: as we want to expose netcdf through this module, we don't make all PRIVATE by default as usual
    1615  ! Instead, explicitely make PRIVATE the relevant items.
    17   PRIVATE CPP_NC_DOUBLE
    1816
    1917  INCLUDE 'netcdf.inc'
    2018
    2119#ifdef NC_DOUBLE
    22   LOGICAL, PARAMETER :: CPP_NC_DOUBLE = .TRUE.  ! Define a variable to reduce use of preprocessor ahead
    2320  INTEGER, PARAMETER :: NF90_FORMAT = NF90_DOUBLE
    24   INTEGER, PARAMETER :: REAL_FORMAT = REAL64
    2521#else
    26   LOGICAL, PARAMETER :: CPP_NC_DOUBLE = .FALSE.
    2722  INTEGER, PARAMETER :: NF90_FORMAT = NF90_FLOAT
    28   INTEGER, PARAMETER :: REAL_FORMAT = REAL32
    2923#endif
    30 CONTAINS
    31 
    3224END MODULE lmdz_netcdf
Note: See TracChangeset for help on using the changeset viewer.