Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#

set (LIMA_MAJOR_VERSION "7")
set (LIMA_MINOR_VERSION "11")
set (LIMA_RELEASE_VERSION "2")
set (LIMA_MINOR_VERSION "12")
set (LIMA_RELEASE_VERSION "0")
set (LIMA_VERSION ${LIMA_MAJOR_VERSION}.${LIMA_MINOR_VERSION}.${LIMA_RELEASE_VERSION})


4 changes: 2 additions & 2 deletions installation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cmake -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_
-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 \
-DBUILD_SHARED_LIBS:BOOL=ON -DINT_8:BOOL=ON -DREAL_8:BOOL=ON \
-DSWIG_EXECUTABLE=/opt/swig/4.1.1/bin/swig -DPython3_ROOT_DIR=/usr/lib/python3 -DHDF5_ROOT=/opt/HDF5/1.12.0 \
-B /tmp/lima_build_dir -DCMAKE_INSTALL_PREFIX=/opt/Lima/7.11.2
-B /tmp/lima_build_dir -DCMAKE_INSTALL_PREFIX=/opt/Lima/7.12.0
cmake --build /tmp/lima_build_dir
cmake --install /tmp/lima_build_dir

Expand All @@ -32,7 +32,7 @@ cmake -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_
-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 \
-DBUILD_SHARED_LIBS:BOOL=ON -DINT_8:BOOL=ON -DREAL_8:BOOL=ON \
-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 \
-B /tmp/lima_build_dir -DCMAKE_INSTALL_PREFIX=/opt/Lima/7.11.2
-B /tmp/lima_build_dir -DCMAKE_INSTALL_PREFIX=/opt/Lima/7.12.0
cmake --build /tmp/lima_build_dir
cmake --install /tmp/lima_build_dir

