Running PREFEKO
Use PREFEKO with the correct syntax and optional parameters for advanced control.
prefeko example
where example is the .pre input file.
The component PREFEKO allows a number of options, which are mainly used for debugging purposes. Entering PREFEKO without arguments will give an overview of the syntax and supported options.
The options available for PREFEKO are as follows:
- --version
- Print the version information and then exit.
- --fek-format x
- Write the .fek file in the xth file format.
- -#var=value
- Set a variable #var to the value value.Note:
When a variable is set and evaluated using the command line and then a .pre file is run where the same variable is defined with a different value, it will override the value set using the command line.
A solution is to check in the .pre file if the variable was defined from the command line using, for example:!!if not defined(#var1) then #var1 = 1 !!endif
- --ignore-errors
- Treat error messages as non-fatal. PREFEKO will continue with the processing after encountering errors. This can result in more errors as a consequence of the first one, but it could also be useful to see all geometry modelling errors at once, and not only the first one.
- --print-variables
- Print a list of all variables (name, value, comment) to stdout. The output also includes info whether the variable is set for the first time or whether the value of an existing variable is changed.
- --print-variables-to-out
- Print a list of all variables (name, value, comment) to the Feko output file (.out). The output also includes info whether the variable is set for the first time or whether the value of an existing variable is changed.
prefeko filename -#variable1=value1 -#variable2=value2 ...
it is recommended to use the !!print_to_out
command to write these
variables to the output file in order to keep a record of their values.