Add support for atdm/load-env.sh <build-name> <custom-config-dir>
Created by: bartlettroscoe
Description
This story is to scope out and implement a scheme to allow users and developers to extend the ATDM Trilinos configuration to support new systems without having to touch anything in the Trilinos source tree. This would make the ATDM Trilinos configuration system satisfy the "Open-Closed Principle" (i.e. open to extension, closed to modification).
This has been requested both by EMPIRE and SPARC PIs.
Proposed Solution
One idea I had is support this is to allow a second argument like:
$ source ~/workspace/Trilinos/cmake/std/atdm/load-env.sh \
gnu-openmp-opt ~/my_tril_config
which would require that the file:
~/my_tril_config/environment.sh
exists and be set up correctly (lots of examples under Trilinos/cmake/std/atdm/
).
The top directory name (in this example my_tril_config
) would be set as the system name in the places that need that name.