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

intel fortran compiler 9.0/9.1 for windows question

xjqian
Beginner
772 Views

We are using VS.net 2003 and IVF9.0 or IVF9.1. Itcrashedat the following code, who can help me? thanks very much!

--------------------

write(luo,avhdr) ('node','voltage',i=1,nvprln)

NOTE:

if avhdr = '(1x,1(5x,a4,1020x,'=',a7, 3x)/) '

luo=6

nvprln=1

it will crash at the "write".

---------------------------------

if avhdr='(1x,1(5x,a4,1002x,'=',a7, 3x)/) '

it will not crash

--------------------------------

It's ok on IVF9.x for linux, but crash on windows platform.I don't know why?

david

0 Kudos
8 Replies
Steven_L_Intel1
Employee
772 Views
There's not enough information to be able to answer you. Please send a complete example and a description of the problem to Intel Premier Support.
0 Kudos
TimP
Honored Contributor III
772 Views
Past Fortran platforms had smaller limits on length of character strings or text file lines, so we don't run into this often. I note, on Google search, that 1024 character line length limit is documented for a few situations in Windows, but don't find anything specific about VS.
0 Kudos
Steven_L_Intel1
Employee
772 Views
It would also be helpful to know what the actual error message was, rather than "crashed".
0 Kudos
xjqian
Beginner
772 Views
when I run our application on windows, it comes out a dialog(which
 I don't know how to past here) and our aplication ends unnormally.
the error message dialog saids:
----------------------------------------------
Visual Fortran run-time error --> title
forrtl: severe(66): output statement overflows record,unit 6,file c:davidoutput.lis
Image       PC routine    Line  Source
my.exe      01D208C6 unknown unknown unknown
.
.
.
kernel32.dll 7C80B683 unknown unknown unknown
------------------------------------------------
Best Regards!
David

					
				
			
			
				
			
			
			
			
			
			
			
		
0 Kudos
xjqian
Beginner
772 Views

Yes, I think it's the 1024 limit. because

if avhdr = '(1x,1(5x,a4,1020x,'=',a7, 3x)/) the total output line len is: 1 + 5 + 4 + 1020 + 1 + 7 + 3 = 1041 > 1024 crashed

if avhdr = '(1x,1(5x,a4,1002x,'=',a7, 3x)/) the total output line len is : 1 + 5 + 4 + 1002 + 1 + 7 + 3 = 1023 < 1024 not crashed.

if avhdr = '(1x,1(5x,a4,1003x,'=',a7, 3x)/) the total output line len is : 1 + 5 + 4 + 1002 + 1 + 7 + 3 = 1024= 1024 crashed.

I have tested this. So I wonder it's because of 1024 output limit on PC?

Best Regards!

David

0 Kudos
xjqian
Beginner
772 Views

Yes, I think it's the 1024 limit. because

if avhdr = '(1x,1(5x,a4,1020x,'=',a7, 3x)/) the total output line len is: 1 + 5 + 4 + 1020 + 1 + 7 + 3 = 1041 > 1024 crashed

if avhdr = '(1x,1(5x,a4,1002x,'=',a7, 3x)/) the total output line len is : 1 + 5 + 4 + 1002 + 1 + 7 + 3 = 1023 < 1024 not crashed.

if avhdr = '(1x,1(5x,a4,1003x,'=',a7, 3x)/) the total output line len is : 1 + 5 + 4 + 1003 + 1 + 7 + 3 = 1024= 1024 crashed.

I have tested this. So I wonder it's because of 1024 output limit on PC?

Best Regards!

David

0 Kudos
Steven_L_Intel1
Employee
772 Views
This should work. The limit on the length of character constants referred to is not relevamt to this program.

Please submit a complete exmple program that shows the problem to Intel Premier Support so that we can look into it.
0 Kudos
xjqian
Beginner
772 Views

I have found the error. it's not the problem of IVF9.0/IVF9.1. Thanks you very much!

David

0 Kudos
Reply