|
MPI-AMRVAC 3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
|
Different predefined rules for compilation can be found in the arch/ folder, for example:
default.arch: The default settings, using GNU gfortrandebug.arch: Debug flags, using GNU gfortranintel.arch: Using Intel ifortinteldebug.arch: Debug flags, using Intel ifortThese files set the compiler/linker and compiler flags. You can select the default settings when you create a makefile, for example to use debug flags:
$AMRVAC_DIR/setup.pl -d=2 -arch=debug
You can also edit the resulting makefile by hand later, or specify the compilation settings on the command line:
make ARCH=debug
If you make use of external libraries, you can add them to a file local.make. This file will automatically be read (and included) by the AMRVAC makefile. Suppose you want to include a library libhdf5.so (or libhdf5.a) which is in a folder called my/lib/folder, then you could specify:
LIBS += hdf5 LIB_DIRS += my/lib/folder