Re: External Program




"Borg" <nospam@xxxxxxxxx> wrote in message
news:431c4fc2$0$8500$5fc30a8@xxxxxxxxxxxxxxxxxx
> Hi,
> I'ha a simulation program in fortran 77.
> I want to call that program into another program.
> Is this possible?
> If yes, how?
>
>
> P
>
> --

In very simplistic terms you could -
(a) use a batch file (if your system provides such a mechanism) to first run
your new program and then run the simulation program.

(b) find from the documentation of your compiler how to run external
executables; for example
CALL SYSTEM(command_line)
or CALL SYSTEMQQ(command_line)
or IVALUE = SYSCALL(command_line)
or .......

where "command_line" contains the command(s) for running the simulation
program.

The name and format is compiler dependent.

Les





.



Relevant Pages

  • External Program
    ... I'ha a simulation program in fortran 77. ... L'olio Extravergine di Oliva come non ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: simulation using fortran
    ... simulation program by using fortran language (my complier is MS ... I'm writing a simulation program too. ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: A question about confidential interval
    ... I run a simulation program for 30 times and got 30 values. ... The standard error ... Prev by Date: ...
    (sci.stat.math)
  • Re: Error
    ... Andrew ... >Post a short compilable example that fails.. ... I have been given a simulation program that requires all of the classes in ... Prev by Date: ...
    (comp.lang.java.help)