- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the the difference here with array checking on?
real,dimension(10,10) :: matrix
print*,matmul(matrix(1:10,1:10),matrix(1:10,1)) ! doesn't work
print*,matmul(matrix,matrix(1:10,1)) ! works
compile command on linux: ifc -FR -static -C mycode.f90
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How does it "not work"? I can't reproduce a problem with this.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Seems I compiled the example code in a directory where I was working with other code. Somehow the already present ifc and work files caused the problem. A fresh directory made everything work. Thks for the reply.

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