Gadget2
License
The following license conditions are copied from the License page of the Gadget2 web site. Please refer back there for the latest license conditions.
"GADGET is free software, distributed under the GNU General Public License. This implies that you may freely distribute and copy the software. You may also modify it as you wish, and distribute these modified versions as long as you indicate prominently any changes you made in the original code, and as long as you leave the copyright notices, and the no-warranty notice intact. Please read the General Public License for more details. Note that the authors retain their copyright on the code."
If you use GADGET-2 for scientific work, you should reference the code's papers (see Gadget web page).
In addition users of this application should credit the NGS accordingly and where applicable the specific site where the code is installed, when publishing work using NGS resources.
Running the Application on the NGS
Gadget may be run on any NGS node via the Globus commands documented below or from the NGS web Portal. On ngs.rl.ac.uk it may be submitted directly to the local batch system as well. This is also documented below.
Gadget has many compilation time options. On the NGS we have attempted to provide a range binaries that may be used with common options, as described below. If you need a different set of compile options please either contact the NGS helpdesk, or use the Makefile stored at
gsiftp://ngs.rl.ac.uk:2811/apps/Gadget2/2.0.3/Makefile
as a template for your own compilations of Gadget and loading the required library modules
module load hdf5/gnu gsl/gcc fftw/gcc/mpi-2.1.5
to add the shared libraries to your LD_LIBRARY_PATH.
| Binary | Makefile Options Used | Comment |
| Gadget2.default |
OPT += -DPERIODIC OPT += -DUNEQUALSOFTENINGS OPT += -DPMGRID=128 OPT += -DHAVE_HDF5 #OPT += -DDOUBLEPRECISION #OPT += -DDOUBLEPRECISION_FFTW |
Distribution Makefile settings |
| Gadget2.cluster |
#OPT += -DPERIODIC OPT += -DUNEQUALSOFTENINGS OPT += -DPMGRID=128 OPT += -DHAVE_HDF5 #OPT += -DDOUBLEPRECISION #OPT += -DDOUBLEPRECISION_FFTW |
As Cluster example |
| Gadget2.galaxy |
#OPT += -DPERIODIC OPT += -DUNEQUALSOFTENINGS #OPT += -DPMGRID=128 OPT += -DHAVE_HDF5 #OPT += -DDOUBLEPRECISION #OPT += -DDOUBLEPRECISION_FFTW |
As galaxy example |
| Gadget2.gassphere |
#OPT += -DPERIODIC #OPT += -DUNEQUALSOFTENINGS #OPT += -DPMGRID=128 OPT += -DHAVE_HDF5 #OPT += -DDOUBLEPRECISION #OPT += -DDOUBLEPRECISION_FFTW |
As gassphere example |
| Gadget2.lcdm_gas |
OPT += -DPERIODIC #OPT += -DUNEQUALSOFTENINGS OPT += -DPMGRID=128 OPT += -DHAVE_HDF5 #OPT += -DDOUBLEPRECISION #OPT += -DDOUBLEPRECISION_FFTW |
As lcdm_gas example |
- Submission Using the UI/WMS
- NGS Web Portal Submission
After logging in to the NGS portal, select the "Gadget" template under the "Astrophysics" category and make the amendments appropriate for your specific job. Read the description page of the template for further details.
- Submission Using Globus
To submit a Gadget simulation using Globus, for example on ngs.rl.ac.uk, use the following command (one line excluding the backslashes) for a parallel job:
globusrun -b -r ngs.rl.ac.uk/jobmanager-lsf \
'&(executable=/usr/ngs/GADGET)(jobtype=mpi)(count=16) \
(directory=/home/ngsXXXX/galaxy) \
(arguments= Gadget2.galaxy galaxy.param) \
(stdout=/home/ngsXXXX/galaxy/galaxy.stdout) \
(stderr==/home/ngsXXXX/galaxy/galaxy.stderr)'
Comming soon...
where you modify the galaxy.param according to your parameter file name and substitute your run directory (Eg replacing /home/ngsXXXX/galaxy by your home and run directory). Note that the galaxy.param file contains parameters: InitCondFile ,OutputDir ,OutputListFilename which should be set to the local directory (or ICs can be referenced or copied from the install at /apps/Gadget2/2.0.3/ICs on ngs.rl.ac.uk for example).
Note that the binary name appears in the "arguments" section of the above string. The "executable" value of /usr/ngs/GADGET should remain the same regardless of which Gadget binary name (chosen from the table above) you choose in the "arguments". The Gadget2 restart argument can be placed in the arguments section as well if required.
Compilation Information
- ngs.rl.ac.uk
- GNU gcc compiler 3.4.6 20060404
- ScaliMPI MPI Library
- GNU Scientific Library 1.11
- FFTW 2.1.5 mpi option
- HDF5 1.6.6 Library
Further Information
- Gadget2 Web site
- User documentation
- Join the Gadget 2 mailing list by sending an email to minimalist@mpa-garching.mpg.de with the subject of "subscribe gadget-list"
- Gadget is supplied with some IDL examples for analysis of the output files. The NGS provides access to IDL on ngs.rl.ac.uk (only), see here. The IDL examples are in the:
gsiftp://ngs.rl.ac.uk:2811/apps/Gadget2/2.0.3/Analysis
Applications Support
The NGS cannot offer scientific support for applications. However if you require further information or believe there is something wrong with the installation, please contact the NGS support centre.
Acknowledgements
Please note: When publishing work based on use of the NGS, users should acknowledge both the authors of any programs used (see the individual program web sites, or contact the authors directly) and the NGS directly using the following line:
"The authors would like to acknowledge the use of the UK National Grid Service in carrying out this work"
This line must also accompany any use of the NGS logos.


