View previous topic :: View next topic |
Author |
Message |
zaxfuuq
Joined: 25 Apr 2007 Posts: 5
|
Posted: Mon Jul 09, 2007 5:46 pm Post subject: matmul trouble |
|
|
program maine5
real :: x(2,2), z(2,2)
OPEN(11, File="output4.txt",STATUS='REPLACE')
data x /1,2,3,4/
z =x
z = matmul(x,x)
write (11,'(f5.2)') z
write (*,'(f5.2)') z
close(11)
end program maine5
This turns into a runtime error for me. If I comment out the matmul statement, it runs fine. The fellas at c.l.f. suspect my IDE (Plato 3) and my settings, on which I'm vague. Ideas?
--
zax |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7931 Location: Salford, UK
|
Posted: Mon Jul 09, 2007 8:25 pm Post subject: |
|
|
I cannot get this program to fail.
I have tried all kinds of command line options and so far it works every time.
I am using the latest version of FTN95 and running on Windows XP.
Try running from a command line....
FTN95 prog.f90 /lgo |
|
Back to top |
|
|
zaxfuuq
Joined: 25 Apr 2007 Posts: 5
|
Posted: Mon Jul 09, 2007 8:58 pm Post subject: |
|
|
Success!
Off the command line, I type
FTN95 maine5.f95 /lgo
and get correct output:
7
10
15
22
What's that mean?
--
zax |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7931 Location: Salford, UK
|
Posted: Mon Jul 09, 2007 10:09 pm Post subject: |
|
|
I don't know what is going wrong.
What Plato does for you is something like the commands...
FTN95 maine5.f95 /link
maine5.exe
You could try reinstalling everything.
Plato3.exe, FTN95.exe and salflibc.dll should end up in the same folder. |
|
Back to top |
|
|
|