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/phylmd/iostart.F90

    r5073 r5075  
    3030
    3131  SUBROUTINE Open_startphy(filename)
    32   USE lmdz_netcdf
     32  USE lmdz_netcdf, ONLY: nf90_nowrite, nf90_noerr,nf90_open
    3333  USE mod_phys_lmdz_para
    3434  IMPLICIT NONE
     
    4848
    4949  SUBROUTINE Close_startphy
    50   USE lmdz_netcdf
     50  USE lmdz_netcdf, ONLY: nf90_close
    5151  USE mod_phys_lmdz_para
    5252  IMPLICIT NONE
     
    6161
    6262  FUNCTION Inquire_Field(Field_name)
    63   USE lmdz_netcdf
     63  USE lmdz_netcdf, ONLY: nf90_noerr,nf90_inq_varid
    6464  USE mod_phys_lmdz_para
    6565  IMPLICIT NONE
     
    115115 
    116116  SUBROUTINE Get_field_rgen(field_name,field,field_size,found)
    117   USE lmdz_netcdf
     117  USE lmdz_netcdf, ONLY: nf90_inq_varid,nf90_noerr,nf90_get_var
    118118  USE dimphy
    119119  USE geometry_mod
     
    251251
    252252  SUBROUTINE Get_var_rgen(var_name,var,var_size,found)
    253   USE lmdz_netcdf
     253  USE lmdz_netcdf, ONLY: nf90_noerr,nf90_get_var,nf90_inq_varid
    254254  USE dimphy
    255255  USE mod_grid_phy_lmdz
     
    301301
    302302  SUBROUTINE open_restartphy(filename)
    303   USE lmdz_netcdf
     303  USE lmdz_netcdf, ONLY: nf90_create,nf90_clobber,nf90_64bit_offset,nf90_noerr,nf90_strerror,&
     304          nf90_global,nf90_put_att,nf90_def_dim
    304305  USE mod_phys_lmdz_para, ONLY: is_master
    305306  USE mod_grid_phy_lmdz, ONLY: klon_glo
     
    332333 
    333334  SUBROUTINE enddef_restartphy
    334   USE lmdz_netcdf
     335  USE lmdz_netcdf, ONLY: nf90_enddef
    335336  USE mod_phys_lmdz_para
    336337  IMPLICIT NONE
     
    342343
    343344  SUBROUTINE close_restartphy
    344   USE lmdz_netcdf
     345  USE lmdz_netcdf, ONLY: nf90_close
    345346  USE mod_phys_lmdz_para
    346347  IMPLICIT NONE
     
    385386 
    386387  SUBROUTINE put_field_rgen(pass, field_name,title,field,field_size)
    387   USE lmdz_netcdf
     388  USE lmdz_netcdf, ONLY: nf90_def_var,nf90_format,nf90_put_att,nf90_inq_varid,nf90_put_var
    388389  USE dimphy
    389390  USE geometry_mod
     
    508509
    509510  SUBROUTINE put_var_rgen(pass, var_name,title,var,var_size)
    510   USE lmdz_netcdf
     511  USE lmdz_netcdf, ONLY: nf90_format,nf90_def_var,nf90_put_var,nf90_inq_varid,nf90_put_att
    511512  USE dimphy
    512513  USE mod_phys_lmdz_para
Note: See TracChangeset for help on using the changeset viewer.