[Fortran 90 Gadget-2 IO Tools by Gabriel Altay]

0.9

Introduction

This is the documentation for a set of Fortran 90 IO Tools for Gadget-2 written by Gabriel Altay . Gadget-2 is a publically available Smoothed Particle Hydrodynamics (SPH) code that has been used extensively by the computational physics community. The routines documented here are restricted to IO as analysis routines are more generally applicable to any SPH data and so are in a different program group.

Download

A tarball of the IO module, a Makefile, and an example read program can be downloaded gtools_src.tar .

Usage

See example_gadget_read.f90 for example source code.

The idea here is to use the module construct to encapsulate IO subroutines. These subroutines become available to a program by including the use statement after the main program statement. For example,

program myIOtest
use gadget_io_mod
implicit none

The naming convention for the input subroutines is,

gadgetread_[gas]<blockname><nfiles>

where blockname is one of {pos,vel,id,mass,u,rho,ye,xHI,hsml,sfr}, nfiles is one of {1,N}, and "gas" is only present if blockname is one of {u,rho,ye,xHI,hsml,sfr}. For example, the routine to read positions from a whole snapshot is gadgetread_posN() and the routine to read gas electron fractions from a single file is gadgetread_gasye1(). See the documentation for further description of the arguments.


Generated on Sun Mar 8 20:23:08 2009 for Fortran 90 Gadget-2 IO Tools by  doxygen 1.5.5