The latest version of TRINITY can be obtained from its SVN repository at https://gyrokinetics.svn.sourceforge.net/svnroot/gyrokinetics/trinity/trunk. To obtain it, simply open a terminal and type "svn co https://gyrokinetics.svn.sourceforge.net/svnroot/gyrokinetics/trinity/trunk".

After typing the above command, you will have the TRINITY source files in a folder named 'trunk'. Before compiling, you need to set the environment variable 'SYSTEM' to one of the following supported systems: bassi, columbus, genius, hector, jaguar, juropa, mac, or newhydra. If you are interested in running on a system that's not on this list, contact us. You will also need to add the 'Makefiles' directory to your include path, which can be done by setting 'MAKEFLAGS=-IMakefiles' in your preferred login script (.login, .bashrc, etc.) or by adding '-IMakefiles' as an argument to the 'make' command at compilation time.

What you do next depends on the model you will use to evaluate the turbulent fluxes that are input to the transport equations solved by TRINITY.

1) If you are using IFS-PPPL or some other analytic model for the fluxes, simply type 'make' in 'trunk'.
2) If you are using the gyrokinetic codes GS2 or GENE to compute the fluxes, you will need access to the GS2 or GENE library, as well as the libraries required by GS2 or GENE. In order to let the compiler know where the GS2/GENE library is, you must set the environment variable 'GS2' or 'GENE' to be the path that contains the library. At this point, simply go to 'trunk' and type 'make FLUXCODE=gs2' or 'make FLUXCODE=gene'.

In either case, the executable will shortly appear in 'trunk' with the name 'trinity'.

Regardless of which flux model is chosen, you need a TRINITY input file, which specifies details of the magnetic geometry, source profiles, initial conditions, etc. Example input files can be found here. Once you have created the TRINITY input file and any necessary additional input files (detailed in the example files provided at the link above), you are ready to run TRINITY. Type any load-leveler specific command needed to ask for computing resources (aprun, mpirun, or the like), followed by './trinity INPUTFILE.trin'. Note that the TRINITY input file is expected to have the extension '.trin'.