Ignore:
Timestamp:
Jul 19, 2024, 10:05:57 AM (4 months ago)
Author:
abarral
Message:

[continued & end] replace netcdf by lmdz_netcdf.F90 wrapper
"use netcdf" is now only used in lmdz_netcdf.F90 (except ecrad and obsolete/)
<include "netcdf.inc"> is now likewise only used in lmdz_netcdf.F90.

systematically specify explicitely <USE lmdz_netcdf, ONLY:> (probably left some missing, to correct later on)

Further replacement of nf_put_* by nf90_put_* (same for _get_)

[minor] replace deprecated boolean operators along the way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d_common/grilles_gcm_netcdf_sub.F90

    r4357 r5075  
    1414  USE comconst_mod, ONLY: cpp, kappa, g, omeg, daysec, rad, pi
    1515  USE comvert_mod, ONLY: presnivs, preff, pa
    16   use netcdf, only: nf90_def_var, nf90_int, nf90_float, nf90_put_var
     16  USE lmdz_netcdf, ONLY: nf90_def_var, nf90_int, nf90_float, nf90_put_var, nf_enddef, &
     17      nf_put_att_text,nf_def_dim,nf_64bit_offset,nf_clobber,nf_create
    1718 
    1819  IMPLICIT NONE
     
    2122  INCLUDE "paramet.h"
    2223  INCLUDE "comgeom.h"
    23   INCLUDE "netcdf.inc"
    2424
    2525!========================
     
    232232
    233233SUBROUTINE handle_err(status)
    234   INCLUDE "netcdf.inc"
     234  USE lmdz_netcdf, ONLY: nf_strerror
    235235
    236236  INTEGER status
    237   IF (status.NE.nf_noerr) THEN
     237  IF (status/=nf_noerr) THEN
    238238     PRINT *,NF_STRERROR(status)
    239239     CALL abort_gcm('grilles_gcm_netcdf','netcdf error',1)
Note: See TracChangeset for help on using the changeset viewer.