Salome HOME
Adjust to CVS HEAD modifications
[modules/smesh.git] / src / NETGEN / ReadMeForNgUsers
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.
3
4 How to build Netgen for Salome
5 ------------------------------
6
7 Patch the official netgen 4.3 distribution:
8
9 $ cd netgen43
10 $ patch -p1 < patch_directory/netgen43ForSalome.patch
11
12 Then run makeForSalome.sh:
13 $ sh makeForSalome.sh
14
15
16 Additional information for maintainers
17 --------------------------------------
18
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:
21
22 prompt> ls <netgen_installation_path>
23
24 bin/  cshrc_for_netgen  doc/  include/  lib/  tutorials/
25
26 prompt> ls <netgen_installation_path>/bin
27
28 LINUX/
29
30 prompt> ls <netgen_installation_path>/bin/LINUX/
31
32 demoapp/  ng  ng.tcl  ngtcltk/  startup.tcl
33
34 prompt> ls <netgen_installation_path>/bin/LINUX/demoapp/
35
36 demoapp.tcl
37
38 prompt> ls <netgen_installation_path>/bin/LINUX/ngtcltk/
39
40 dialog.tcl   menustat.tcl  ngicon.tcl    parameters.tcl
41 drawing.tcl  nghelp.tcl    ngvisual.tcl  variables.tcl
42
43 prompt> ls <netgen_installation_path>/doc/
44
45 ng4.pdf  usenetgen.ps
46
47 prompt> ls <netgen_installation_path>/include/
48
49 nglib.h
50
51 prompt> ls <netgen_installation_path>/lib/
52
53 LINUX/
54
55 prompt> ls <netgen_installation_path>/lib/LINUX/
56
57 libcsg.a  libgeom2d.a  libla.a    libnginterface.a  libstlgeom.a
58 libgen.a  libgprim.a   libmesh.a  libopti.a         libvis.a
59
60 prompt> ls <netgen_installation_path>/tutorials/
61
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
67 cubemsphere.geo
68
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).
77
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.
83
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.
86
87 Nadir
88
89 ********************************
90 * Dr Nadir Bouhamou            *
91 * Ingénieur-chercheur          *
92 * Engineer-Researcher          *
93 *                              *
94 * CEA Saclay                   *
95 * DEN/DM2S/SFME/LGLS           *
96 * Bat 454 Pièce 5A             *
97 * 91191 Gif-Sur-Yvette cédex   *
98 *                              *
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 ********************************