Both executables, the source-to-source translation fadapt and the compiler driver adaptor, use configuration files from where they read their initial configuration. These configuration files are named .fadaptrc and .adaptorrc. In contrary to the command line options the configuration files are used to fix options for the whole installation.
A configuration file for adaptor must be named ".adaptorrc" and for fadapt respectively .fadaptrc. The tools interpret such configuration files and look for them in certain directories in the following order:
This is the place for the the system configuration. During the installation, these files have been generated automatically.
This is the usual place where every user can set its own configuration.
If only a specific application should be compiled with certain flags, the configuration file can be put in the directory where the program files are located and compiled.
A setting in a configuration file replaces the previous setting. Therefore, settings in the system configuration file are always taken unless they are redefined by user configuration files in the home or current directory. Some of the settings can also be changed by corresponding command line arguments and will replace previous settings from the configuration file.
Entries in the configuration files have the form:
<identifier> = <value> or # <this is a comment line>
Leading and trailing blanks are ignored for identifier and value.
Note: For the identifier on the left hand side upper or lower case letters are not significant. But they are significant for the value on the right hand side.
Section 4.10 describes the identifiers that can be set by the source-to-source translation fadapt and Section 5.8 the ones of the compiler driver adaptor. If an identifier is not handled by the tool, the whole line is ignored.
The configurations files can also be used to define new command line options that stand as abbreviations for a list of other options.
-G=-v -debug -list -HPF=-off:TRA -off:OMP -off: -hpf -OMP=-off:TRA -off:HPF -omp -OMP_SIM=-off:TRA -off:HPF -omp -submain=APPL_MAIN
Hint: New defined options itself cannot be used again as options on the right hand side.
# this definition is not allowed -OMP_SIM=-OMP -submain=APPL_MAIN
ADAPTOR itself uses already this feature to define new options, especially the compiler driver provides by this feature one single flag for all the different compilation models.