Ignore:
Timestamp:
Jul 23, 2024, 7:00:20 AM (3 months ago)
Author:
abarral
Message:

Remove CPP_1D key. It was used once in a single file to wrap a whole internal module -> can't even compile if key is enabled.
(lint) Set NF90_* to lowercase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmdiso/limit_read_mod.F90

    r5099 r5100  
    352352!$OMP MASTER  ! Only master thread
    353353       IF (is_mpi_root) THEN ! Only master processus
    354           ierr = NF90_OPEN ('limit.nc', NF90_NOWRITE, nid)
     354          ierr = nf90_open ('limit.nc', nf90_nowrite, nid)
    355355          IF (ierr /= nf90_noerr) CALL abort_physic(modname,&
    356356               'Pb d''ouverture du fichier de conditions aux limites',1)
     
    358358          !--- WARNING IF CALENDAR IS KNOWN AND DOES NOT MATCH THE ONE OF LMDZ
    359359          ierr=NF90_INQ_VARID(nid, 'TEMPS', nvarid)
    360           ierr=NF90_GET_ATT(nid, nvarid, 'calendar', calendar)
     360          ierr=nf90_get_att(nid, nvarid, 'calendar', calendar)
    361361          IF(ierr==nf90_noerr.AND.calendar/=calend.AND.prt_level>=1) THEN
    362362             WRITE(lunout,*)'BEWARE: gcm and limit.nc calendars differ: '
     
    387387          IF(nn/=klon_glo) CALL abort_physic(modname,abort_message,1)
    388388
    389           ierr = NF90_CLOSE(nid)
     389          ierr = nf90_close(nid)
    390390          IF (ierr /= nf90_noerr) CALL abort_physic(modname,'Pb when closing file', 1)
    391391       END IF ! is_mpi_root
     
    450450       IF (is_mpi_root) THEN ! Only master processus!
    451451
    452           ierr = NF90_OPEN ('limit.nc', NF90_NOWRITE, nid)
     452          ierr = nf90_open ('limit.nc', nf90_nowrite, nid)
    453453          IF (ierr /= nf90_noerr) CALL abort_physic(modname,&
    454454               'Pb d''ouverture du fichier de conditions aux limites',1)
     
    564564
    565565!****************************************************************************************
    566           ierr = NF90_CLOSE(nid)
     566          ierr = nf90_close(nid)
    567567          IF (ierr /= nf90_noerr) CALL abort_physic(modname,'Pb when closing file', 1)
    568568       ENDIF ! is_mpi_root
Note: See TracChangeset for help on using the changeset viewer.