Salome HOME
Synchronize adm files
[plugins/netgenplugin.git] / src / NETGEN / ReadMeForNgUsers
1 # ------------------------------------------------------------------
2 # ------------------------------------------------------------------
3 # Notes for Netgen >= 4.9.13
4 # ------------------------------------------------------------------
5 # ------------------------------------------------------------------
6
7 Netgen home page: http://sourceforge.net/apps/mediawiki/netgen-mesher.
8
9 1. Minimal requirements
10
11 Minimal version of Netgen required for SALOME is 4.9.13.
12
13 2. How to build Netgen for SALOME NETGEN Plugin
14 -----------------------------------------
15
16 2.1. Download Netgen archive (here netgen-4.9.13.tar.gz) and unpack it
17
18 2.2. Patch the Netgen distribution for SALOME
19
20        $ cd netgen45
21        $ patch -p1 < patch_directory/netgen49ForSalome.patch
22
23      Note that patch corresponds to the version of Netgen you use.
24      For example, netgen49ForSalome.patch mentioned above is a patch
25      file for Netgen 4.9.13. The patch for Netgen can be found in
26      NETGENPLUGIN_SRC/src/NETGEN directory.
27
28 2.3. Configure the netgen compilation. For example
29
30        $ cd netgen-4.9.13
31        $ ./configure --prefix=THE_INSTALLATION_PATH \
32          --with-occ=${CASROOT} \
33          --with-tcl=${TCLHOME}/lib --with-tk=${TCLHOME}/lib \
34          --with-tclinclude=${TCLHOME}/include
35
36      Note that Netgen depends on some products like Open CASCADE
37      Technology and Tcl/Tk. These products should be specified
38      to the configure script via options.
39
40 2.4. Compile the netgen product
41        $ make 
42        $ make install
43
44 2.5. Patch the installation directory by copying include files
45      needed by NETGEN Plugin. Use the script
46      NETGENPLUGIN_SRC/src/NETGEN/netgen_copy_include_for_salome
47      to achieve that. The first argument is the directory containing
48      the Netgen sources. The second argument is THE_INSTALLATION_PATH