From: ritchie31 on 3 Jun 2010 17:16 I have a program that uses many units for example main.f, unit1.f, unit2.f, unit3.f, etc. After I compile them I generate an executable run.exe. I wanted to run many cases using different runs like run1.exe, run2.exe, run3.exe. how can I do that? Thanks
From: Sjouke Burry on 3 Jun 2010 18:29 ritchie31 wrote: > I have a program that uses many units for example main.f, unit1.f, > unit2.f, unit3.f, etc. After I compile them I generate an executable > run.exe. > I wanted to run many cases using different runs like run1.exe, > run2.exe, run3.exe. > > how can I do that? > > Thanks each time produce run.exe, then: ren run.exe runXX.exe or: copy run.exe runXX.exe
From: Louis Krupp on 4 Jun 2010 07:50 On 6/3/2010 3:16 PM, ritchie31 wrote: > I have a program that uses many units for example main.f, unit1.f, > unit2.f, unit3.f, etc. After I compile them I generate an executable > run.exe. > I wanted to run many cases using different runs like run1.exe, > run2.exe, run3.exe. > > how can I do that? > > Thanks I'm going to make a guess about what you're really asking: You want to compile unit1.f to generate unit1.o (or unit1.obj, or whatever), unit2.f to generate unit2.o, and so on. You want to compile main.f and link with unit1.o to generate run1.exe. You want to compile main.f and link with unit2.o to generate run2.exe. Etc. How you do this will depend on your operating system and compiler; with that information, someone here will be able to help you. How do you compile and link programs currently? Louis
From: ritchie31 on 4 Jun 2010 12:03 On Jun 3, 4:29 pm, Sjouke Burry <burrynulnulf...(a)ppllaanneett.nnll> wrote: > ritchie31 wrote: > > I have a program that uses many units for example main.f, unit1.f, > > unit2.f, unit3.f, etc. After I compile them I generate an executable > > run.exe. > > I wanted to run many cases using different runs like run1.exe, > > run2.exe, run3.exe. > > > how can I do that? > > > Thanks > > each time produce run.exe, then: ren run.exe runXX.exe > or: copy run.exe runXX.exe I generate many unit1.o which is linked with run1.exe, Do I have to rename those units.o too per each correspondent runs.exe??
From: ritchie31 on 4 Jun 2010 12:07 On Jun 4, 5:50 am, Louis Krupp <lkrupp_nos...(a)indra.com.invalid> wrote: > On 6/3/2010 3:16 PM, ritchie31 wrote: > > > I have a program that uses many units for example main.f, unit1.f, > > unit2.f, unit3.f, etc. After I compile them I generate an executable > > run.exe. > > I wanted to run many cases using different runs like run1.exe, > > run2.exe, run3.exe. > > > how can I do that? > > > Thanks > > I'm going to make a guess about what you're really asking: > > You want to compile unit1.f to generate unit1.o (or unit1.obj, or > whatever), unit2.f to generate unit2.o, and so on. > > You want to compile main.f and link with unit1.o to generate run1.exe. > > You want to compile main.f and link with unit2.o to generate run2.exe. > > Etc. > > How you do this will depend on your operating system and compiler; with > that information, someone here will be able to help you. How do you > compile and link programs currently? > > Louis I use Makefile in UNIX which link main.f with a set of units, generating run.exe and unit1.o unit2.o unit3.o, etc... Do I have to rename every unit.o with run1234.exe every time I compile my units ?
|
Next
|
Last
Pages: 1 2 Prev: optimized code crashes under ifort Next: Assumed-shape array of variable-length strings |