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

Location:
LMDZ6/trunk/libf/dyn3dmem
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3dmem/dynetat0_loc.F90

    r4984 r5075  
    99  USE infotrac,    ONLY: nqtot, tracers, niso, iqIsoPha, iH2O, isoName
    1010  USE strings_mod, ONLY: maxlen, msg, strStack, real2str, int2str, strIdx
    11   USE netcdf,      ONLY: NF90_OPEN,  NF90_NOWRITE, NF90_INQUIRE_DIMENSION, NF90_INQ_VARID, &
     11  USE lmdz_netcdf,      ONLY: NF90_OPEN,  NF90_NOWRITE, NF90_INQUIRE_DIMENSION, NF90_INQ_VARID, &
    1212                         NF90_CLOSE, NF90_GET_VAR, NF90_INQUIRE_VARIABLE,  NF90_NoErr
    1313  USE readTracFiles_mod, ONLY: new2oldH2O, newHNO3, oldHNO3, getKey
  • LMDZ6/trunk/libf/dyn3dmem/dynredem_loc.F90

    r4389 r5075  
    1111  USE strings_mod, ONLY: maxlen
    1212  USE infotrac, ONLY: nqtot, tracers
    13   USE netcdf, ONLY: NF90_CREATE, NF90_DEF_DIM, NF90_INQ_VARID, NF90_GLOBAL,    &
     13  USE lmdz_netcdf, ONLY: NF90_CREATE, NF90_DEF_DIM, NF90_INQ_VARID, NF90_GLOBAL,    &
    1414                    NF90_CLOSE,  NF90_PUT_ATT, NF90_UNLIMITED, NF90_CLOBBER,   &
    1515                    NF90_64BIT_OFFSET
     
    178178  USE infotrac, ONLY: nqtot, tracers, type_trac
    179179  USE control_mod
    180   USE netcdf,   ONLY: NF90_OPEN,  NF90_NOWRITE, NF90_GET_VAR, NF90_INQ_VARID,  &
     180  USE lmdz_netcdf,   ONLY: NF90_OPEN,  NF90_NOWRITE, NF90_GET_VAR, NF90_INQ_VARID,  &
    181181                      NF90_CLOSE, NF90_WRITE,   NF90_PUT_VAR, NF90_NoErr
    182182  USE dynredem_mod, ONLY: dynredem_write_u, dynredem_write_v, dynredem_read_u, &
  • LMDZ6/trunk/libf/dyn3dmem/dynredem_mod.F90

    r5069 r5075  
    44  USE parallel_lmdz
    55  USE mod_hallo
    6   USE lmdz_netcdf
     6  USE lmdz_netcdf, ONLY:nf90_strerror,nf90_noerr,nf90_redef,nf90_put_var,nf90_inquire_dimension,&
     7          nf90_format,nf90_inq_varid,nf90_get_var,nf90_def_var,nf90_enddef,nf90_put_att
    78  PRIVATE
    89  PUBLIC :: dynredem_write_u, dynredem_write_v, dynredem_read_u, err
  • LMDZ6/trunk/libf/dyn3dmem/iniacademic_loc.F90

    r4984 r5075  
    2323  USE ener_mod, ONLY: etot0,ptot0,ztot0,stot0,ang0
    2424  USE readTracFiles_mod, ONLY: addPhase
    25   use netcdf, only : NF90_NOWRITE,NF90_OPEN,NF90_NOERR,NF90_INQ_VARID
    26   use netcdf, only : NF90_CLOSE, NF90_GET_VAR
    27 
     25  use lmdz_netcdf, only : NF90_NOWRITE,NF90_OPEN,NF90_NOERR,NF90_INQ_VARID,NF90_CLOSE, NF90_GET_VAR
    2826
    2927  !   Author:    Frederic Hourdin      original: 15/01/93
     
    155153     relief=0.
    156154     ierr = NF90_OPEN ('relief_in.nc', NF90_NOWRITE,nid_relief)
    157      if (ierr.EQ.NF90_NOERR) THEN
     155     if (ierr==NF90_NOERR) THEN
    158156         ierr=NF90_INQ_VARID(nid_relief,'RELIEF',varid)
    159157         if (ierr==NF90_NOERR) THEN
     
    257255        tetastrat=ttp*zsig**(-kappa)
    258256        tetapv=tetastrat
    259         IF ((ok_pv).AND.(zsig.LT.0.1)) THEN
     257        IF ((ok_pv).AND.(zsig<0.1)) THEN
    260258           tetapv=tetastrat*(zsig*10.)**(kappa*cpp*gam_pv/1000./g)
    261259        ENDIF
Note: See TracChangeset for help on using the changeset viewer.