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

[Compiler Error] Error 161 : Expression shape conformance violation

Intel_C_Intel
Employee
486 Views
What's the significance of this error? The code it's referring to is a derived data type nested in a derived data type. (The code compiles and runs fine in Lahey/Fujitsu Fortran)

Thanks in advance


cell(i)%edge(e_n)%samp(sp, 1) = cell(i)%edge(e_n)%samp(sp, 1) + wf
------------------------^
..dsmcshell.f90(261): Error 161 : Expression shape conformance violation
0 Kudos
1 Reply
Steven_L_Intel1
Employee
486 Views
Can't tell without knowing what the declaration of wf is. The message says that the shape of the left and right side of the assignment aren't the same - the standard requires that they be the same.

It could be that the compiler is wrong, but I can tell you that just because some other compiler doesn't complain, that doesn't mean the code is good!

Submit a complete sample to Intel Premiere Support and they'll take a look.

Steve
0 Kudos
Reply