soccer jersey forums.silverfrost.com :: View topic - Using Salford Plato3 - How to include run name
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 

Using Salford Plato3 - How to include run name

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Wed Oct 05, 2005 3:01 am    Post subject: Using Salford Plato3 - How to include run name Reply with quote

Hello,

I am new to FORTRAN but I have to use some code for my masters thesis.

My problem:

I am using Salford Plato3 to compile, run, and debug

How do you include a run name when the .exe produced by the compiler is executed in Plato3?

This is a problem for me because the code uses the run name to then find input files.

If I run my program using the command line I would type: 'program (which is the .exe)' 'run name (test for example)'
Then the program uses the string 'text' to find the input files that are also labelled the same as the run name (test.inp for example).

I am interested in using Plato3 for the debugging capabilities because my program is not working properly and I am trying to find the root of the problem.

I would appreciate any suggestions; my knowledge in this subject is embarrassing



Many thanks,

Jennifer
Back to top
JvO



Joined: 18 Aug 2005
Posts: 15

PostPosted: Wed Oct 05, 2005 8:05 am    Post subject: Using Salford Plato3 - How to include run name Reply with quote

[small]Jennifer wrote:[/small]
If I run my program using the command line I would type: 'program (which is the .exe)' 'run name (test for example)'
Then the program uses the string 'text' to find the input files that are also labelled the same as the run name (test.inp for example).


As long as FTN95 is not upgraded to Fortran 2003 Standard, you may use the procedures from Chapter 4 of the Users's Guide:

Code:

Example:
Character*(*) Function CMNAM()
! Read a token from the commandline

Subroutine COMMAND_LINE(c)
CHARACTER(*) C
! Read the whole command line


Jan van Oosterwijk
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Oct 05, 2005 9:27 am    Post subject: Using Salford Plato3 - How to include run name Reply with quote

Also, if you create a Plato3 project, you can set the runtime parameters from the "Project Properties" under Miscellaneous and "Launch arguments".
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 -> Support 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