Changeset f1c62d9 in git for kernel/gfan.cc
- Timestamp:
- Sep 29, 2009, 8:03:16 AM (15 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- fda6e6ef5610f3872c7b9c6228cba279a73c792c
- Parents:
- 873b573af6143fd5eea9143a547e8dce3faffcff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gfan.cc
r873b57 rf1c62d9 2 2 Compute the Groebner fan of an ideal 3 3 $Author: monerjan $ 4 $Date: 2009-09-2 5 13:29:10$5 $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1. 89 2009-09-25 13:29:10monerjan Exp $6 $Id: gfan.cc,v 1. 89 2009-09-25 13:29:10monerjan Exp $4 $Date: 2009-09-29 06:03:16 $ 5 $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.90 2009-09-29 06:03:16 monerjan Exp $ 6 $Id: gfan.cc,v 1.90 2009-09-29 06:03:16 monerjan Exp $ 7 7 */ 8 8 … … 60 60 61 61 #ifndef gfan_DEBUG 62 #define gfan_DEBUG62 //#define gfan_DEBUG 63 63 #ifndef gfan_DEBUGLEVEL 64 64 #define gfan_DEBUGLEVEL 1 … … 255 255 int getUCN() 256 256 { 257 if(this!=NULL )257 if(this!=NULL && this!=(facet *)0xfbfbfbfbfbfbfbfb) 258 258 return this->UCN; 259 259 else … … 355 355 facet::~facet() 356 356 { 357 idDelete((ideal *)this->flipGB); 357 // idDelete((ideal *)this->flipGB); 358 delete this->fNormal; 359 delete this->interiorPoint; 360 delete this->codim2Ptr; 361 idDelete((ideal *)&this->flipGB); 358 362 rDelete(this->flipRing); 359 363 //this=NULL; … … 936 940 dd_FreeMatrix(ddakt); 937 941 dd_FreePolyhedra(ddpolyh); 942 delete iv_intPoint; 938 943 }//while 939 944 } … … 1198 1203 } 1199 1204 dd_MatrixAppendTo(&intPointMatrix,posRestr); 1205 dd_FreeMatrix(posRestr); 1200 1206 #ifdef gfan_DEBUG 1201 1207 // dd_WriteMatrix(stdout,intPointMatrix); … … 1230 1236 rComplete(dstRing); 1231 1237 rChangeCurrRing(dstRing); 1232 1238 rDelete(tmpRing); 1239 delete iv_weight; 1233 1240 //#ifdef gfan_DEBUG 1234 1241 rWrite(dstRing); cout << endl; … … 1267 1274 //#endif 1268 1275 rChangeCurrRing(srcRing); //return to the ring we started the computation of flipGB in 1276 rDelete(dstRing); 1269 1277 }//void flip(ideal gb, facet *f) 1270 1278 … … 1423 1431 { 1424 1432 int lhs,rhs; 1433 bool res; 1425 1434 lhs=dotProduct(a,b)*dotProduct(a,b); 1426 1435 rhs=dotProduct(a,a)*dotProduct(b,b); … … 1428 1437 if (lhs==rhs) 1429 1438 { 1430 re turnTRUE;1439 res = TRUE; 1431 1440 } 1432 1441 else 1433 1442 { 1434 return FALSE; 1435 } 1443 res = FALSE; 1444 } 1445 return res; 1436 1446 }//bool isParallel 1437 1447 … … 1906 1916 #endif 1907 1917 rChangeCurrRing(gcAct->baseRing); 1918 rDelete(rTmp); 1908 1919 gcPtr->next=gcTmp; 1909 1920 gcPtr=gcPtr->next; … … 2143 2154 slAct = slHead; 2144 2155 notParallelCtr=0; 2156 // delete deleteMarker; 2157 // deleteMarker=NULL; 2145 2158 /*If slAct==NULL and fAct!=NULL 2146 2159 we just copy all remaining facets into SLA*/ … … 2274 2287 //update lengthOfSearchList 2275 2288 lengthOfSearchList--; 2289 //delete slAct; 2276 2290 //slAct = slAct->next; //not needed, since facets are equal 2277 2291 //delete deleteMarker; 2278 deleteMarker=NULL;2292 //deleteMarker=NULL; 2279 2293 //fAct = fAct->next; 2280 2294 break; … … 2306 2320 (not nice!) but since they are in seperate branches of the if-statement there should not 2307 2321 be a way it gets called twice thus ommiting one facet: 2308 slAct = slAct->next; 2309 delete deleteMarker;*/2322 slAct = slAct->next;*/ 2323 //delete deleteMarker; 2310 2324 deleteMarker=NULL; 2311 2325 //if slAct was marked as to be deleted, delete it here!
Note: See TracChangeset
for help on using the changeset viewer.