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/physiq_mod.F90

    r4170 r4179  
    11091109    !     climatology and the daylight climatology
    11101110    INTEGER,SAVE :: ncid_climoz                ! NetCDF file identifier
    1111     REAL, POINTER, SAVE :: press_cen_climoz(:) ! Pressure levels
    1112     REAL, POINTER, SAVE :: press_edg_climoz(:) ! Edges of pressure intervals
    1113     REAL, POINTER, SAVE :: time_climoz(:)      ! Time vector
     1111    REAL, allocatable, SAVE :: press_cen_climoz(:) ! Pressure levels
     1112    REAL, allocatable, SAVE :: press_edg_climoz(:) ! Edges of pressure intervals
     1113    REAL, allocatable, SAVE :: time_climoz(:)      ! Time vector
    11141114    CHARACTER(LEN=13), PARAMETER :: vars_climoz(2) &
    11151115                                  = ["tro3         ","tro3_daylight"]
     
    53515351         IF (read_climoz >= 1) THEN
    53525352           IF (is_mpi_root) CALL nf95_close(ncid_climoz)
    5353             DEALLOCATE(press_edg_climoz) ! pointer
    5354             DEALLOCATE(press_cen_climoz) ! pointer
     5353            DEALLOCATE(press_edg_climoz)
     5354            DEALLOCATE(press_cen_climoz)
    53555355         ENDIF
    53565356       
Note: See TracChangeset for help on using the changeset viewer.