Silverfrost Forums

Welcome to our forums

matmul trouble

9 Jul 2007 4:46 #2036

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

9 Jul 2007 7:25 #2037

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

9 Jul 2007 7:58 #2038

Success!

Off the command line, I type FTN95 maine5.f95 /lgo and get correct output: 7 10 15 22

What's that mean?

zax

9 Jul 2007 9:09 #2040

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.

Please login to reply.