Ignore:
Timestamp:
Jul 19, 2024, 10:05:57 AM (6 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

Location:
LMDZ6/trunk/libf/dyn3d
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d/dynetat0.F90

    r4984 r5075  
    88  USE infotrac,    ONLY: nqtot, tracers, niso, iqIsoPha, iH2O, isoName
    99  USE strings_mod, ONLY: maxlen, msg, strStack, real2str, int2str
    10   USE netcdf,      ONLY: NF90_OPEN,  NF90_NOWRITE, NF90_INQ_VARID, &
     10  USE lmdz_netcdf,      ONLY: NF90_OPEN,  NF90_NOWRITE, NF90_INQ_VARID, &
    1111                         NF90_CLOSE, NF90_GET_VAR, NF90_NoErr
    1212  USE readTracFiles_mod, ONLY: new2oldH2O, newHNO3, oldHNO3, getKey
  • LMDZ6/trunk/libf/dyn3d/dynredem.F90

    r4389 r5075  
    99  USE strings_mod, ONLY: maxlen
    1010  USE infotrac, ONLY: nqtot, tracers
    11   USE netcdf, ONLY: NF90_CREATE, NF90_DEF_DIM, NF90_INQ_VARID, NF90_GLOBAL,    &
     11  USE lmdz_netcdf, ONLY: NF90_CREATE, NF90_DEF_DIM, NF90_INQ_VARID, NF90_GLOBAL,    &
    1212                    NF90_CLOSE,  NF90_PUT_ATT, NF90_UNLIMITED, NF90_CLOBBER,   &
    1313                    NF90_64BIT_OFFSET
     
    169169  USE infotrac, ONLY: nqtot, tracers, type_trac
    170170  USE control_mod
    171   USE netcdf,   ONLY: NF90_OPEN,  NF90_NOWRITE, NF90_GET_VAR, NF90_INQ_VARID,  &
     171  USE lmdz_netcdf,   ONLY: NF90_OPEN,  NF90_NOWRITE, NF90_GET_VAR, NF90_INQ_VARID,  &
    172172                      NF90_CLOSE, NF90_WRITE,   NF90_PUT_VAR, NF90_NoErr
    173173  USE dynredem_mod, ONLY: dynredem_write_u, dynredem_write_v, dynredem_read_u, &
  • LMDZ6/trunk/libf/dyn3d/dynredem_mod.F90

    r5069 r5075  
    11MODULE dynredem_mod
    22
    3   USE lmdz_netcdf
     3  USE lmdz_netcdf, ONLY: nf90_strerror,nf90_noerr,nf90_redef,nf90_put_var,nf90_enddef,nf90_put_att,&
     4          nf90_inq_varid,nf90_get_var,nf90_format,nf90_def_var
    45  IMPLICIT NONE; PRIVATE
    56  PUBLIC :: dynredem_write_u, dynredem_write_v, dynredem_read_u, err
  • LMDZ6/trunk/libf/dyn3d/guide_mod.F90

    r5071 r5075  
    7272  SUBROUTINE guide_init
    7373
    74     use netcdf, only: nf90_noerr
     74    use lmdz_netcdf, only: nf90_noerr
    7575    USE control_mod, ONLY: day_step
    7676    USE serre_mod, ONLY: grossismx
  • LMDZ6/trunk/libf/dyn3d/iniacademic.F90

    r4984 r5075  
    2222  USE ener_mod, ONLY: etot0,ptot0,ztot0,stot0,ang0
    2323  USE readTracFiles_mod, ONLY: addPhase
    24   use netcdf, only : NF90_NOWRITE,NF90_OPEN,NF90_NOERR,NF90_INQ_VARID
    25   use netcdf, only : NF90_CLOSE, NF90_GET_VAR
    26 
     24  use lmdz_netcdf, only : NF90_NOWRITE,NF90_OPEN,NF90_NOERR,NF90_INQ_VARID,NF90_CLOSE,NF90_GET_VAR
    2725
    2826  !   Author:    Frederic Hourdin      original: 15/01/93
     
    143141     relief=0.
    144142     ierr = NF90_OPEN ('relief_in.nc', NF90_NOWRITE,nid_relief)
    145      if (ierr.EQ.NF90_NOERR) THEN
     143     if (ierr==NF90_NOERR) THEN
    146144         ierr=NF90_INQ_VARID(nid_relief,'RELIEF',varid)
    147145         if (ierr==NF90_NOERR) THEN
     
    248246        tetastrat=ttp*zsig**(-kappa)
    249247        tetapv=tetastrat
    250         IF ((ok_pv).AND.(zsig.LT.0.1)) THEN
     248        IF ((ok_pv).AND.(zsig<0.1)) THEN
    251249           tetapv=tetastrat*(zsig*10.)**(kappa*cpp*gam_pv/1000./g)
    252250        ENDIF
Note: See TracChangeset for help on using the changeset viewer.