GENIE setup alternatives

genie_example.job and make
The script genie_example.job runs the model and also directs the output files. To do this, it needs to know where the model source code is kept and the output directory. These default to ~/genie and ~/genie_output, but can be changed. You can do this by editing genie-main/user.sh or by providing command-line options to the script:

./genie_example.job -o -c

genie_example.job calls make, if the model is not compiled. This is important since the model has compile-time options, which may vary from one experiment to another. In order to run the tests, the makefiles contain targets (e.g. make test) which call genie_example.job (tests are defined as special configuration files). To provide flexibility so that the tests can be run automatically (nightly build) and in an arbitrary location (away from normal working checkout), the makefiles also have varaibles for the code output directories. All makefile variables can be overridden on the command line, e.g.:

make GENIE_ROOT= OUT_DIR=