Ignore:
Timestamp:
Jun 18, 2022, 1:32:25 AM (2 years ago)
Author:
lguez
Message:

Use an external updated NetCDF95 library

Remove NetCDF95 from source files. We want to use an up-to-date
NetCDF95 library to read a NetCDF file containing groups, for aerosol
optical properties. It seems complicated to keep the NetCDF95 library
inside LMDZ because:

  • NetCDF95 now also needs a C compiler. I do not know how to make this work with FCM.


  • NetCDF95 cannot be compiled with the -r8 option: some specific procedures in a generic interface become identical.


  • Secondarily, we would have to change the names of files to adhere to the LMDZ standard. We are not glad to do that every time we update.


For now, we can compile using the options -include and -link of
makelmdz_fcm.

As we use an updated NetCDF95 library, we have to update some of the
calls in LMDZ. Those are the calls to nf95_inquire_variable and
nf95_gw_var which used to take a pointer argument and now take an
allocatable argument.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ_ECRad/bld.cfg

    r4177 r4179  
    3838src::ext_src %EXT_SRC
    3939src::Ocean_skin %SRC_PATH/%PHYS/Ocean_skin
    40 src::NetCDF95 %SRC_PATH/misc/NetCDF95
    4140
    4241bld::lib            lmdz
     
    101100bld::excl_dep        use::ifile_attr
    102101bld::excl_dep        use::ixml_tree
     102bld::excl_dep        use::netcdf95
    103103
    104104# Don't generate interface files
Note: See TracChangeset for help on using the changeset viewer.