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/libf/phylmd/open_climoz_m.F90

    r2821 r4179  
    2727! Arguments (OpenMP shared):
    2828  INTEGER, INTENT(OUT):: ncid      !--- "climoz_LMDZ.nc" identifier
    29   REAL, POINTER :: press_in_cen(:) !--- at cells centers
    30   REAL, POINTER :: press_in_edg(:) !--- at the interfaces (pressure intervals)
    31   REAL, POINTER :: time_in(:)      !--- records times, in days since Jan. 1st
     29  REAL, allocatable, intent(out):: press_in_cen(:) !--- at cells centers
     30  REAL, allocatable, INTENT(OUT):: press_in_edg(:) !--- at the interfaces (pressure intervals)
     31  REAL, allocatable, intent(out):: time_in(:)      !--- records times, in days since Jan. 1st
    3232  LOGICAL, INTENT(IN) :: daily     !--- daily files (calendar dependent days nb)
    3333  LOGICAL, INTENT(IN) :: adjust    !--- tropopause adjustement required
Note: See TracChangeset for help on using the changeset viewer.