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

parent array bounds checking

sburger
Beginner
639 Views

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

0 Kudos
2 Replies
Steven_L_Intel1
Employee
639 Views
How does it "not work"? I can't reproduce a problem with this.

Steve
0 Kudos
sburger
Beginner
639 Views
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.
0 Kudos
Reply