- Timestamp:
- Jul 22, 2024, 9:29:09 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/ce0l.F90
r5088 r5099 1 1 PROGRAM ce0l 2 ! 2 3 3 !------------------------------------------------------------------------------- 4 4 ! Purpose: Initial states and boundary conditions files creation: … … 21 21 USE etat0phys, ONLY: etat0phys_netcdf 22 22 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_VAR23 USE netcdf, ONLY: NF90_OPEN, NF90_NOWRITE, NF90_CLOSE, nf90_noerr, & 24 nf90_inquire_dimension, nf90_inq_dimid, NF90_INQ_VARID, nf90_get_var 25 25 USE infotrac, ONLY: init_infotrac 26 26 USE dimphy, ONLY: klon … … 154 154 ! weights to ensure ocean fractions are the same for atmosphere and ocean. 155 155 !******************************************************************************* 156 IF(NF90_OPEN("o2a.nc", NF90_NOWRITE, nid_o2a)== NF90_NOERR) THEN156 IF(NF90_OPEN("o2a.nc", NF90_NOWRITE, nid_o2a)==nf90_noerr) THEN 157 157 iret=NF90_CLOSE(nid_o2a) 158 158 WRITE(lunout,*)'BEWARE !! Ocean mask "o2a.nc" file found' … … 188 188 masque(iip1 ,:)=masque(1,:) 189 189 DEALLOCATE(ocemask) 190 ELSE IF(NF90_OPEN("startphy0.nc", NF90_NOWRITE, nid_sta)== NF90_NOERR) THEN190 ELSE IF(NF90_OPEN("startphy0.nc", NF90_NOWRITE, nid_sta)==nf90_noerr) THEN 191 191 WRITE(lunout,*)'BEWARE !! File "startphy0.nc" found.' 192 192 WRITE(lunout,*)'Getting the land mask from a previous run.' 193 193 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) 195 195 IF(nphys/=klon) THEN 196 196 WRITE(lunout,*)'Mismatching dimensions for land mask' … … 201 201 ALLOCATE(masktmp(klon)) 202 202 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) 204 204 iret=NF90_CLOSE(nid_sta) 205 205 CALL gr_fi_dyn(1,klon,iip1,jjp1,masktmp,masque) … … 253 253 254 254 END PROGRAM ce0l 255 ! 256 !------------------------------------------------------------------------------- 255 256 !-------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.