Hello,
Try system(), or runqq() depending upon your processor.
Ben Blackwell wrote:
> I did NOT mean "spawn" in the parallel programming sense. I want to have the
> function evaluation portion of the optimization to come from a stand alone
> code as opposed to a subroutine of the optimization code. What name do the
> system intrinsics go by?
> Thanks,
> Ben
>
> -----Original Message-----
> From: Fortran 90 List [mailto:[log in to unmask]] On Behalf Of
> Aleksandar Donev
> Sent: Monday, December 26, 2005 3:00 PM
> To: [log in to unmask]
> Subject: Re: spawing other jobs from within F90 code
>
> Ben Blackwell wrote:
>
>>Is there a way to spawn jobs (run finite element code) from within
>>the F90 optimization code?
>
> You should probably not use "spawn" unless you are talking about
> parallel programming (spawning threads or such). Do you just mean "run"
> an external program and then wait untill it finished and read the
> results it wrote? In which case the answer is that there is no strictly
> standard-conforming way to do it in F90, but most compilers offer some
> kind of "system" intrinsic which allows running an external program. It
> will be part of the next revision of Fortran, although I don't remember
> what spelling we decided on...
> Best,
> Aleks
>
--
Cheers!
Dan Nagle
Purple Sage Computing Solutions, Inc.
|