1 The Netgen 4.3 from the web location : http://www.hpfem.jku.at/netgen/ is used
2 in the SMESH Module of Salome2 distribution.
4 How to build Netgen for Salome
5 ------------------------------
7 Patch the official netgen 4.3 distribution:
10 $ patch -p1 < patch_directory/netgen43ForSalome.patch
12 Then run makeForSalome.sh:
16 Additional information for maintainers
17 --------------------------------------
19 The SMESH Engine of SALOME2 (particularly the m4 file check_Netgen.m4) assume
20 that Netgen is installed in the directory <netgen_installation_path> as follow:
22 prompt> ls <netgen_installation_path>
24 bin/ cshrc_for_netgen doc/ include/ lib/ tutorials/
26 prompt> ls <netgen_installation_path>/bin
30 prompt> ls <netgen_installation_path>/bin/LINUX/
32 demoapp/ ng ng.tcl ngtcltk/ startup.tcl
34 prompt> ls <netgen_installation_path>/bin/LINUX/demoapp/
38 prompt> ls <netgen_installation_path>/bin/LINUX/ngtcltk/
40 dialog.tcl menustat.tcl ngicon.tcl parameters.tcl
41 drawing.tcl nghelp.tcl ngvisual.tcl variables.tcl
43 prompt> ls <netgen_installation_path>/doc/
47 prompt> ls <netgen_installation_path>/include/
51 prompt> ls <netgen_installation_path>/lib/
55 prompt> ls <netgen_installation_path>/lib/LINUX/
57 libcsg.a libgeom2d.a libla.a libnginterface.a libstlgeom.a
58 libgen.a libgprim.a libmesh.a libopti.a libvis.a
60 prompt> ls <netgen_installation_path>/tutorials/
62 boxcyl.geo cylinder.geo ficherea.geo part1.stl square.in2d
63 cone.geo cylsphere.geo hinge.stl sculpture.geo trafo.geo
64 cubeandspheres.geo demo2d.in2d lshape3d.geo shaft.geo twobricks.geo
65 cube.geo ellipsoid.geo manyholes.geo sphere.geo twocubes.geo
66 cubemcyl.geo ellipticcyl.geo matrix.geo sphereincube.geo twocyl.geo
69 All *.tcl files are needed to control and initiate the Netgen mesher throughout its
70 MHI (Machine Human Interface).<netgen_installation_path>/bin/LINUX/ng is the Netgen
71 executable with its embarked MHI. All the libraries *.a should be compiled without
72 the option -DOPENGL which is only needed for the Netgen MHI. netgen43 is assumed to
73 be the directory downloaded from the above web location archive of Netgen. The library
74 <netgen_installation_path>/lib/LINUX/libnginterface.a should contain the objects
75 nglib.o (from netgen43/libsrc/interface/nglib.cpp) and ngnewdelete.o
76 (from netgen43/ngtcltk/ngnewdelete.cpp).
78 To have that kind of distribution from the version in the above web location you
79 should first compile Netgen as suggested in the netgen43/README.INSTALL file. It will
80 then produce the executable ng linked statically with the libraries *.a. Then modify
81 the Makefiles to remove -DOPENGL from compiler flags list, add the objects nglib.o
82 and ngnewdelete.o to the library libnginterface.a and recompile the libraries only.
84 From the above web location perhaps, you will have to alter some Netgen sources to
85 compile them; if you find any difficulties to do that, just ask me.
89 ********************************
91 * Ingénieur-chercheur *
92 * Engineer-Researcher *
95 * DEN/DM2S/SFME/LGLS *
97 * 91191 Gif-Sur-Yvette cédex *
99 * Tél: +33 (0)1 69 08 73 07 *
100 * Fax: +33 (0)1 69 08 96 96 *
101 * email: nadir.bouhamou@cea.fr *
102 ********************************