Building SWAN using GNU make
Carry out the following steps for building SWAN on your computer.
- An include file containing some machine-dependent macros must be created first.
This file is called macros.inc and can be created by typing
make config
- Now, SWAN can be built for serial or parallel mode, as follows:
mode |
instruction |
serial |
make ser |
parallel, shared |
make omp |
parallel, distributed |
make mpi |
IMPORTANT NOTES:
- To Windows users:
- To execute the above instructions, just open a command prompt.
- To build SWAN on Windows platforms by means of a Makefile you need the command-line utility Nmake, which is provided by the Microsoft Visual Studio.
- This setup does support OpenMP for Windows systems, if
Intel Fortran Compiler
is provided.
- This installation currently supports Intel MPI library for
Windows. See Section 3.2.4 for further information.
- One of the commands make ser, make omp and make mpi
must be preceded once by make config.
- If desirable, you may clean up the generated object files and modules by
typing make clean. If you want to delete any stray files from a
previous compilation, just type make clobber.
- If you are unable to install SWAN using the Makefile and Perl scripts for
whatever reason, see Section 3.2.3 that includes instructions for a custom
installation.
The SWAN team 2024-09-09