- Timestamp:
- Jul 23, 2024, 7:00:20 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmdiso/limit_read_mod.F90
r5099 r5100 352 352 !$OMP MASTER ! Only master thread 353 353 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) 355 355 IF (ierr /= nf90_noerr) CALL abort_physic(modname,& 356 356 'Pb d''ouverture du fichier de conditions aux limites',1) … … 358 358 !--- WARNING IF CALENDAR IS KNOWN AND DOES NOT MATCH THE ONE OF LMDZ 359 359 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) 361 361 IF(ierr==nf90_noerr.AND.calendar/=calend.AND.prt_level>=1) THEN 362 362 WRITE(lunout,*)'BEWARE: gcm and limit.nc calendars differ: ' … … 387 387 IF(nn/=klon_glo) CALL abort_physic(modname,abort_message,1) 388 388 389 ierr = NF90_CLOSE(nid)389 ierr = nf90_close(nid) 390 390 IF (ierr /= nf90_noerr) CALL abort_physic(modname,'Pb when closing file', 1) 391 391 END IF ! is_mpi_root … … 450 450 IF (is_mpi_root) THEN ! Only master processus! 451 451 452 ierr = NF90_OPEN ('limit.nc', NF90_NOWRITE, nid)452 ierr = nf90_open ('limit.nc', nf90_nowrite, nid) 453 453 IF (ierr /= nf90_noerr) CALL abort_physic(modname,& 454 454 'Pb d''ouverture du fichier de conditions aux limites',1) … … 564 564 565 565 !**************************************************************************************** 566 ierr = NF90_CLOSE(nid)566 ierr = nf90_close(nid) 567 567 IF (ierr /= nf90_noerr) CALL abort_physic(modname,'Pb when closing file', 1) 568 568 ENDIF ! is_mpi_root
Note: See TracChangeset
for help on using the changeset viewer.