1111#include < cstdlib> // pour rand
1212
1313#include " smooth3D/smooth.h"
14- #include < GMDS/IG/IGMesh .h>
15- #include < GMDS/IG/IGMeshDoctor .h>
14+ #include < gmds/ig/Mesh .h>
15+ #include < gmds/ig/MeshDoctor .h>
1616
1717#include " math/Real3.h"
1818#include " math/MeanRatio.h"
1919
20- // Fonction spécialisée pour calculer le meanRatio pour un triangle
20+ /*
21+ // Fonction sp�cialis�e pour calculer le meanRatio pour un triangle
2122static Smooth3D::Real computeMeanRatio(gmds::Node& n0, gmds::Node& n1,
2223 gmds::Node& n2) {
2324 Smooth3D::Real3 p[3];
@@ -39,7 +40,7 @@ static Smooth3D::Real computeMeanRatio(gmds::Node& n0, gmds::Node& n1,
3940 return (mean_ratio);
4041}
4142
42- // Fonction spécialisée pour calculer le meanRatio pour un quadrilatère
43+ // Fonction sp�cialis�e pour calculer le meanRatio pour un quadrilat�re
4344static Smooth3D::Real computeMeanRatio(gmds::Node& n0, gmds::Node& n1,
4445 gmds::Node& n2, gmds::Node& n3) {
4546 static const int kTriQuads[4][3] = { { 0, 1, 3 }, { 1, 2, 0 }, { 2, 3, 1 }, {
@@ -225,11 +226,11 @@ static FourNodes computeGetMeQuadrangle3D(gmds::Face& face,
225226 return compute_nodes;
226227}
227228
228- static void computeN2N (gmds::IGMesh & mesh) {
229+ static void computeN2N(gmds::Mesh & mesh) {
229230
230231 std::map<gmds::TCellID, std::set<gmds::TCellID> > n2n;
231232
232- gmds::IGMesh ::face_iterator it_faces = mesh.faces_begin ();
233+ gmds::Mesh ::face_iterator it_faces = mesh.faces_begin();
233234
234235 while (!it_faces.isDone()) {
235236 gmds::Face f = it_faces.value();
@@ -255,14 +256,17 @@ static void computeN2N(gmds::IGMesh& mesh) {
255256 current_node.set<gmds::Node>(adj_nodes);
256257 }
257258}
258-
259+ */
259260
260261extern " C" int S3_GETMe2D (const double alpha, const double beta,
261262 int_type nb_cells, int_type nb_nodes, const int_type * nb_nodes_per_cell,
262263 const int_type *nodes_number, double *x, double *y, double *z,
263264 const double * weights, const double * relax, int_type n_iter) {
265+ std::cerr<<" S3_GETMe2D is no longer available." <<std::endl;
266+ return -1 ;
267+ /*
264268 const int kTGMDSMask = gmds::DIM3 | gmds::N | gmds::F | gmds::F2N | gmds::N2N;
265- gmds::IGMesh internal_mesh (kTGMDSMask );
269+ gmds::Mesh internal_mesh(kTGMDSMask);
266270
267271 gmds::Node* temp_array_nodes = new gmds::Node[nb_nodes];
268272
@@ -284,7 +288,7 @@ extern "C" int S3_GETMe2D(const double alpha, const double beta,
284288 internal_mesh.newFace(nodes_cell);
285289 }
286290
287- gmds::IGMeshDoctor mesh_doc (&internal_mesh);
291+ gmds::MeshDoctor mesh_doc(&internal_mesh);
288292 mesh_doc.updateUpwardConnectivity();
289293 computeN2N(internal_mesh);
290294
@@ -312,7 +316,7 @@ extern "C" int S3_GETMe2D(const double alpha, const double beta,
312316 weights_pos[vtx] = 0.0;
313317 }
314318
315- for (gmds::IGMesh ::face_iterator it = internal_mesh.faces_begin ();
319+ for (gmds::Mesh ::face_iterator it = internal_mesh.faces_begin();
316320 !it.isDone(); it.next()) {
317321 gmds::Face current_face = it.value();
318322
@@ -417,14 +421,16 @@ delete[] new_pos;
417421delete[] temp_array_nodes;
418422
419423return (0);
424+ */
420425}
421426
427+ /*
422428void testGetMeUnitTri(void) {
423429Smooth3D::Real theta = M_PI / 6.0;
424430Smooth3D::Real lambda = 0.0;
425431
426432const int kTGmdsMask = gmds::DIM3 | gmds::N | gmds::F | gmds::F2N;
427- gmds::IGMesh internal_mesh (kTGmdsMask );
433+ gmds::Mesh internal_mesh(kTGmdsMask);
428434
429435// we start with a square triangle
430436gmds::Node noeuds[3];
@@ -462,7 +468,7 @@ Smooth3D::Real theta = M_PI / 6.0;
462468Smooth3D::Real lambda = 0.25;
463469
464470const int kTGMDSMask = gmds::DIM3 | gmds::N | gmds::F | gmds::F2N;
465- gmds::IGMesh internal_mesh (kTGMDSMask );
471+ gmds::Mesh internal_mesh(kTGMDSMask);
466472
467473// we start with a square triangle
468474gmds::Node noeuds[4];
@@ -502,7 +508,7 @@ Smooth3D::Real theta = M_PI / 6.0;
502508Smooth3D::Real lambda = 0.25;
503509
504510const int kTGMDSMask = gmds::DIM3 | gmds::N | gmds::F | gmds::F2N;
505- gmds::IGMesh internal_mesh (kTGMDSMask );
511+ gmds::Mesh internal_mesh(kTGMDSMask);
506512
507513// we start with a non convex quadrangle
508514
@@ -538,3 +544,4 @@ for (int i = 0; i < 10; i++) {
538544}
539545
540546}
547+ */
0 commit comments