- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page