View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Wed Oct 05, 2005 3:01 am Post subject: Using Salford Plato3 - How to include run name |
|
|
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
|
Posted: Wed Oct 05, 2005 8:05 am Post subject: Using Salford Plato3 - How to include run name |
|
|
[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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8037 Location: Salford, UK
|
Posted: Wed Oct 05, 2005 9:27 am Post subject: Using Salford Plato3 - How to include run name |
|
|
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 |
|
|
|