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

parentheses in write command

taddei
Beginner
796 Views

The following errors occurwhen compiling a tested FORTRAN 90 code using Intel Fortran Compiler 9.1 for Fortran IA-32 applications under Windows XP.

C:mcnpx_v26b_sourcesrcgridconvidldat.F(427) : Error: Unbalanced parentheses

* 'i5,"). ")')hf,nx,ny

-----------------------------------^

C:mcnpx_v26b_sourcesrcgridconvidldat.F(427) : Error: Syntax error, found '''

when expecting one of: (

M> ...

* 'i5,"). ")')hf,nx,ny

-------^

C:mcnpx_v26b_sourcesrcgridconvidldat.F(427) : Error: Syntax error, found '''

when expecting one of: , )

* 'i5,"). ")')hf,nx,ny

----------------------------------^

This is the write command:

write(31, !/*id 425*/

& '("The 3rd array contains the values of ",a10,"(",i5,"x",'// !/*id 426*/

& 'i5,"). ")')hf,nx,ny !/*id 427*/

I tested the write command in a simple hello world program, adding one component at a time. The compiler exploded with the same errors when I added the parentheses, even though they are within quotation marks. Is this a problem with the compiler? This program successfully compiles on earlier versions of the Intel compiler.

Thank you.

Phil Taddei

0 Kudos
2 Replies
Intel_C_Intel
Employee
796 Views
The compiler has had problems in this area in the past. If you can reproduce the problem with the current 9.1.025, then please report the problem to Intel Premier Support.
0 Kudos
taddei
Beginner
796 Views

I'm sorry, I don't know how to submit it to Premier Support.

I'm using the latest evaluation version.

Phil

0 Kudos
Reply