-
Notifications
You must be signed in to change notification settings - Fork 119
Compiling
The configuration script creates a Makefile in the top-level directory, and you can build the code using standard make tools. Before building the code, it is strongly recommended that any stale or temporary files created by previous compilations be cleaned up.
> make clean
Then simply,
> make
Depending on the compiler and level of optimization, the compilation may take a while. You can speed it up using parallel make
> make -j
This process creates the executable bin/athena.
On some machines, compilers may have different names, or may have different options. For example, on some Cray systems, 'CC' is used no matter which compiler environment is selected. In this case, the Makefile may be edited accordingly.
On Intel-based systems, we strongly recommend use of the Intel C++ Compiler suite (icc, version 15 or later) because it results in a significantly faster executable than other compilers. If you want to try more aggressive optimization, try the "-fast" option. Also, static linking (-static) may improve the performance of highly 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