GS2

Access

GS2 is freely available to anyone and all ARCHER users have access to the GS2 binaries. The GS2 licence is:

Copyright (c) <1991-2002> <William Dorland, Michael Kotschenreuther, Quowong P. Liu> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Running

To run GS2 you need to add the correct module to your environment to add the gs2 binary to your $PATH. You can check the available gs2 modules using:

module avail gs2

The default version of gs2 on ARCHER is r3119. So

module add gs2

will give you access to GS2 r3119.

Example job submission script

#!/bin/bash --login
#PBS -N env_gs2_c128

# Select 128 nodes (maximum of 3072 cores)
#PBS -l select=128

#PBS -l walltime=00:30:00

# Change this to your budget code
#PBS -A budget

# Move to directory that script was submitted from
export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)
cd $PBS_O_WORKDIR

module add gs2

# replace input_file.in with your input file
aprun -n 3072 gs2 input_file.in

Compilation