Changeset 18455
- Timestamp:
- 08/21/14 14:37:01 (11 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/bamg/BamgMesh.cpp ¶
r18064 r18455 5 5 BamgMesh::BamgMesh(){/*{{{*/ 6 6 7 this->VerticesSize[0]=0, this->VerticesSize[1]=0; this->Vertices=NULL; 7 this->VerticesSize[0]=0, this->VerticesSize[1]=0; this->Vertices=NULL; this->PreviousNumbering = NULL; 8 8 this->EdgesSize[0]=0, this->EdgesSize[1]=0; this->Edges=NULL; 9 9 this->TrianglesSize[0]=0, this->TrianglesSize[1]=0; this->Triangles=NULL; … … 30 30 31 31 xDelete<double>(this->Vertices); 32 xDelete<double>(this->PreviousNumbering); 32 33 xDelete<double>(this->Edges); 33 34 xDelete<double>(this->Triangles); -
TabularUnified issm/trunk-jpl/src/c/bamg/BamgMesh.h ¶
r12821 r18455 11 11 int VerticesSize[2]; 12 12 double* Vertices; 13 double* PreviousNumbering; 13 14 int EdgesSize[2]; 14 15 double* Edges; -
TabularUnified issm/trunk-jpl/src/c/bamg/BamgVertex.cpp ¶
r18064 r18455 10 10 namespace bamg { 11 11 12 /*Constructor/Destructor*/ 13 BamgVertex::BamgVertex(){ /*{{{*/ 14 this->PreviousNumber = 0; 15 }/*}}}*/ 16 12 17 /*Methods*/ 13 18 void BamgVertex::Echo(void){/*{{{*/ … … 17 22 _printf_(" Euclidean coordinates r.x: " << r.x << ", r.y: " << r.y << "\n"); 18 23 _printf_(" ReferenceNumber = " << ReferenceNumber << "\n"); 24 _printf_(" PreviousNumber = " << PreviousNumber << "\n"); 19 25 m.Echo(); 20 26 -
TabularUnified issm/trunk-jpl/src/c/bamg/BamgVertex.h ¶
r15066 r18455 23 23 Metric m; 24 24 long ReferenceNumber; 25 long PreviousNumber; 25 26 Direction DirOfSearch; 26 27 short IndexInTriangle; // the vertex number in triangle; varies between 0 and 2 in t … … 42 43 43 44 /*methods (No constructor and no destructors...)*/ 45 BamgVertex(); 44 46 double Smoothing(Mesh & ,const Mesh & ,Triangle * & ,double =1); 45 47 void MetricFromHessian(const double Hxx,const double Hyx, const double Hyy, const double smin,const double smax,const double s,const double err,BamgOpts* bamgopts); -
TabularUnified issm/trunk-jpl/src/c/bamg/Mesh.cpp ¶
r18453 r18455 571 571 bamgmesh->VerticesSize[0]=nbv; 572 572 bamgmesh->VerticesSize[1]=3; 573 if 573 if(nbv){ 574 574 bamgmesh->Vertices=xNew<double>(3*nbv); 575 bamgmesh->PreviousNumbering=xNew<double>(nbv); 575 576 for (i=0;i<nbv;i++){ 576 577 bamgmesh->Vertices[i*3+0]=vertices[i].r.x; 577 578 bamgmesh->Vertices[i*3+1]=vertices[i].r.y; 578 579 bamgmesh->Vertices[i*3+2]=vertices[i].GetReferenceNumber(); 580 bamgmesh->PreviousNumbering[i]=vertices[i].PreviousNumber; 579 581 } 580 582 } … … 3146 3148 BamgVertex &bv=Bh[i]; 3147 3149 if (!bv.GeomEdgeHook){ 3148 vertices[nbv].r = bv.r; 3150 vertices[nbv].r = bv.r; 3151 vertices[nbv].PreviousNumber = i+1; 3149 3152 vertices[nbv++].m = bv.m; 3150 3153 } -
TabularUnified issm/trunk-jpl/src/m/classes/bamgmesh.m ¶
r12365 r18455 23 23 CrackedVertices=[]; 24 24 CrackedEdges=[]; 25 PreviousNumbering=[]; 25 26 % }}} 26 27 end
Note:
See TracChangeset
for help on using the changeset viewer.