Skip to content

Commit 9bc92a2

Browse files
authored
Merge branch 'LIHPC-Computational-Geometry:main' into dev/ah-check-proc-arch
2 parents d172cea + ad9ee65 commit 9bc92a2

23 files changed

+210
-161
lines changed

cmake/version.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#
44

55
set (LIMA_MAJOR_VERSION "7")
6-
set (LIMA_MINOR_VERSION "11")
7-
set (LIMA_RELEASE_VERSION "2")
6+
set (LIMA_MINOR_VERSION "12")
7+
set (LIMA_RELEASE_VERSION "0")
88
set (LIMA_VERSION ${LIMA_MAJOR_VERSION}.${LIMA_MINOR_VERSION}.${LIMA_RELEASE_VERSION})
99

1010

installation.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cmake -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_
2222
-DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_XLMLIMA=ON -DBUILD_TESTS:BOOL=ON -DBUILD_SCRIPTING:BOOL=ON -DMACHINE_TYPES:BOOL=OFF -DSUMESH:BOOL=OFF -DFORMAT_MLI:BOOL=OFF -DFORMAT_MLI2:BOOL=ON -DFORMAT_MLI2:BOOL=ON \
2323
-DBUILD_SHARED_LIBS:BOOL=ON -DINT_8:BOOL=ON -DREAL_8:BOOL=ON \
2424
-DSWIG_EXECUTABLE=/opt/swig/4.1.1/bin/swig -DPython3_ROOT_DIR=/usr/lib/python3 -DHDF5_ROOT=/opt/HDF5/1.12.0 \
25-
-B /tmp/lima_build_dir -DCMAKE_INSTALL_PREFIX=/opt/Lima/7.11.2
25+
-B /tmp/lima_build_dir -DCMAKE_INSTALL_PREFIX=/opt/Lima/7.12.0
2626
cmake --build /tmp/lima_build_dir
2727
cmake --install /tmp/lima_build_dir
2828

@@ -32,7 +32,7 @@ cmake -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_
3232
-DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_XLMLIMA=ON -DBUILD_TESTS:BOOL=ON -DBUILD_SCRIPTING:BOOL=ON -DMACHINE_TYPES:BOOL=ON -DSUMESH:BOOL=ON -DFORMAT_MLI:BOOL=ON -DFORMAT_MLI2:BOOL=ON \
3333
-DBUILD_SHARED_LIBS:BOOL=ON -DINT_8:BOOL=ON -DREAL_8:BOOL=ON \
3434
-DSWIG_EXECUTABLE=/opt/swig/4.1.1/bin/swig -DPython3_ROOT_DIR=/usr/lib/python3 -DHDF5_ROOT=/opt/HDF5/1.12.0 -DHDF145_INCLUDE_DIR=/opt/hdf145/1.3.0/include -DHDF145CPP_LIBRARY=/opt/hdf145/1.3.0/lib/libhdf145_cpp.so -DHDF145_LIBRARY=/opt/hdf145/1.3.0/lib/libhdf145.so \
35-
-B /tmp/lima_build_dir -DCMAKE_INSTALL_PREFIX=/opt/Lima/7.11.2
35+
-B /tmp/lima_build_dir -DCMAKE_INSTALL_PREFIX=/opt/Lima/7.12.0
3636
cmake --build /tmp/lima_build_dir
3737
cmake --install /tmp/lima_build_dir
3838

