I'm working with Windows.
I have a program in a fortran 90 file ..\my_folder\my_file.f90
that yields an output file ..\my_folder\output.dat
.
I'd like to run this file many times simultaneously (to get statistics from multiple stochastic simulations). But this cannot be done in one folder. I get the error message : cannot open output file a.exe: Permission denied collect2.exe: error: ld returned 1 exit status
.
And I don't want to copy-past it to different folders ..\my_folder\new_folder0\my_file.f90
,..\my_folder\new_folder1\my_file.f90
... since this is not convenient if I want to modify a line inside the fortran file.
I would like to know what tool I can use to make one fortran file run from different folders ? And how is it possible to make it run but with different parameters please, so that in each folder the fortran file is run with different parameters ?
From the error message it seems also that if there was different .exe
files and not only a.exe
it would be ok. Is there a way that each time I compile the fortran file it would give a different .exe
program to run ?