Ignore:
Timestamp:
Jul 22, 2024, 9:29:09 PM (2 months ago)
Author:
abarral
Message:

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

File:
1 edited

Legend:

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

    r5088 r5099  
    55! ------
    66       USE ioipsl
    7 !       USE comgeomphy
    87       USE dimphy
    98       USE mod_grid_phy_lmdz
    109       USE mod_phys_lmdz_para
    1110       USE iophy
    12        USE netcdf, ONLY:nf90_inq_varid,nf90_noerr,nf90_get_var
     11       USE netcdf, ONLY:nf90_inq_varid,nf90_noerr,nf90_get_var,nf90_nowrite,nf90_inq_varid,nf90_open
    1312       IMPLICIT NONE
    1413
     
    1817       character*10 name
    1918       character*10 varname
    20 !
     19
    2120       real tmp_dyn(iip1,jjp1)
    2221       real tmp_dyn_glo(nbp_lon+1,nbp_lat)
    23 !       real tmp_dyn_glo(nbp_lon,nbp_lat)
    2422       REAL tmp_dyn_invers(iip1,jjp1)
    2523       real tmp_dyn_invers_glo(nbp_lon+1,nbp_lat)
    26 !       real tmp_dyn_invers_glo(nbp_lon,nbp_lat)
    2724       real tmp_fi(klon)
    2825       real tmp_fi_glo(klon_glo)
    2926       real surfa(klon,5)
    3027       real surfa_glo(klon_glo,5)
    31 !
     28
    3229       integer ncid
    3330       integer varid
    34        real rcode
     31       integer rcode
    3532       integer start(2),count(2),status
    3633       integer i,j,l,ig
     
    4946
    5047       print*,'Lecture du fichier donnees_lisa.nc'
    51        ncid=NCOPN('donnees_lisa.nc',NCNOWRIT,rcode)
     48       ncid=nf90_open('donnees_lisa.nc',nf90_nowrite,rcode)
    5249
    5350!JE20140526<<: check if are inversed or not the latitude grid in donnes_lisa
     
    7269!      endj(1)=jjp1
    7370      endj(1)=nbp_lat
    74       varid=NCVID(ncid,latstr,rcode)
     71      varid=nf90_inq_varid(ncid,latstr,rcode)
    7572
    7673          status=nf90_get_var(ncid,varid,lats_glo,startj,endj)
     
    8986          varname=trim(name)//str1
    9087       print*,'lecture variable:',varname
    91           varid=NCVID(ncid,trim(varname),rcode)
    92 !          varid=NCVID(ncid,varname,rcode)
     88          varid=nf90_inq_varid(ncid,trim(varname),rcode)
    9389
    9490!  dimensions pour les champs scalaires et le vent zonal
     
    135131!JE20140526>>
    136132!      call dump2d(iim,jjm-1,tmp_fi(2),'tmp_fi   ')
    137 !
     133
    138134          DO j=1,klon_glo
    139135
     
    141137
    142138          ENDDO ! Fin de recopie du tableau
    143 !
     139
    144140       ENDDO ! Fin boucle 1 a 5
    145141       print*,'Passage Grille Dyn -> Phys'
Note: See TracChangeset for help on using the changeset viewer.