Hello forum,
is possible to parallelize via OpenMP/MPI the following fragment of fortran code:
do i = 1,n
call ext_run(input(i), output(i))
end do
where subroutine ext_run(input,output) execute external single thread program via SYSTEM(commandline) function. For example:
subroutine ext_run(input, output)
...
response = SYSTEM ('extprog.exe < input_i.dat > output_i.dat')
...
return
end
where input_i and output_i are auxiliary data files which were created using input(i) or output(i) parameters.
I will be happy for some simple examples. Thanks …
Michal