src/Lima/maillage_it.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,7 +2475,7 @@ void _MaillageInterne::lire_structure (
24752475

24762476
try
24772477
{
2478-
auto_ptr<_Reader> reader (_Reader::create (this,fichier,format,num));
2478+
unique_ptr<_Reader> reader (_Reader::create (this,fichier,format,num));
24792479
if (0 == reader.get ( ))
24802480
throw read_erreur("Impossible d'initialiser le module de lecture\n");
24812481

@@ -2496,7 +2496,7 @@ void _MaillageInterne::lire(const string& fichier, format_t format, size_type nu
24962496

24972497
try
24982498
{
2499-
auto_ptr<_Reader> reader (_Reader::create (this,fichier,format,num));
2499+
unique_ptr<_Reader> reader (_Reader::create (this,fichier,format,num));
25002500
if (0 == reader.get ( ))
25012501
throw read_erreur("Impossible d'initialiser le module de lecture\n");
25022502

src/Lima/public/Lima/bras.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Bras : public Handle_BrasInterne
2424
public:
2525
Bras(const Noeud& n0, const Noeud& n1);
2626
#ifdef SWIG
27-
%name(Bras_id)
27+
%rename(Bras_id) Bras(size_type n, const Noeud& n0, const Noeud& n1);
2828
#endif
2929
Bras(size_type n, const Noeud& n0, const Noeud& n1);
3030

src/Lima/public/Lima/ligne.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Ligne : public Handle_LigneInterne
5858
Bras bras_id(size_type id) const;
5959

6060
#ifdef SWIG
61-
%name(contenir_bras)
61+
%rename(contenir_bras) contenir(const Bras& br) const;
6262
#endif
6363
bool contenir(const Bras& br) const;
6464
// Liste des attributs des bras.
@@ -73,7 +73,7 @@ class Ligne : public Handle_LigneInterne
7373
Noeud noeud_id(size_type id) const;
7474

7575
#ifdef SWIG
76-
%name(contenir_noeud)
76+
%rename(contenir_noeud) contenir(const Noeud& nd) const;
7777
#endif
7878
bool contenir(const Noeud& nd) const;
7979
// Liste des attributs des noeuds.

src/Lima/public/Lima/lima.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern "C" {
3131

3232
/** Types enum pour l'acces aux fichiers et la preparation
3333
*/
34-
enum LM_FORMAT_FICHIER {
34+
typedef enum LM_FORMAT_FICHIER {
3535
/** Detection du format par le suffixe du nom du fichier.
3636
* Formats utilises pour la lecture et l'ecriture */
3737
LM_FF_SUFFIXE = 0,
@@ -89,14 +89,13 @@ extern "C" {
8989
LM_FF_MALIPP2 = 15,
9090
#endif
9191
LM_FF_INCONNU
92-
};
93-
typedef enum LM_FORMAT_FICHIER LM_FORMAT_FICHIER;
92+
} LM_FORMAT_FICHIER;
9493

9594

9695
/** Niveau de preparation du maillage pour les codes
9796
* (verification et traitement)
9897
*/
99-
enum LM_PREPARATION {
98+
typedef enum LM_PREPARATION {
10099
/** Preparation minimale. Verification d'integrite uniquement.
101100
Seul les donnees de base sont autorise en consultation */
102101
LM_PR_MINIMALE = 1,
@@ -112,9 +111,7 @@ extern "C" {
112111
LM_PR_BASE_3D = 6,
113112
LM_PR_CODE_T = 7,
114113
LM_PR_INCONNU
115-
};
116-
typedef enum LM_PREPARATION LM_PREPARATION;
117-
114+
} LM_PREPARATION;
118115

119116

120117
#ifdef __INTERNE_MACHINE_TYPES

src/Lima/public/Lima/maillage.h

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -141,38 +141,40 @@ class Maillage : public Handle_MaillageInterne
141141

142142
// Dimension du maillage.
143143
#ifdef SWIG
144-
%name(set_dimension)
144+
%rename(set_dimension) dimension(dim_t dim);
145145
#endif
146146
void dimension(dim_t dim);
147147
// Unité de longueur du maillage.
148148
#ifdef SWIG
149-
%name(set_unite_longueur)
149+
%rename(set_unite_longueur) unite_longueur(double unilo);
150150
#endif
151151
void unite_longueur(double unilo);
152152
// Unité d'angle du maillage.
153153
#ifdef SWIG
154-
%name(set_unite_angle)
154+
%rename(set_unite_angle) unite_angle(double unia);
155155
#endif
156156
void unite_angle(double unia);
157157
// Type de géométrie du maillage.
158158
#ifdef SWIG
159-
%name(set_type_geometrie)
159+
%rename(set_type_geometrie) type_geometrie(geometrie_t geom);
160160
#endif
161161
void type_geometrie(geometrie_t geom);
162162
// Type de coordonnée du maillage.
163163
#ifdef SWIG
164-
%name(set_type_coordonnee)
164+
%rename(set_type_coordonnee) type_coordonnee(coordonnee_t tycoo);
165165
#endif
166166
void type_coordonnee(coordonnee_t tycoo);
167167
/// Titre du maillage.
168168
#ifdef SWIG
169-
%name(set_titre) void titre(const char* titre);
169+
%rename(set_titre) titre(const char* titre);
170+
void titre (const char* titre);
170171
#else
171172
void titre(const IN_STD string& titre);
172173
#endif
173174
/// Date du maillage.
174175
#ifdef SWIG
175-
%name(set_date) void date(const char* date);
176+
%rename(set_date) date(const char* date);
177+
void date(const char* date);
176178
#else
177179
void date(const IN_STD string& date);
178180
#endif
@@ -186,19 +188,19 @@ class Maillage : public Handle_MaillageInterne
186188
// Noeud d'ID n.
187189
Noeud noeud_id(size_type id) const;
188190
#ifdef SWIG
189-
%name(contenir_noeud)
191+
%rename(contenir_noeud) contenir(const Noeud& nd) const;
190192
#endif
191193
bool contenir(const Noeud& nd) const;
192194
#ifdef SWIG
193-
%name(ajouter_noeud)
195+
%rename(ajouter_noeud) ajouter(const Noeud& nd);
194196
#endif
195197
void ajouter(const Noeud& nd);
196198
#ifdef SWIG
197-
%name(retirer_noeud)
199+
%rename(retirer_noeud) retirer(const Noeud& nd);
198200
#endif
199201
void retirer(const Noeud& nd);
200202
#ifdef SWIG
201-
%name(deplacer_noeud)
203+
%rename(deplacer_noeud) deplacer(size_type id, double x, double y, double z);
202204
#endif
203205
void deplacer(size_type id, double x, double y, double z);
204206
// Liste des attributs des noeuds.
@@ -211,15 +213,15 @@ class Maillage : public Handle_MaillageInterne
211213
// Bras d'ID n.
212214
Bras bras_id(size_type id) const;
213215
#ifdef SWIG
214-
%name(contenir_bras)
216+
%rename(contenir_bras) contenir(const Bras& br) const;
215217
#endif
216218
bool contenir(const Bras& br) const;
217219
#ifdef SWIG
218-
%name(ajouter_bras)
220+
%rename(ajouter_bras) ajouter(const Bras& br);
219221
#endif
220222
void ajouter(const Bras& br);
221223
#ifdef SWIG
222-
%name(retirer_bras)
224+
%rename(retirer_bras) retirer(const Bras& br);
223225
#endif
224226
void retirer(const Bras& br);
225227
// Liste des attributs des bras.
@@ -232,15 +234,15 @@ class Maillage : public Handle_MaillageInterne
232234
// Polygone d'ID n.
233235
Polygone polygone_id(size_type id) const;
234236
#ifdef SWIG
235-
%name(contenir_polygone)
237+
%rename(contenir_polygone)contenir(const Polygone& pg) const;
236238
#endif
237239
bool contenir(const Polygone& pg) const;
238240
#ifdef SWIG
239-
%name(ajouter_polygone)
240-
#endif
241+
%rename(ajouter_polygone) ajouter(const Polygone& pg);
242+
#endif
241243
void ajouter(const Polygone& pg);
242244
#ifdef SWIG
243-
%name(retirer_polygone)
245+
%rename(retirer_polygone) retirer(const Polygone& pg);
244246
#endif
245247
void retirer(const Polygone& pg);
246248
// Liste des attributs des polygones.
@@ -253,15 +255,15 @@ class Maillage : public Handle_MaillageInterne
253255
// Polyedre d'ID n.
254256
Polyedre polyedre_id(size_type id) const;
255257
#ifdef SWIG
256-
%name(contenir_polyedre)
258+
%rename(contenir_polyedre) contenir(const Polyedre& pd) const;
257259
#endif
258260
bool contenir(const Polyedre& pd) const;
259261
#ifdef SWIG
260-
%name(ajouter_polyedre)
262+
%rename(ajouter_polyedre) ajouter(const Polyedre& pd);
261263
#endif
262264
void ajouter(const Polyedre& pd);
263265
#ifdef SWIG
264-
%name(retirer_polyedre)
266+
%rename(retirer_polyedre) retirer(const Polyedre& pd);
265267
#endif
266268
void retirer(const Polyedre& pd);
267269
// Liste des attributs des polyèdres.
@@ -271,7 +273,7 @@ class Maillage : public Handle_MaillageInterne
271273
size_type nb_nuages() const;
272274
// Nuage numéro n.
273275
#ifdef SWIG
274-
%name(nuage_id)
276+
%rename(nuage_id) nuage(size_type n) const;
275277
#endif
276278
Nuage nuage(size_type n) const;
277279
// Nuage de nom str.
@@ -281,15 +283,15 @@ class Maillage : public Handle_MaillageInterne
281283
Nuage nuage(const char* str) const;
282284
#endif
283285
#ifdef SWIG
284-
%name(contenir_nuage)
286+
%rename(contenir_nuage) contenir(const Nuage& nu) const;
285287
#endif
286288
bool contenir(const Nuage& nu) const;
287289
#ifdef SWIG
288-
%name(ajouter_nuage)
290+
%rename(ajouter_nuage) ajouter(const Nuage& nu);
289291
#endif
290292
void ajouter(const Nuage& nu);
291293
#ifdef SWIG
292-
%name(retirer_nuage)
294+
%rename(retirer_nuage) retirer(const Nuage& nu);
293295
#endif
294296
void retirer(const Nuage& nu);
295297
// Liste des attributs des nuages.
@@ -299,7 +301,7 @@ class Maillage : public Handle_MaillageInterne
299301
size_type nb_lignes() const;
300302
// Ligne numéro n.
301303
#ifdef SWIG
302-
%name(ligne_id)
304+
%rename(ligne_id) ligne(size_type n) const;
303305
#endif
304306
Ligne ligne(size_type n) const;
305307
// Ligne de nom str.
@@ -309,15 +311,15 @@ class Maillage : public Handle_MaillageInterne
309311
Ligne ligne(const char* str) const;
310312
#endif
311313
#ifdef SWIG
312-
%name(contenir_ligne)
314+
%rename(contenir_ligne) contenir(const Ligne& li) const;
313315
#endif
314316
bool contenir(const Ligne& li) const;
315317
#ifdef SWIG
316-
%name(ajouter_ligne)
318+
%rename(ajouter_ligne) ajouter(const Ligne& li);
317319
#endif
318320
void ajouter(const Ligne& li);
319321
#ifdef SWIG
320-
%name(retirer_ligne)
322+
%rename(retirer_ligne) retirer(const Ligne& li);
321323
#endif
322324
void retirer(const Ligne& li);
323325
// Liste des attributs des lignes.
@@ -327,7 +329,7 @@ class Maillage : public Handle_MaillageInterne
327329
size_type nb_surfaces() const;
328330
// Surface numéro n.
329331
#ifdef SWIG
330-
%name(surface_id)
332+
%rename(surface_id) surface(size_type n) const;
331333
#endif
332334
Surface surface(size_type n) const;
333335
// Surface de nom str.
@@ -337,15 +339,15 @@ class Maillage : public Handle_MaillageInterne
337339
Surface surface(const char* str) const;
338340
#endif
339341
#ifdef SWIG
340-
%name(contenir_surface)
342+
%rename(contenir_surface) contenir(const Surface& su) const;
341343
#endif
342344
bool contenir(const Surface& su) const;
343345
#ifdef SWIG
344-
%name(ajouter_surface)
346+
%rename(ajouter_surface) ajouter(const Surface& su);
345347
#endif
346348
void ajouter(const Surface& su);
347349
#ifdef SWIG
348-
%name(retirer_surface)
350+
%rename(retirer_surface) retirer(const Surface& su);
349351
#endif
350352
void retirer(const Surface& su);
351353
// Liste des attributs des surfaces.
@@ -355,7 +357,7 @@ class Maillage : public Handle_MaillageInterne
355357
size_type nb_volumes() const;
356358
// Volume numéro n.
357359
#ifdef SWIG
358-
%name(volume_id)
360+
%rename(volume_id) volume(size_type n) const;
359361
#endif
360362
Volume volume(size_type n) const;
361363
// Volume de nom str.
@@ -365,15 +367,15 @@ class Maillage : public Handle_MaillageInterne
365367
Volume volume(const char* str) const;
366368
#endif
367369
#ifdef SWIG
368-
%name(contenir_volume)
370+
%rename(contenir_volume) contenir(const Volume& vo) const;
369371
#endif
370372
bool contenir(const Volume& vo) const;
371373
#ifdef SWIG
372-
%name(ajouter_volume)
374+
%rename(ajouter_volume) ajouter(const Volume& vo);
373375
#endif
374376
void ajouter(const Volume& vo);
375377
#ifdef SWIG
376-
%name(retirer_volume)
378+
%rename(retirer_volume) retirer(const Volume& vo);
377379
#endif
378380
void retirer(const Volume& vo);
379381
// Liste des attributs des volumes.

src/Lima/public/Lima/malipp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ class MaliPPReader
11061106
Composition m_composition_polyedres;
11071107

11081108
/** Le fichier HDF. */
1109-
IN_STD auto_ptr<IN_H5 H5File> m_fichier_hdf;
1109+
IN_STD unique_ptr<IN_H5 H5File> m_fichier_hdf;
11101110

11111111
/** Le maillage. */
11121112
IN_H5 Group m_maillage_hdf;
@@ -1277,7 +1277,7 @@ class MaliPPWriter
12771277
IN_H5 Group m_meshGroup;
12781278

12791279
//! Le fichier HDF contenant le maillage.
1280-
IN_STD auto_ptr<IN_H5 H5File> m_hdfFile;
1280+
IN_STD unique_ptr<IN_H5 H5File> m_hdfFile;
12811281

12821282
//! Dimension du maillage.
12831283
dim_t m_dim;

src/Lima/public/Lima/malipp2.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ class MaliPPReader2
11041104
Composition m_composition_polyedres;
11051105

11061106
/** Le fichier HDF. */
1107-
IN_STD auto_ptr<H5::H5File> m_fichier_hdf;
1107+
IN_STD unique_ptr<H5::H5File> m_fichier_hdf;
11081108

11091109
/** Le maillage. */
11101110
H5::Group m_maillage_hdf;
@@ -1253,7 +1253,7 @@ class MaliPPWriter2
12531253
H5::Group m_meshGroup;
12541254

12551255
//! Le fichier HDF contenant le maillage.
1256-
IN_STD auto_ptr<H5::H5File> m_hdfFile;
1256+
IN_STD unique_ptr<H5::H5File> m_hdfFile;
12571257

12581258
//! Dimension du maillage.
12591259
dim_t m_dim;

src/Lima/public/Lima/noeud.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Noeud : public Handle_NoeudInterne
2424
public:
2525
Noeud(double x=0, double y=0, double z=0);
2626
#ifdef SWIG
27-
%name(Noeud_id)
27+
%rename(Noeud_id) Noeud(size_type n, double x=0, double y=0, double z=0);
2828
#endif
2929
Noeud(size_type n, double x=0, double y=0, double z=0);
3030

0 commit comments

Comments
 (0)