Ignore:
Timestamp:
Jan 29, 2009, 11:37:41 AM (15 years ago)
Author:
jghattas
Message:

Bug-fix pour OpenMP.
Anne Cozic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/dyn3dpar/dynredem_p.F

    r985 r1084  
    551551      DATA nb / 0 /
    552552
     553      logical exist_file
     554
    553555      call Gather_Field(ucov,ip1jmp1,llm,0)
    554556      call Gather_Field(vcov,ip1jm,llm,0)
     
    645647      IF (config_inca /= 'none') THEN
    646648! Ajout Anne pour lecture valeurs traceurs dans un fichier start_trac.nc
    647          ierr_file = NF_OPEN ("start_trac.nc", NF_NOWRITE,nid_trac)
    648          IF (ierr_file .NE.NF_NOERR) THEN
    649             write(6,*)' Pb d''ouverture du fichier start_trac.nc'
    650             write(6,*)' ierr = ', ierr_file
    651          ENDIF
     649         inquire(FILE="start_trac.nc", EXIST=exist_file)
     650         print *, "EXIST", exist_file
     651         if (exist_file) then
     652            ierr_file = NF_OPEN ("start_trac.nc", NF_NOWRITE,nid_trac)
     653            IF (ierr_file .NE.NF_NOERR) THEN
     654               write(6,*)' Pb d''ouverture du fichier start_trac.nc'
     655               write(6,*)' ierr = ', ierr_file
     656            ENDIF
     657         else
     658            ierr_file = 2
     659         endif
    652660      END IF
    653661
Note: See TracChangeset for help on using the changeset viewer.