Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

build projects in other way?

Mike896
Beginner
814 Views

Hi

I have a package of files, which contains main program, a lot of *.for and a parameter file.

Basically I modify two parameters in main program and some parameters in parameter file. Then I compile them into some executable files. I name them by different names. Then I start to use them in my program using SYSTEM.

I need to remember these different modified parameters to correspond different *.exe. Are there automatic ways to compile them, instead of click here and there in dialog box?

Mike

0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
814 Views
Quoting - Mike896

Hi

I have a package of files, which contains main program, a lot of *.for and a parameter file.

Basically I modify two parameters in main program and some parameters in parameter file. Then I compile them into some executable files. I name them by different names. Then I start to use them in my program using SYSTEM.

I need to remember these different modified parameters to correspond different *.exe. Are there automatic ways to compile them, instead of click here and there in dialog box?

Mike

Isn't it much better to come with a generalized solution, where you have only one exe which deals with whatever set of parameters? You don't open your (for example) .pdf files with different .exe each, don't you? How do said .exes differ?

0 Kudos
Mike896
Beginner
814 Views
Quoting - Jugoslav Dujic

Isn't it much better to come with a generalized solution, where you have only one exe which deals with whatever set of parameters? You don't open your (for example) .pdf files with different .exe each, don't you? How do said .exes differ?

I've thought it before, but hesitate to do it, simply because I am afraid of forgetting the modifications.

I am thinking if I can make those modification and build the *.exe fully automatically. Then I can trace back the modification history without memorizing it

Mike

0 Kudos
Steven_L_Intel1
Employee
814 Views

You can create multiple projects that share the same files. or even multiple configurations of the same project. Use preprocessor symbols to define the values that change, enable the preprocessor option and use the defined symbols for your values.

0 Kudos
Reply