Changeset 9309
- Timestamp:
- 08/11/11 17:08:03 (14 years ago)
- Location:
- issm/trunk/src/c/objects/Bamg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Bamg/Geometry.cpp
r9306 r9309 606 606 double lv10=Norme2(v10); 607 607 //check that its length is not 0 608 if(lv10==0)_error_("Length of edge %i is 0",i); 608 if(lv10==0){ 609 delete [] next_p; 610 delete [] head_v; 611 delete [] eangle; 612 _error_("Length of edge %i is 0",i); 613 } 609 614 //compute angle in [-Pi Pi] 610 615 eangle[i] = atan2(v10.y,v10.x); -
issm/trunk/src/c/objects/Bamg/Mesh.cpp
r9306 r9309 122 122 int i2 = Tho.GetId(t[2]); 123 123 if (i0<0 || i1<0 || i2<0){ 124 delete [] refv; 124 125 _error_("i0<0 || i1<0 || i2< 0"); 125 126 } … … 1546 1547 //check that we have been through all subdomains 1547 1548 if (k!= nbsubdomains){ 1549 delete [] colorT; 1548 1550 _error_("k!= nbsubdomains"); 1549 1551 } … … 1659 1661 if (k != i){ 1660 1662 delete [] len; 1663 delete [] colorV; 1661 1664 _error_("problem in Edge4 construction: k != i"); 1662 1665 } … … 5319 5322 } 5320 5323 } 5321 if (bfind!=Gh.nbcurves) _error_("problem generating number of curves (%i found in the geometry but %i curve found in the mesh)",Gh.nbcurves,bfind); 5324 if (bfind!=Gh.nbcurves){ 5325 delete [] bcurve; 5326 _error_("problem generating number of curves (%i found in the geometry but %i curve found in the mesh)",Gh.nbcurves,bfind); 5327 } 5322 5328 5323 5329 // method in 2 + 1 step
Note:
See TracChangeset
for help on using the changeset viewer.