Expand Down
4 changes: 2 additions & 2 deletions src/Lima/maillage_it.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2475,7 +2475,7 @@ void _MaillageInterne::lire_structure (

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/Lima/public/Lima/bras.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Bras : public Handle_BrasInterne
public:
Bras(const Noeud& n0, const Noeud& n1);
#ifdef SWIG
%name(Bras_id)
%rename(Bras_id) Bras(size_type n, const Noeud& n0, const Noeud& n1);
#endif
Bras(size_type n, const Noeud& n0, const Noeud& n1);

Expand Down
4 changes: 2 additions & 2 deletions src/Lima/public/Lima/ligne.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Ligne : public Handle_LigneInterne
Bras bras_id(size_type id) const;

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

#ifdef SWIG
%name(contenir_noeud)
%rename(contenir_noeud) contenir(const Noeud& nd) const;
#endif
bool contenir(const Noeud& nd) const;
// Liste des attributs des noeuds.
Expand Down
11 changes: 4 additions & 7 deletions src/Lima/public/Lima/lima.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extern "C" {

/** Types enum pour l'acces aux fichiers et la preparation
*/
enum LM_FORMAT_FICHIER {
typedef enum LM_FORMAT_FICHIER {
/** Detection du format par le suffixe du nom du fichier.
* Formats utilises pour la lecture et l'ecriture */
LM_FF_SUFFIXE = 0,
Expand Down Expand Up @@ -89,14 +89,13 @@ extern "C" {
LM_FF_MALIPP2 = 15,
#endif
LM_FF_INCONNU
};
typedef enum LM_FORMAT_FICHIER LM_FORMAT_FICHIER;
} LM_FORMAT_FICHIER;


/** Niveau de preparation du maillage pour les codes
* (verification et traitement)
*/
enum LM_PREPARATION {
typedef enum LM_PREPARATION {
/** Preparation minimale. Verification d'integrite uniquement.
Seul les donnees de base sont autorise en consultation */
LM_PR_MINIMALE = 1,
Expand All @@ -112,9 +111,7 @@ extern "C" {
LM_PR_BASE_3D = 6,
LM_PR_CODE_T = 7,
LM_PR_INCONNU
};
typedef enum LM_PREPARATION LM_PREPARATION;

} LM_PREPARATION;


#ifdef __INTERNE_MACHINE_TYPES
Expand Down
76 changes: 39 additions & 37 deletions src/Lima/public/Lima/maillage.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,38 +141,40 @@ class Maillage : public Handle_MaillageInterne

// Dimension du maillage.
#ifdef SWIG
%name(set_dimension)
%rename(set_dimension) dimension(dim_t dim);
#endif
void dimension(dim_t dim);
// Unité de longueur du maillage.
#ifdef SWIG
%name(set_unite_longueur)
%rename(set_unite_longueur) unite_longueur(double unilo);
#endif
void unite_longueur(double unilo);
// Unité d'angle du maillage.
#ifdef SWIG
%name(set_unite_angle)
%rename(set_unite_angle) unite_angle(double unia);
#endif
void unite_angle(double unia);
// Type de géométrie du maillage.
#ifdef SWIG
%name(set_type_geometrie)
%rename(set_type_geometrie) type_geometrie(geometrie_t geom);
#endif
void type_geometrie(geometrie_t geom);
// Type de coordonnée du maillage.
#ifdef SWIG
%name(set_type_coordonnee)
%rename(set_type_coordonnee) type_coordonnee(coordonnee_t tycoo);
#endif
void type_coordonnee(coordonnee_t tycoo);
/// Titre du maillage.
#ifdef SWIG
%name(set_titre) void titre(const char* titre);
%rename(set_titre) titre(const char* titre);
void titre (const char* titre);
#else
void titre(const IN_STD string& titre);
#endif
/// Date du maillage.
#ifdef SWIG
%name(set_date) void date(const char* date);
%rename(set_date) date(const char* date);
void date(const char* date);
#else
void date(const IN_STD string& date);
#endif
Expand All @@ -186,19 +188,19 @@ class Maillage : public Handle_MaillageInterne
// Noeud d'ID n.
Noeud noeud_id(size_type id) const;
#ifdef SWIG
%name(contenir_noeud)
%rename(contenir_noeud) contenir(const Noeud& nd) const;
#endif
bool contenir(const Noeud& nd) const;
#ifdef SWIG
%name(ajouter_noeud)
%rename(ajouter_noeud) ajouter(const Noeud& nd);
#endif
void ajouter(const Noeud& nd);
#ifdef SWIG
%name(retirer_noeud)
%rename(retirer_noeud) retirer(const Noeud& nd);
#endif
void retirer(const Noeud& nd);
#ifdef SWIG
%name(deplacer_noeud)
%rename(deplacer_noeud) deplacer(size_type id, double x, double y, double z);
#endif
void deplacer(size_type id, double x, double y, double z);
// Liste des attributs des noeuds.
Expand All @@ -211,15 +213,15 @@ class Maillage : public Handle_MaillageInterne
// Bras d'ID n.
Bras bras_id(size_type id) const;
#ifdef SWIG
%name(contenir_bras)
%rename(contenir_bras) contenir(const Bras& br) const;
#endif
bool contenir(const Bras& br) const;
#ifdef SWIG
%name(ajouter_bras)
%rename(ajouter_bras) ajouter(const Bras& br);
#endif
void ajouter(const Bras& br);
#ifdef SWIG
%name(retirer_bras)
%rename(retirer_bras) retirer(const Bras& br);
#endif
void retirer(const Bras& br);
// Liste des attributs des bras.
Expand All @@ -232,15 +234,15 @@ class Maillage : public Handle_MaillageInterne
// Polygone d'ID n.
Polygone polygone_id(size_type id) const;
#ifdef SWIG
%name(contenir_polygone)
%rename(contenir_polygone)contenir(const Polygone& pg) const;
#endif
bool contenir(const Polygone& pg) const;
#ifdef SWIG
%name(ajouter_polygone)
#endif
%rename(ajouter_polygone) ajouter(const Polygone& pg);
#endif
void ajouter(const Polygone& pg);
#ifdef SWIG
%name(retirer_polygone)
%rename(retirer_polygone) retirer(const Polygone& pg);
#endif
void retirer(const Polygone& pg);
// Liste des attributs des polygones.
Expand All @@ -253,15 +255,15 @@ class Maillage : public Handle_MaillageInterne
// Polyedre d'ID n.
Polyedre polyedre_id(size_type id) const;
#ifdef SWIG
%name(contenir_polyedre)
%rename(contenir_polyedre) contenir(const Polyedre& pd) const;
#endif
bool contenir(const Polyedre& pd) const;
#ifdef SWIG
%name(ajouter_polyedre)
%rename(ajouter_polyedre) ajouter(const Polyedre& pd);
#endif
void ajouter(const Polyedre& pd);
#ifdef SWIG
%name(retirer_polyedre)
%rename(retirer_polyedre) retirer(const Polyedre& pd);
#endif
void retirer(const Polyedre& pd);
// Liste des attributs des polyèdres.
Expand All @@ -271,7 +273,7 @@ class Maillage : public Handle_MaillageInterne
size_type nb_nuages() const;
// Nuage numéro n.
#ifdef SWIG
%name(nuage_id)
%rename(nuage_id) nuage(size_type n) const;
#endif
Nuage nuage(size_type n) const;
// Nuage de nom str.
Expand All @@ -281,15 +283,15 @@ class Maillage : public Handle_MaillageInterne
Nuage nuage(const char* str) const;
#endif
#ifdef SWIG
%name(contenir_nuage)
%rename(contenir_nuage) contenir(const Nuage& nu) const;
#endif
bool contenir(const Nuage& nu) const;
#ifdef SWIG
%name(ajouter_nuage)
%rename(ajouter_nuage) ajouter(const Nuage& nu);
#endif
void ajouter(const Nuage& nu);
#ifdef SWIG
%name(retirer_nuage)
%rename(retirer_nuage) retirer(const Nuage& nu);
#endif
void retirer(const Nuage& nu);
// Liste des attributs des nuages.
Expand All @@ -299,7 +301,7 @@ class Maillage : public Handle_MaillageInterne
size_type nb_lignes() const;
// Ligne numéro n.
#ifdef SWIG
%name(ligne_id)
%rename(ligne_id) ligne(size_type n) const;
#endif
Ligne ligne(size_type n) const;
// Ligne de nom str.
Expand All @@ -309,15 +311,15 @@ class Maillage : public Handle_MaillageInterne
Ligne ligne(const char* str) const;
#endif
#ifdef SWIG
%name(contenir_ligne)
%rename(contenir_ligne) contenir(const Ligne& li) const;
#endif
bool contenir(const Ligne& li) const;
#ifdef SWIG
%name(ajouter_ligne)
%rename(ajouter_ligne) ajouter(const Ligne& li);
#endif
void ajouter(const Ligne& li);
#ifdef SWIG
%name(retirer_ligne)
%rename(retirer_ligne) retirer(const Ligne& li);
#endif
void retirer(const Ligne& li);
// Liste des attributs des lignes.
Expand All @@ -327,7 +329,7 @@ class Maillage : public Handle_MaillageInterne
size_type nb_surfaces() const;
// Surface numéro n.
#ifdef SWIG
%name(surface_id)
%rename(surface_id) surface(size_type n) const;
#endif
Surface surface(size_type n) const;
// Surface de nom str.
Expand All @@ -337,15 +339,15 @@ class Maillage : public Handle_MaillageInterne
Surface surface(const char* str) const;
#endif
#ifdef SWIG
%name(contenir_surface)
%rename(contenir_surface) contenir(const Surface& su) const;
#endif
bool contenir(const Surface& su) const;
#ifdef SWIG
%name(ajouter_surface)
%rename(ajouter_surface) ajouter(const Surface& su);
#endif
void ajouter(const Surface& su);
#ifdef SWIG
%name(retirer_surface)
%rename(retirer_surface) retirer(const Surface& su);
#endif
void retirer(const Surface& su);
// Liste des attributs des surfaces.
Expand All @@ -355,7 +357,7 @@ class Maillage : public Handle_MaillageInterne
size_type nb_volumes() const;
// Volume numéro n.
#ifdef SWIG
%name(volume_id)
%rename(volume_id) volume(size_type n) const;
#endif
Volume volume(size_type n) const;
// Volume de nom str.
Expand All @@ -365,15 +367,15 @@ class Maillage : public Handle_MaillageInterne
Volume volume(const char* str) const;
#endif
#ifdef SWIG
%name(contenir_volume)
%rename(contenir_volume) contenir(const Volume& vo) const;
#endif
bool contenir(const Volume& vo) const;
#ifdef SWIG
%name(ajouter_volume)
%rename(ajouter_volume) ajouter(const Volume& vo);
#endif
void ajouter(const Volume& vo);
#ifdef SWIG
%name(retirer_volume)
%rename(retirer_volume) retirer(const Volume& vo);
#endif
void retirer(const Volume& vo);
// Liste des attributs des volumes.
Expand Down
4 changes: 2 additions & 2 deletions src/Lima/public/Lima/malipp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ class MaliPPReader
Composition m_composition_polyedres;

/** Le fichier HDF. */
IN_STD auto_ptr<IN_H5 H5File> m_fichier_hdf;
IN_STD unique_ptr<IN_H5 H5File> m_fichier_hdf;

/** Le maillage. */
IN_H5 Group m_maillage_hdf;
Expand Down Expand Up @@ -1277,7 +1277,7 @@ class MaliPPWriter
IN_H5 Group m_meshGroup;

//! Le fichier HDF contenant le maillage.
IN_STD auto_ptr<IN_H5 H5File> m_hdfFile;
IN_STD unique_ptr<IN_H5 H5File> m_hdfFile;

//! Dimension du maillage.
dim_t m_dim;
Expand Down
4 changes: 2 additions & 2 deletions src/Lima/public/Lima/malipp2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ class MaliPPReader2
Composition m_composition_polyedres;

/** Le fichier HDF. */
IN_STD auto_ptr<H5::H5File> m_fichier_hdf;
IN_STD unique_ptr<H5::H5File> m_fichier_hdf;

/** Le maillage. */
H5::Group m_maillage_hdf;
Expand Down Expand Up @@ -1253,7 +1253,7 @@ class MaliPPWriter2
H5::Group m_meshGroup;

//! Le fichier HDF contenant le maillage.
IN_STD auto_ptr<H5::H5File> m_hdfFile;
IN_STD unique_ptr<H5::H5File> m_hdfFile;

//! Dimension du maillage.
dim_t m_dim;
Expand Down
2 changes: 1 addition & 1 deletion src/Lima/public/Lima/noeud.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Noeud : public Handle_NoeudInterne
public:
Noeud(double x=0, double y=0, double z=0);
#ifdef SWIG
%name(Noeud_id)
%rename(Noeud_id) Noeud(size_type n, double x=0, double y=0, double z=0);
#endif
Noeud(size_type n, double x=0, double y=0, double z=0);

Expand Down
Loading