Changeset 5447
- Timestamp:
- 08/20/10 11:09:12 (15 years ago)
- Location:
- issm/trunk/src/c/objects/Bamg
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/c/objects/Bamg/BamgVertex.h ¶
r5150 r5447 1 #ifndef _ MESHVERTEX_H_2 #define _ MESHVERTEX_H_1 #ifndef _BAMGVERTEX_H_ 2 #define _BAMGVERTEX_H_ 3 3 4 4 #include "./include.h" -
TabularUnified issm/trunk/src/c/objects/Bamg/EigenMetric.cpp ¶
r5400 r5447 149 149 /*FUNCTION EigenMetric::Max{{{1*/ 150 150 void EigenMetric::Max(double a) { 151 //change eigen values 151 152 lambda1=bamg::Max(a,lambda1); lambda2=bamg::Max(a,lambda2) ; 152 153 }/*}}}*/ … … 157 158 /*FUNCTION EigenMetric::Maxh{{{1*/ 158 159 void EigenMetric::Maxh(double h) { 160 //Call Max function 159 161 Max(1.0/(h*h)); 160 162 }/*}}}*/ -
TabularUnified issm/trunk/src/c/objects/Bamg/GeometricalEdge.cpp ¶
r5397 r5447 27 27 R2 A=v[0]->r,B=v[1]->r; 28 28 double ca,cb,cta,ctb; 29 if ( theta<-1e-12){ 30 ISSMERROR("theta<-1e-12"); 31 } 32 if ( theta>1+1e-12){ 33 ISSMERROR("theta>1+1e-12"); 34 } 29 30 //Check that theta is in [0 1] 31 ISSMASSERT(theta>-1e-12 && theta<1+1e-12); 32 35 33 if (TgA()) 36 34 if (TgB()) // interpolation d'hermite … … 172 170 /*FUNCTION GeometricalEdge::SetRequired{{{1*/ 173 171 void GeometricalEdge::SetRequired() { 174 type |= 64;/*=> =>6th digit to 1*/172 type |= 64;/*=>6th digit to 1*/ 175 173 }/*}}}*/ 176 174 /*FUNCTION GeometricalEdge::Tg{{{1*/ -
TabularUnified issm/trunk/src/c/objects/Bamg/Mesh.cpp ¶
r5401 r5447 224 224 /*}}}1*/ 225 225 /*FUNCTION Mesh::Mesh(long maxnbv,Geometry & G,BamgOpts* bamgopts){{{1*/ 226 Mesh::Mesh(long maxnbv,Geometry & G,BamgOpts* bamgopts) 226 Mesh::Mesh(long maxnbv,Geometry & G,BamgOpts* bamgopts):Gh(G),BTh(*this){ 227 227 TriangulateFromGeom0(maxnbv,bamgopts); 228 228 } … … 2674 2674 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/PreInit)*/ 2675 2675 2676 long int verbose=0; 2677 2676 /* initialize random seed: */ 2678 2677 srand(19999999); 2678 2679 /*Initialize fields*/ 2679 2680 NbRef=0; 2681 quadtree=NULL; 2680 2682 nbv=0; 2683 nbt=0; 2684 nbe=0; 2685 edges=NULL; 2686 nbq=0; 2687 nbsubdomains=0; 2688 subdomains=NULL; 2681 2689 maxnbv=maxnbv_in; 2682 nbt=0; 2683 nbq = 0; 2684 maxnbt=2*maxnbv_in-2; 2685 nbsubdomains=0; 2690 maxnbt=2 *maxnbv_in-2; 2686 2691 NbVertexOnBThVertex=0; 2692 VertexOnBThVertex=NULL; 2687 2693 NbVertexOnBThEdge=0; 2688 VertexOnBThVertex=NULL;2689 2694 VertexOnBThEdge=NULL; 2690 2691 2695 NbCrackedVertices=0; 2692 CrackedVertices =NULL; 2693 NbCrackedEdges =0; 2694 CrackedEdges =NULL; 2695 nbe = 0; 2696 2696 CrackedVertices =NULL; 2697 NbCrackedEdges =0; 2698 CrackedEdges =NULL; 2699 NbVerticesOnGeomVertex=0; 2700 VerticesOnGeomVertex=NULL; 2701 NbVerticesOnGeomEdge=0; 2702 VerticesOnGeomEdge=NULL; 2703 2704 /*Allocate if maxnbv_in>0*/ 2697 2705 if (maxnbv_in) { 2698 2706 vertices=new BamgVertex[maxnbv]; … … 2709 2717 maxnbt=0; 2710 2718 } 2711 2712 quadtree=NULL;2713 edges=NULL;2714 VerticesOnGeomVertex=NULL;2715 VerticesOnGeomEdge=NULL;2716 NbVerticesOnGeomVertex=0;2717 NbVerticesOnGeomEdge=0;2718 subdomains=NULL;2719 nbsubdomains=0;2720 2719 } 2721 2720 /*}}}1*/ … … 4874 4873 void Mesh::TriangulateFromGeom0(long imaxnbv,BamgOpts* bamgopts){ 4875 4874 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, Mesh2.cpp/GeomToTriangles0)*/ 4876 4877 4875 /*Generate mesh from geometry*/ 4878 4876 -
TabularUnified issm/trunk/src/c/objects/Bamg/VertexOnGeom.cpp ¶
r5150 r5447 11 11 12 12 /*Constructors/Destructors*/ 13 /*FUNCTION VertexOnGeom:: constructor{{{1*/13 /*FUNCTION VertexOnGeom::VertexOnGeom(){{{1*/ 14 14 VertexOnGeom::VertexOnGeom(): mv(0),abscisse(0){ 15 15 gv=0; 16 16 } 17 17 /*}}}*/ 18 /*FUNCTION VertexOnGeom:: constructor{{{1*/18 /*FUNCTION VertexOnGeom::VertexOnGeom(BamgVertex & m,GeometricalVertex &g){{{1*/ 19 19 VertexOnGeom::VertexOnGeom(BamgVertex & m,GeometricalVertex &g) : mv(&m),abscisse(-1){ 20 20 gv=&g; 21 21 } 22 22 /*}}}*/ 23 /*FUNCTION VertexOnGeom:: constructor{{{1*/23 /*FUNCTION VertexOnGeom::VertexOnGeom(BamgVertex & m,GeometricalEdge &g,double s){{{1*/ 24 24 VertexOnGeom::VertexOnGeom(BamgVertex & m,GeometricalEdge &g,double s) : mv(&m),abscisse(s){ 25 25 ge=&g;
Note:
See TracChangeset
for help on using the changeset viewer.