-
Notifications
You must be signed in to change notification settings - Fork 119
Compiling
The configuration script creates Makefile in the code directory, and you can build the code using standard make. Before building the code, it is strongly recommended to clean up temporary files.
make clean
Then simply,
make
As Athena++ is fairly big, compilation may take a while. You can speed up this process using parallel make
make -j
The executable binary file is stored in bin/athena.
On some machines, compilers may have different commands. For example, on some Cray systems, 'CC' is used no matter which compiler environment is selected. In this case, you need to modify Makefile accordingly.
On Intel-based systems (e.g. Cray XC40), we strongly recommend to use the Intel C++ Compiler (icc, version 15 or later) because it is significantly faster than other compilers. If you want to try more aggressive optimization, you can use "-fast" option which enables the most aggressive optimization. Also, static linking (-static) improves the performance of massively parallel simulations.
Getting Started
User Guide
- Configuring
- Compiling
- The Input File
- Problem Generators
- Boundary Conditions
- Coordinate Systems and Meshes
- Running the Code
- Outputs
- Using MPI and OpenMP
- Static Mesh Refinement
- Adaptive Mesh Refinement
- Load Balancing
- Special Relativity
- General Relativity
- Passive Scalars
- Shearing Box
- Diffusion Processes
- General Equation of State
- FFT
- High-Order Methods
- Super-Time-Stepping
- Orbital Advection
- Rotating System
- Reading Data from External Files
Programmer Guide