forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

matmul trouble

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
zaxfuuq



Joined: 25 Apr 2007
Posts: 5

PostPosted: Mon Jul 09, 2007 5:46 pm    Post subject: matmul trouble Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Mon Jul 09, 2007 8:25 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
zaxfuuq



Joined: 25 Apr 2007
Posts: 5

PostPosted: Mon Jul 09, 2007 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Mon Jul 09, 2007 10:09 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group