Ignore:
Timestamp:
Oct 22, 2024, 11:35:08 AM (3 months ago)
Author:
abarral
Message:

Replace uses of cpp key NC_DOUBLE

Location:
LMDZ6/trunk/libf/phylmd/Dust
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/Dust/read_dust.F90

    r5246 r5249  
    33  USE mod_grid_phy_lmdz
    44  USE mod_phys_lmdz_para
     5  USE netcdf, ONLY: nf90_get_var
    56  IMPLICIT NONE
    67  !
     
    4647  start(3)=step
    4748  !
    48 #ifdef NC_DOUBLE
    49    ! status=NF_GET_VARA_DOUBLE(ncid1,varid1,start,count,dust_nc)
    50   status=NF_GET_VARA_DOUBLE(ncid1,varid1,start,count,dust_nc_glo)
    51 #else
    52    ! status=NF_GET_VARA_REAL(ncid1,varid1,start,count,dust_nc)
    53   status=NF_GET_VARA_REAL(ncid1,varid1,start,count,dust_nc_glo)
    54 #endif
     49  status = nf90_get_var(ncid1, varid1, dust_nc_glo, start, count)
     50
    5551  !
    5652  !  call correctbid(iim,jjp1,dust_nc)
  • LMDZ6/trunk/libf/phylmd/Dust/read_surface.F90

    r5084 r5249  
    7575      varid=NCVID(ncid,latstr,rcode)
    7676
    77 #ifdef NC_DOUBLE
    78           status=NF_GET_VARA_DOUBLE(ncid,varid,startj,endj,lats_glo)
    79 #else
    80           status=NF_GET_VARA_REAL(ncid,varid,startj,endj,lats_glo)
    81 #endif
     77          status = nf90_get_var(ncid, varid, lats_glo, startj, endj)
    8278!      print *,latstr,varid,status,jjp1,rcode
    8379!      IF (status .NE. NF_NOERR) print*,'NOOOOOOO'
     
    113109! Lecture
    114110! -----------------------
    115 #ifdef NC_DOUBLE
    116           status=NF_GET_VARA_DOUBLE(ncid,varid,start,count,tmp_dyn_glo)
    117 #else
    118           status=NF_GET_VARA_REAL(ncid,varid,start,count,tmp_dyn_glo)
    119 #endif
     111          status = nf90_get_var(ncid, varid, tmp_dyn_glo, start, count)
    120112
    121113!      call dump2d(iip1,jjp1,tmp_dyn,'tmp_dyn   ')
  • LMDZ6/trunk/libf/phylmd/Dust/read_vent.F90

    r5246 r5249  
    5252  start(3)=step
    5353  !
    54 #ifdef NC_DOUBLE
    55    ! status=NF_GET_VARA_DOUBLE(ncidu1,varidu1,start,count,u10m_nc)
    56   status=NF_GET_VARA_DOUBLE(ncidu1,varidu1,start,count,u10m_nc_glo)
    57 #else
    58    ! status=NF_GET_VARA_REAL(ncidu1,varidu1,start,count,u10m_nc)
    59   status=NF_GET_VARA_REAL(ncidu1,varidu1,start,count,u10m_nc_glo)
    60 #endif
     54  status = nf90_get_var(ncidu1, varidu1, u10m_nc_glo, start, count)
     55
    6156    ! print *,status
    6257  !
    63 #ifdef NC_DOUBLE
    64    ! status=NF_GET_VARA_DOUBLE(ncidv1,varidv1,start,count,v10m_nc)
    65   status=NF_GET_VARA_DOUBLE(ncidv1,varidv1,start,count,v10m_nc_glo)
    66 #else
    67    ! status=NF_GET_VARA_REAL(ncidv1,varidv1,start,count,v10m_nc)
    68   status=NF_GET_VARA_REAL(ncidv1,varidv1,start,count,v10m_nc_glo)
    69 #endif
     58  status = nf90_get_var(ncidv1, varidv1, v10m_nc_glo, start, count)
     59
    7060  !
    7161
Note: See TracChangeset for help on using the changeset viewer.