Ignore:
Timestamp:
Jul 22, 2024, 9:29:09 PM (4 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/dynphy_lonlat/phylmd/ce0l.F90

    r5088 r5099  
    11PROGRAM ce0l
    2 !
     2
    33!-------------------------------------------------------------------------------
    44! Purpose: Initial states and boundary conditions files creation:
     
    2121  USE etat0phys,      ONLY: etat0phys_netcdf
    2222  USE limit,          ONLY: limit_netcdf
    23   USE netcdf,         ONLY: NF90_OPEN, NF90_NOWRITE, NF90_CLOSE, NF90_NOERR,    &
    24          NF90_INQUIRE_DIMENSION, nf90_inq_dimid, NF90_INQ_VARID, NF90_GET_VAR
     23  USE netcdf,         ONLY: NF90_OPEN, NF90_NOWRITE, NF90_CLOSE, nf90_noerr,    &
     24         nf90_inquire_dimension, nf90_inq_dimid, NF90_INQ_VARID, nf90_get_var
    2525  USE infotrac,       ONLY: init_infotrac
    2626  USE dimphy,         ONLY: klon
     
    154154! weights to ensure ocean fractions are the same for atmosphere and ocean.
    155155!*******************************************************************************
    156   IF(NF90_OPEN("o2a.nc", NF90_NOWRITE, nid_o2a)==NF90_NOERR) THEN
     156  IF(NF90_OPEN("o2a.nc", NF90_NOWRITE, nid_o2a)==nf90_noerr) THEN
    157157    iret=NF90_CLOSE(nid_o2a)
    158158    WRITE(lunout,*)'BEWARE !! Ocean mask "o2a.nc" file found'
     
    188188    masque(iip1 ,:)=masque(1,:)
    189189    DEALLOCATE(ocemask)
    190   ELSE IF(NF90_OPEN("startphy0.nc", NF90_NOWRITE, nid_sta)==NF90_NOERR) THEN
     190  ELSE IF(NF90_OPEN("startphy0.nc", NF90_NOWRITE, nid_sta)==nf90_noerr) THEN
    191191    WRITE(lunout,*)'BEWARE !! File "startphy0.nc" found.'
    192192    WRITE(lunout,*)'Getting the land mask from a previous run.'
    193193    iret=nf90_inq_dimid(nid_sta,'points_physiques',nid_nph)
    194     iret=NF90_INQUIRE_DIMENSION(nid_sta,nid_nph,len=nphys)
     194    iret=nf90_inquire_dimension(nid_sta,nid_nph,len=nphys)
    195195    IF(nphys/=klon) THEN
    196196      WRITE(lunout,*)'Mismatching dimensions for land mask'
     
    201201    ALLOCATE(masktmp(klon))
    202202    iret=NF90_INQ_VARID(nid_sta,'masque',nid_msk)
    203     iret=NF90_GET_VAR(nid_sta,nid_msk,masktmp)
     203    iret=nf90_get_var(nid_sta,nid_msk,masktmp)
    204204    iret=NF90_CLOSE(nid_sta)
    205205    CALL gr_fi_dyn(1,klon,iip1,jjp1,masktmp,masque)
     
    253253
    254254END PROGRAM ce0l
    255 !
    256 !-------------------------------------------------------------------------------
     255
     256!-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.