Changeset 20621
- Timestamp:
- 05/18/16 09:36:31 (9 years ago)
- Location:
- issm/trunk-jpl/src/c/bamg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/bamg/Mesh.cpp
r19293 r20621 238 238 if(VertexOnBThEdge) delete [] VertexOnBThEdge; 239 239 240 if(&Gh){ 241 if (Gh.NbRef>0) Gh.NbRef--; 242 else if (Gh.NbRef==0) delete &Gh; 243 } 244 if(&BTh && (&BTh != this)){ 240 if (Gh.NbRef>0) Gh.NbRef--; 241 else if (Gh.NbRef==0) delete &Gh; 242 if(&BTh != this){ 245 243 if (BTh.NbRef>0) BTh.NbRef--; 246 244 else if (BTh.NbRef==0) delete &BTh; … … 3065 3063 Triangle &t=triangles[it]; 3066 3064 for (int j=0;j<3;j++){ 3067 Triangle &tt = *t.TriangleAdj(j); 3068 if ( (!&tt || it < GetId(tt)) && ( tt.link || t.link)){ 3065 Triangle *ptt=t.TriangleAdj(j); 3066 Triangle &tt = *ptt; 3067 if ( (!ptt || it < GetId(tt)) && ( tt.link || t.link)){ 3069 3068 BamgVertex &v0 = t[VerticesOfTriangularEdge[j][0]]; 3070 3069 BamgVertex &v1 = t[VerticesOfTriangularEdge[j][1]]; … … 3905 3904 _error_("vertices+i != ta.EdgeVertex(1)"); 3906 3905 } 3907 BamgVertex & vj = *(ta.EdgeVertex(0)); 3908 if ( &vj ) { 3906 BamgVertex *pvj = (ta.EdgeVertex(0)); 3907 BamgVertex & vj = *pvj; 3908 if(pvj){ 3909 3909 j= &vj-vertices; 3910 3910 if (j<0 || j >= nbv){ … … 3959 3959 for (int j=0;j<3;j++) 3960 3960 if(!t.Locked(j) && !t.Hidden(j)){ 3961 Triangle &tt = *t.TriangleAdj(j); 3962 if ( &tt && tt.link && it < GetId(tt)) 3961 3962 Triangle *ptt = t.TriangleAdj(j); 3963 Triangle &tt = *ptt; 3964 3965 if( ptt && tt.link && it < GetId(tt)) 3963 3966 { // an internal edge 3964 3967 BamgVertex &v0 = t[VerticesOfTriangularEdge[j][0]]; -
issm/trunk-jpl/src/c/bamg/VertexOnGeom.cpp
r19644 r20621 52 52 /*}}}*/ 53 53 int VertexOnGeom::IsRequiredVertex() {/*{{{*/ 54 return this? ((curvilincoord<0 ? (gv?gv->Required():0):0 )) : 0;54 return ((curvilincoord<0 ? (gv?gv->Required():0):0 )); 55 55 } 56 56 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.