[Compiler Error] Error 161 : Expression shape conformance violation

[Compiler Error] Error 161 : Expression shape conformance violation

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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today