-
Notifications
You must be signed in to change notification settings - Fork 62
/
INSTALL
28 lines (13 loc) · 1.01 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
- Clone the FEMuS source code from the github repository:
git clone https://github.com/FeMTTU/femus.git
- Install petsc and libmesh in some common directory "my_external_directory" (please put it outside of the femus repo directory):
( If they are not installed already, the script "install_external.sh" in contrib/scripts/ will do it automatically, with the following syntax:
./femus/contrib/scripts/install_petsc_and_libmesh.sh --prefix-external my_external_directory
)
- Source the "configure_femus.sh" script and execute the function "fm_set_femus" in order to set some environment variables:
source femus/contrib/scripts/configure_femus.sh
fm_set_femus --prefix-external my_external_directory --method-petsc [opt,dbg] --method-libmesh [opt,dbg]
- Create the build directory, cd to it and run cmake:
mkdir femus.build
cd femus.build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="[Debug Release RelWithDebInfo MinSizeRel None]" -DLIBMESH_DIR=my_libmesh_directory ../femus