14.09.2014 Views

CASINO manual - Theory of Condensed Matter

CASINO manual - Theory of Condensed Matter

CASINO manual - Theory of Condensed Matter

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

- ‘head -n 1 /etc/redhat-release‘<br />

- ‘head -n 1 /etc/SuSE-release‘<br />

- Debian GNU-Linux ‘head -n 1 /etc/debian_version‘<br />

E.g.,<br />

*buntu *, *SUSE 11.3*<br />

HOSTNAME S comma-separated list <strong>of</strong> allowed host name<br />

patterns <strong>of</strong> the target computer. E.g.,<br />

pc*.tcm.phy.cam.ac.uk, cluster.tcm.*<br />

An empty value means that the hostname should not<br />

be checked against anything.<br />

DOMAIN S comma-separated list <strong>of</strong> allowed domain name<br />

patterns <strong>of</strong> the target computer. An empty value<br />

means that the domain should not be checked<br />

against anything. This is provided since some<br />

distinct machines have the same hostname but<br />

different domains.<br />

F90_VERSION S comma-separated list <strong>of</strong> allowed compiler version<br />

patterns that should be matched. E.g.,<br />

4.1<br />

COMMAND_CHECK_F90_VERSION M<br />

bash code block that outputs the compiler<br />

version, which will be matched against<br />

F90_VERSION. E.g.,<br />

set -- $(&F90& --version | head -n 1)<br />

echo ${*:$#}<br />

The code may make use <strong>of</strong> the &F90& variable,<br />

which is replaced by the value <strong>of</strong> the Makefile<br />

variable F90.<br />

COMMAND_CHECK_F90 M bash code block that checks if the compiler<br />

is indeed the desired compiler (e.g., to avoid<br />

false positives with the usual ’f90’, ’mpif90’,<br />

etc). The code should print ’1’ if the check<br />

succeeds, anything else otherwise. E.g.,<br />

set -- $(&F90& --version | head -n 1)<br />

[ "${*:1:2}" = "GNU Fortran" ] && echo 1<br />

The code may make use <strong>of</strong> the &F90& variable,<br />

which is replaced by the value <strong>of</strong> the Makefile<br />

variable F90.<br />

CC_VERSION S | like their *F90* counterparts, but for the C<br />

COMMAND_CHECK_CC_VERSION M > compiler<br />

COMMAND_CHECK_CC M |<br />

CXX_VERSION S | like their *F90* counterparts, but for the C++<br />

COMMAND_CHECK_CXX_VERSION M > compiler<br />

COMMAND_CHECK_CXX M |<br />

-------------------------------------------------------------------------------<br />

II.1.iii. Run-time tags<br />

=======================<br />

If a run-time tag’s name is preceded by an asterisk (e.g., ’*RUN_SINGLE’),<br />

the contents are interepreted as multi-line bash code whose standard output<br />

provides the value <strong>of</strong> the tag -- in the case <strong>of</strong> single-line tags, multiple<br />

output lines are appended a blank and concatenated, and in the case <strong>of</strong><br />

multi-line tags, each output line becomes an individual line in the tag’s<br />

value.<br />

See ’variable substitution’ section below for a list <strong>of</strong> allowed<br />

run-time variables.<br />

223

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!