From: David Wells
deal.II uses the
- CMake integrated configuration and build system. Unpacking will create a subdirectory deal.II/ in the current directory. Then do the following steps:
mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/dir ../deal.II - make install ++ We recommend compiling deal.II in parallel if your machine has more than one processor core. This can be done by providing the
--jobs
flag to make
with a numerical argument. Here we compile with four make
jobs:
+ + make --jobs=4 install make test+ One should usually use one job for each processor core on the machine.
These steps compile, link, install the deal.II library, and run a few consistency checks. The whole process should take between a few minutes and an hour, depending on your machine.
@@ -182,9 +186,7 @@
Another option is to use something like `pwd`/../installed/
(note the backticks). Make sure the installation directory is not the same as the location where you unpacked deal.II/.
-
make
- -jN install
in the second to last step instead, where N
is the number of simultaneous build processes you want make
to use at any given time. Allowing make
to use more simultaneous build processes (assuming you have that many processor
- cores) will greatly lower the build time. make test
automatically runs in parallel and no -jN
flag should be supplied to it.
+ make test
automatically runs in parallel and no -jN
flag should be supplied to it.
build/
directory after the last step.