Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

counter for open and close action?

tropfen
New Contributor I
897 Views
Hello,

is there an internal counter for how often i can open and close files? In my program its looks like that the process stops after a certain number of open/close statements. The only statement is "press any key to continue". For all files i use the same unit number. For file each file there is an open AND close statement.

If yes, what is the way around?

Thanks in advance
Frank
0 Kudos
6 Replies
Steven_L_Intel1
Employee
897 Views
No, there isn't such a counter or limit. The message you got indicates that your program exited.
0 Kudos
tropfen
New Contributor I
897 Views
Yes the message indicates a normal end of the programm. But it stops somewhere else. No coment, no error message and so on. All open and read statement are saved by the use of iostat.

But if I change the stack size to 40000000 the program run goes on.

All variables are initializied. Implizit none is used.

Frank
0 Kudos
Steven_L_Intel1
Employee
897 Views
I suggest that you submit a program that shows the problem to Intel Premier Support.
0 Kudos
tropfen
New Contributor I
897 Views
i am out of my office until 1. of march. After it i will send the program to support. But i cannot send you the original data. The whole data set includes 186 GByte. I will try to produce an example data set.

Frank
0 Kudos
Steven_L_Intel1
Employee
897 Views
Fine. I doubt the particular data set matters in this case.
0 Kudos
tropfen
New Contributor I
897 Views
I have submitted the problem as Issue 356587.

Frank
0 Kudos
Reply