Ignore:
Timestamp:
Jul 19, 2024, 10:05:57 AM (2 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/phylmd/iotd_ecrit.F90

    r4593 r5075  
    2222!=================================================================
    2323 
    24       use netcdf, only: nf90_put_var
     24      USE lmdz_netcdf, ONLY: nf90_put_var,nf_inq_varid,nf_enddef,nf_redef,nf_sync,nf_noerr,&
     25              nf_float,nf_def_var
    2526      implicit none
    2627
    2728! Commons
    2829
    29       INCLUDE "netcdf.inc"
    3030      INCLUDE "iotd.h"
    3131
     
    9090
    9191!! Quand on tombe sur la premiere variable on ajoute un pas de temps
    92         if (nom.eq.firstnom) then
     92        if (nom==firstnom) then
    9393        ! We have identified a "first call" (at given date)
    9494
     
    114114!        print*,'IOTD Date ,varid,nid,ntime,date',varid,nid,ntime,date
    115115
    116            if (ierr.ne.NF_NOERR) then
     116           if (ierr/=NF_NOERR) then
    117117              write(*,*) "***** PUT_VAR matter in writediagfi_nc"
    118118              write(*,*) "***** with time"
     
    175175      ierr= NF90_PUT_VAR(nid,varid,zx,corner,edges)
    176176
    177       if (ierr.ne.NF_NOERR) then
     177      if (ierr/=NF_NOERR) then
    178178           write(*,*) "***** PUT_VAR problem in writediagfi"
    179179           write(*,*) "***** with ",nom
Note: See TracChangeset for help on using the changeset viewer.