#515: Silently overrides DEBUG and OPTIMISE options ----------------------------+----------------------------------------------- Reporter: barry.wardell | Owner: eschnett Type: defect | Status: new Priority: major | Milestone: Component: SimFactory | Version: Resolution: | Keywords: ----------------------------+-----------------------------------------------
Comment (by eschnett):
The option list describes machine properties. The decision whether to have a production, a debug, or a profiling build is independent of this, and these concepts should not be mixed.
Initially, simfactory's option lists did not select debug/optimisation choices, but this made it impossible to use these option lists outside simfactory without modifying them. Therefore the simfactory option lists now do make a choice, which is the same as the default in Cactus -- namely optimise, enable OpenMP, disable debug statements, and do not profile. However, these settings are not meant to be modified in the option lists themselves.
Instead, simfactory offers command line options (e.g. --debug, --profile, etc.) to choose these settings when a new configuration is created, and remembers these in a properties.ini file in the configuration. These also modify the default configuration name ("sim", "sim-debug", "sim-profile", etc.)
This allows using the same option list for both debug and optimised builds. Previously, simfactory would contain multiple option lists for every machine, one for each build choice, which obviously lead to much duplication.