![]() |
PRISMS-PF Manual
|
Before you can install PRISMS-PF, you will need to have some prerequisites installed on your machine. These include:
You can install these prerequisites however you like. The first five are typically available on most OSes through your package manager. For example, on Ubuntu, you can install them with:
To install p4est and deal.II, we recommend following the instructions on the deal.II installation guide. We suggest building deal.II and p4est using deal.II's automatic installation script candi.
Modify the candi.cfg file, commenting out any PACKAGES other than dealii and p4est. Then run:
or
to compile with multiple processors (much faster). (Note that we have found that specifying too many processors can sometimes lead to build failures, so if you run into issues, try reducing the number of processors specified.)
This will install both p4est and deal.II in a local directory (by default,$HOME/dealii-candi/). Be sure to permanently set the DEAL_II_DIR environment variable to point to the deal.II installation.
To install VTK, we recommend installing from source.
Be sure to permanently set the VTK_DIR environment variable to point to the VTK installation (e.g.,$HOME/vtk-install/lib/cmake/vtk-9.xx).
Once you have all the prerequisites installed, you can clone the PRISMS-PF repository from GitHub, configure the build with CMake, and compile the code:
This will build the PRISMS-PF library in both debug and release modes. Next, set the PRISMS_PF_DIR environment variable to point to the PRISMS-PF installation directory (the directory containing the lib and include directories). You can now compile and run any of the applications in the applications directory. For example, to compile and run the allen_cahn_explicit application, you can use the following commands: