Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Inquire statement with -openmp option

$
0
0

Dear forum,

I actually use Intel composer_xe_2013_sp1.2.144 with openMP.

I separated the following issue from my software project. The program fails to execute in case of using

INQUIRE (FILE= ... , OPENED= ...) together with the -openmp option, see example.

Otherwiese, without -openmp option or without the statement every things works fine.

      PROGRAM test
      IMPLICIT NONE
      CHARACTER(255) :: datei
      LOGICAL :: lopen
      LOGICAL :: lexists
!
      datei = 'dateiname.dat'
!
!     This situation work fine in all test cases.
      INQUIRE (FILE=datei,EXIST=lexists)
!
!     This situation fails if combined with the -openmp option
      INQUIRE (FILE=datei,OPENED=lopen)
      END PROGRAM test

Can somebody comment on this problem? Thankyou

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>