[ GiDlist ] bat file

Moderator: GiD Team

Post Reply
Enrique Escolano

[ GiDlist ] bat file

Post by Enrique Escolano »

A possibility is to modify the FORTRAN program to read the parameters of the
command line.
For example (using Digital Visual FORTRAN as compiler)

PROGRAM Test
USE MSFLIB
CHARACTER*1024 INPUT,OUTPUT
INTEGER*2 IARG,STAT
IARG=1
CALL GETARG(IARG,INPUT,STAT)
IARG=2
CALL GETARG(IARG,OUTPUT,STAT)
....

Then running the program obtain:

C: Test.exe C:\Data\in.dat C:\Data\out.res
INPUT="C:\Data\in.dat "
OUTPUT="C:\Data\out.res"


Another possibility is to redirect the console input from a temporary file:

C: echo "C:\Data\in.dat" FileTmp
C: Test.exe FileTmp
C: Delete FileTmp

Note:
C: echo "C:\Data\in.dat" FileTmp
creates a new file named "FileTmp"
C: echo "C:\Data\in.Out" FileTmp
appends "C:\Data\in.Out" to the end of the file "FileTmp"

In order to learn to personalize GiD for his tipe of problem
see the Problem Type Tutorial located in:
http://gid.cimne.upc.es/download/do08.html

See also the Reference Manual of GiD (Executing External Programs) located
in:
http://gid.cimne.upc.es/support/gid_15.html#SEC218


----- Original Message -----
From: "Gunaratnam Gnanaranjan" gnana72 at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, March 23, 2001 5:13 AM
Subject: [ GiDlist ] bat file



Hi All
I have a fortran finite element program. When run the
program will promt the user to give the data file and
performs the calculation.I would like to run this
program within gid.
Can some one tell me the required changes in my
program and the corresponding bat file format.I walked
through the tutorial on problemtype , but it didn't
help me.
Your response is greatly appreciated
gnana
USA

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

Post Reply