Salome HOME
updating or adding when merging in the main trunk with the version in the
[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 Assumptions on the Netgen installation
5 --------------------------------------
6
7 The SMESH Engine of SALOME2 (particularly the m4 file check_Netgen.m4) assume
8 that Netgen is installed in the directory <netgen_installation_path> as follow:
9
10 prompt> ls <netgen_installation_path>
11
12 bin/  cshrc_for_netgen  doc/  include/  lib/  tutorials/
13
14 prompt> ls <netgen_installation_path>/bin
15
16 LINUX/
17
18 prompt> ls <netgen_installation_path>/bin/LINUX/
19
20 demoapp/  ng  ng.tcl  ngtcltk/  startup.tcl
21
22 prompt> ls <netgen_installation_path>/bin/LINUX/demoapp/
23
24 demoapp.tcl
25
26 prompt> ls <netgen_installation_path>/bin/LINUX/ngtcltk/
27
28 dialog.tcl   menustat.tcl  ngicon.tcl    parameters.tcl
29 drawing.tcl  nghelp.tcl    ngvisual.tcl  variables.tcl
30
31 prompt> ls <netgen_installation_path>/doc/
32
33 ng4.pdf  usenetgen.ps
34
35 prompt> ls <netgen_installation_path>/include/
36
37 nglib.h
38
39 prompt> ls <netgen_installation_path>/lib/
40
41 LINUX/
42
43 prompt> ls <netgen_installation_path>/lib/LINUX/
44
45 libcsg.a  libgeom2d.a  libla.a    libnginterface.a  libstlgeom.a
46 libgen.a  libgprim.a   libmesh.a  libopti.a         libvis.a
47
48 prompt> ls <netgen_installation_path>/tutorials/
49
50 boxcyl.geo          cylinder.geo     ficherea.geo   part1.stl         square.in2d
51 cone.geo            cylsphere.geo    hinge.stl      sculpture.geo     trafo.geo
52 cubeandspheres.geo  demo2d.in2d      lshape3d.geo   shaft.geo         twobricks.geo
53 cube.geo            ellipsoid.geo    manyholes.geo  sphere.geo        twocubes.geo
54 cubemcyl.geo        ellipticcyl.geo  matrix.geo     sphereincube.geo  twocyl.geo
55 cubemsphere.geo
56
57 All *.tcl files are needed to control and initiate the Netgen mesher throughout its
58 MHI (Machine Human Interface).<netgen_installation_path>/bin/LINUX/ng is the Netgen
59 executable with its embarked MHI. All the libraries *.a should be compiled without
60 the option -DOPENGL which is only needed for the Netgen MHI. netgen43 is assumed to
61 be the directory downloaded from the above web location archive of Netgen. The library
62 <netgen_installation_path>/lib/LINUX/libnginterface.a should contain the objects
63 nglib.o (from netgen43/libsrc/interface/nglib.cpp) and ngnewdelete.o
64 (from netgen43/ngtcltk/ngnewdelete.cpp).
65
66 To have that kind of distribution from the version in the above web location you
67 should first compile Netgen as suggested in the netgen43/README.INSTALL file. It will
68 then produce the executable ng linked statically with the libraries *.a. Then modify
69 the Makefiles to remove -DOPENGL from compiler flags list, add the objects nglib.o
70 and ngnewdelete.o to the library libnginterface.a and recompile the libraries only.
71
72 From the above web location perhaps, you will have to alter some Netgen sources to
73 compile them; if you find any difficulties to do that, just ask me.
74
75 Nadir
76
77 ********************************
78 * Dr Nadir Bouhamou            *
79 * Ingénieur-chercheur          *
80 * Engineer-Researcher          *
81 *                              *
82 * CEA Saclay                   *
83 * DEN/DM2S/SFME/LGLS           *
84 * Bat 454 Pièce 5A             *
85 * 91191 Gif-Sur-Yvette cédex   *
86 *                              *
87 * Tél: +33 (0)1 69 08 73 07    *
88 * Fax: +33 (0)1 69 08 96 96    *
89 * email: nadir.bouhamou@cea.fr *
90 ********************************