Ignore:
Timestamp:
Jul 20, 2024, 4:30:31 PM (4 months ago)
Author:
abarral
Message:

Remove all managed netcdf77 usage (excluding external: rrtm, ecrad)
Remove call to netcdf.inc
Replace USE lmdz_netcdf by USE netcdf
Replace lmdz_netcdf.F90 by lmdz_netcdf_format.F90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Dust/phytracr_spl_mod.F90

    r5082 r5088  
    45684568      USE mod_grid_phy_lmdz
    45694569      USE mod_phys_lmdz_para
    4570       USE lmdz_netcdf, ONLY:nf_open,nf_close,nf_inq_varid,nf_nowrite,nf_noerr,nf90_get_var
     4570      USE netcdf, ONLY:nf90_open,nf90_close,nf90_inq_varid,nf90_nowrite,nf90_noerr,nf90_get_var
    45714571      IMPLICIT NONE
    45724572
     
    45874587      IF (is_mpi_root .AND. is_omp_root) THEN
    45884588          !nci=NCOPN(trim(adjustl(filescaleparams)),NCNOWRIT,rcode)
    4589          ierr = NF_OPEN (trim(adjustl(filescaleparams)),NF_NOWRITE, nid)
    4590           if (ierr == NF_NOERR) THEN
     4589         ierr = nf90_open (trim(adjustl(filescaleparams)),nf90_nowrite, nid)
     4590          if (ierr == nf90_noerr) THEN
    45914591          debutread=step_sca
    45924592          countread=1
     
    45964596            varname= trim(adjustl(paramname))//aux_2s
    45974597            print *,varname
    4598             ierr = NF_INQ_VARID (nid,trim(adjustl(varname)), nvarid)
     4598            ierr = nf90_inq_varid (nid,trim(adjustl(varname)), nvarid)
    45994599            ierr = nf90_get_var (nid, nvarid, auxreal, debutread, countread)
    4600             IF (ierr /= NF_NOERR) THEN
     4600            IF (ierr /= nf90_noerr) THEN
    46014601             PRINT*, 'Pb de lecture pour modvalues'
    46024602       print *,'JE  scale_var, step_sca',trim(adjustl(varname)),step_sca
     
    46114611           enddo
    46124612
    4613             ierr = NF_CLOSE(nid)
     4613            ierr = nf90_close(nid)
    46144614          else
    46154615           print *,'File '//trim(adjustl(filescaleparams))//' not found'
Note: See TracChangeset for help on using the changeset viewer.