# ------------------------------------------------------------------
+# Notes about usage of Netgen with SALOME
# ------------------------------------------------------------------
-# Notes for Netgen >= 4.9.13
-# ------------------------------------------------------------------
-# ------------------------------------------------------------------
-Netgen home page: http://sourceforge.net/apps/mediawiki/netgen-mesher.
+-------------------
+1. Netgen home page
+-------------------
+
+Netgen mesher's home page is: https://sourceforge.net/projects/netgen-mesher/.
+
+-----------------------
+2. Minimal requirements
+-----------------------
+
+Minimal version of Netgen required for SALOME is 5.3.1.
-1. Minimal requirements
+----------------------------------------
+3. Build Netgen for SALOME NETGEN Plugin
+----------------------------------------
-Minimal version of Netgen required for SALOME is 4.9.13.
+3.1. Download Netgen archive (here netgen-5.3.1.tar.gz) from the project's site:
-2. How to build Netgen for SALOME NETGEN Plugin
------------------------------------------
+ $ wget https://vorboss.dl.sourceforge.net/project/netgen-mesher/netgen-mesher/5.3/netgen-5.3.1.tar.gz
-2.1. Download Netgen archive (here netgen-4.9.13.tar.gz) and unpack it
+3.2. Unpack an archive:
-2.2. Patch the Netgen distribution for SALOME
+ $ tar xfz netgen-5.3.1.tar.gz
- $ cd netgen45
- $ patch -p1 < patch_directory/netgen49ForSalome.patch
+3.3. Patch the Netgen distribution for SALOME
- Note that patch corresponds to the version of Netgen you use.
- For example, netgen49ForSalome.patch mentioned above is a patch
- file for Netgen 4.9.13. The patch for Netgen can be found in
- NETGENPLUGIN_SRC/src/NETGEN directory.
+ $ cd netgen-5.3.1
+ $ patch -p1 < /path/to/netgenplugin_src_dir/src/NETGEN/netgen53ForSalome.patch
-2.3. Configure the netgen compilation. For example
+ Here, "/path/to/netgenplugin_src_dir" is a path to NETGENPLUGIN source directory.
+ This is the same directory where this Readme file is located.
+ Netgen plugin sources can be retrieved from the Git repository:
+
+ $ git clone http://git.salome-platform.org/gitpub/plugins/netgenplugin.git
- $ cd netgen-4.9.13
- $ ./configure --prefix=THE_INSTALLATION_PATH \
- --with-occ=${CASROOT} \
+3.4. Configure the netgen compilation:
+
+ $ cd netgen-5.3.1
+ $ ./configure --prefix=/path/to/the/installation/directory \
+ --with-occ=${CAS_ROOT_DIR} \
--with-tcl=${TCLHOME}/lib --with-tk=${TCLHOME}/lib \
--with-tclinclude=${TCLHOME}/include
- Note that Netgen depends on some products like Open CASCADE
- Technology and Tcl/Tk. These products should be specified
- to the configure script via options.
+ Note: Netgen depends on some products like Open CASCADE Technology and Tcl/Tk.
+ These products should be specified to the configure script via options.
+
+3.5. Compile and install netgen mesher:
+
+ $ make install
+
+3.6. Patch the installation directory by copying header files
+ needed by NETGEN Plugin. For this purpose you can use the script
+ /path/to/netgenplugin_src_dir/src/NETGEN/netgen_copy_include_for_salome.
-2.4. Compile the netgen product
- $ make
- $ make install
+ $ /path/to/netgenplugin_src_dir/src/NETGEN/netgen_copy_include_for_salome \
+ . /path/to/the/installation/directory
-2.5. Patch the installation directory by copying include files
- needed by NETGEN Plugin. Use the script
- NETGENPLUGIN_SRC/src/NETGEN/netgen_copy_include_for_salome
- to achieve that. The first argument is the directory containing
- the Netgen sources. The second argument is THE_INSTALLATION_PATH
+ The first argument is the directory containing the Netgen sources.
+ The second argument is the installation directory of Netgen mesher.