Changeset 009bd5 in git for kernel/GBEngine/kutil.cc
- Timestamp:
- Dec 4, 2014, 11:23:02 AM (9 years ago)
- Branches:
- (u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
- Children:
- d50995160fd4a66b8b49207ac2c86fa22afea1ee
- Parents:
- d5771f0b547225409cbbd4793cbfe2cb394b5416
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kutil.cc
rd5771f0 r009bd5 335 335 336 336 #ifdef HAVE_RINGS 337 if (rField_is_Ring(r) /*&& ( !rHasGlobalOrdering(r))*/)337 if (rField_is_Ring(r) /*&& (rHasLocalOrMixedOrdering(r))*/) 338 338 lc = p_GetCoeff(p,r); 339 339 #endif … … 361 361 number eins; 362 362 #ifdef HAVE_RINGS 363 if (rField_is_Ring(r) /*&& ( !rHasGlobalOrdering(r))*/)363 if (rField_is_Ring(r) /*&& (rHasLocalOrMixedOrdering(r))*/) 364 364 eins = nCopy(lc); 365 365 else … … 398 398 // Note: As long as qring j forbidden if j contains integer (i.e. ground rings are 399 399 // domains), no zerodivisor test needed CAUTION 400 if (rField_is_Ring(r) /*&&( !rHasGlobalOrdering(r)) */)400 if (rField_is_Ring(r) /*&&(rHasLocalOrMixedOrdering(r)) */) 401 401 if(n_DivBy(p_GetCoeff(h,r->cf),lc,r->cf) == 0) 402 402 return; … … 1069 1069 { 1070 1070 // search p in T, if it is there, do not delete it 1071 if ( currRing->OrdSgn != -1 || kFindInT(set[j].p, strat) < 0)1071 if (rHasGlobalOrdering(currRing) || (kFindInT(set[j].p, strat) < 0)) 1072 1072 { 1073 1073 // assure that for global orderings kFindInT fails 1074 assume(currRing->OrdSgn == -1 || kFindInT(set[j].p, strat) < 0);1074 //assume((rHasLocalOrMixedOrdering(currRing)) && (kFindInT(set[j].p, strat) >= 0)); 1075 1075 set[j].Delete(); 1076 1076 } … … 2221 2221 { 2222 2222 if (sugarDivisibleBy(ecart,strat->L[j].ecart) 2223 && ((pNext(strat->L[j].p) == strat->tail) || ( currRing->OrdSgn==1))2223 && ((pNext(strat->L[j].p) == strat->tail) || (rHasGlobalOrdering(currRing))) 2224 2224 && pCompareChain(p,strat->L[j].p1,strat->L[j].p2,strat->L[j].lcm)) 2225 2225 { … … 2274 2274 if (pCompareChain(p,strat->L[j].p1,strat->L[j].p2,strat->L[j].lcm)) 2275 2275 { 2276 if ((pNext(strat->L[j].p) == strat->tail)||( currRing->OrdSgn==1))2276 if ((pNext(strat->L[j].p) == strat->tail)||(rHasGlobalOrdering(currRing))) 2277 2277 { 2278 2278 deleteInL(strat->L,&strat->Ll,j,strat); … … 2313 2313 if (pCompareChain(p,strat->L[j].p1,strat->L[j].p2,strat->L[j].lcm)) 2314 2314 { 2315 if ((pNext(strat->L[j].p) == strat->tail)||( currRing->OrdSgn==1))2315 if ((pNext(strat->L[j].p) == strat->tail)||(rHasGlobalOrdering(currRing))) 2316 2316 { 2317 2317 deleteInL(strat->L,&strat->Ll,j,strat); … … 2505 2505 { 2506 2506 if (sugarDivisibleBy(ecart,strat->L[j].ecart) 2507 && ((pNext(strat->L[j].p) == strat->tail) || ( currRing->OrdSgn==1))2507 && ((pNext(strat->L[j].p) == strat->tail) || (rHasGlobalOrdering(currRing))) 2508 2508 && pCompareChainPart(p,strat->L[j].p1,strat->L[j].p2,strat->L[j].lcm)) 2509 2509 { … … 2582 2582 if (pCompareChainPart(p,strat->L[j].p1,strat->L[j].p2,strat->L[j].lcm)) 2583 2583 { 2584 if ((pNext(strat->L[j].p) == strat->tail)||( currRing->OrdSgn==1))2584 if ((pNext(strat->L[j].p) == strat->tail)||(rHasGlobalOrdering(currRing))) 2585 2585 { 2586 2586 if(TEST_OPT_DEBUG) … … 2635 2635 if (pCompareChainPart(p,strat->L[j].p1,strat->L[j].p2,strat->L[j].lcm)) 2636 2636 { 2637 if ((pNext(strat->L[j].p) == strat->tail)||( currRing->OrdSgn==1))2637 if ((pNext(strat->L[j].p) == strat->tail)||(rHasGlobalOrdering(currRing))) 2638 2638 { 2639 2639 if(TEST_OPT_DEBUG) … … 2772 2772 for (j=0; j<=k; j++) 2773 2773 { 2774 #if ADIDEBUG2775 PrintS("\n initenterpairs: \n");2776 PrintS(" ");p_Write(h, strat->tailRing);2777 PrintS(" ");p_Write(strat->S[j],strat->tailRing);2778 #endif2774 #if ADIDEBUG 2775 PrintS("\n initenterpairs: \n"); 2776 PrintS(" ");p_Write(h, strat->tailRing); 2777 PrintS(" ");p_Write(strat->S[j],strat->tailRing); 2778 #endif 2779 2779 strat->enterOnePair(j,h,ecart,isFromQ,strat, atR); 2780 2780 //Print("j:%d, Ll:%d\n",j,strat->Ll); … … 2925 2925 if (pCompareChain(p,strat->L[j].p1,strat->L[j].p2,strat->L[j].lcm)) 2926 2926 { 2927 if ((pNext(strat->L[j].p) == strat->tail) || ( currRing->OrdSgn==1))2927 if ((pNext(strat->L[j].p) == strat->tail) || (rHasGlobalOrdering(currRing))) 2928 2928 { 2929 2929 deleteInL(strat->L,&strat->Ll,j,strat); … … 5757 5757 h.pNorm(); 5758 5758 } 5759 if ( currRing->OrdSgn==-1)5759 if (rHasLocalOrMixedOrdering(currRing)) 5760 5760 { 5761 5761 deleteHC(&h, strat); … … 5783 5783 LObject h; 5784 5784 h.p = pCopy(F->m[i]); 5785 if ( currRing->OrdSgn==-1)5785 if (rHasLocalOrMixedOrdering(currRing)) 5786 5786 { 5787 5787 /*#ifdef HAVE_RINGS … … 5851 5851 LObject h; 5852 5852 h.p = pCopy(Q->m[i]); 5853 if ( currRing->OrdSgn==-1)5853 if (rHasLocalOrMixedOrdering(currRing)) 5854 5854 { 5855 5855 deleteHC(&h,strat); … … 5888 5888 if (h.p!=NULL) 5889 5889 { 5890 if ( currRing->OrdSgn==-1)5890 if (rHasLocalOrMixedOrdering(currRing)) 5891 5891 { 5892 5892 cancelunit(&h); /*- tries to cancel a unit -*/ … … 5958 5958 LObject h; 5959 5959 h.p = pCopy(Q->m[i]); 5960 if ( currRing->OrdSgn==-1)5960 if (rHasLocalOrMixedOrdering(currRing)) 5961 5961 { 5962 5962 deleteHC(&h,strat); … … 6013 6013 if (h.p!=NULL) 6014 6014 { 6015 if ( currRing->OrdSgn==-1)6015 if (rHasLocalOrMixedOrdering(currRing)) 6016 6016 { 6017 6017 cancelunit(&h); /*- tries to cancel a unit -*/ … … 6262 6262 // h.pNorm(); 6263 6263 //} 6264 if ( currRing->OrdSgn==-1)6264 if (rHasLocalOrMixedOrdering(currRing)) 6265 6265 { 6266 6266 deleteHC(&h,strat); … … 6290 6290 LObject h; 6291 6291 h.p = pCopy(F->m[i]); 6292 if ( currRing->OrdSgn==-1)6292 if (rHasLocalOrMixedOrdering(currRing)) 6293 6293 { 6294 6294 deleteHC(&h,strat); … … 6327 6327 if(strat->sl>=0) 6328 6328 { 6329 if ( currRing->OrdSgn==1)6329 if (rHasGlobalOrdering(currRing)) 6330 6330 { 6331 6331 h.p=redBba(h.p,strat->sl,strat); … … 6407 6407 // h.pNorm(); 6408 6408 //} 6409 if ( currRing->OrdSgn==-1)6409 if (rHasLocalOrMixedOrdering(currRing)) 6410 6410 { 6411 6411 deleteHC(&h,strat); … … 6435 6435 LObject h; 6436 6436 h.p = pCopy(F->m[i]); 6437 if ( currRing->OrdSgn==-1)6437 if (rHasLocalOrMixedOrdering(currRing)) 6438 6438 { 6439 6439 deleteHC(&h,strat); … … 6472 6472 if(strat->sl>=0) 6473 6473 { 6474 if ( currRing->OrdSgn==1)6474 if (rHasGlobalOrdering(currRing)) 6475 6475 { 6476 6476 h.p=redBba(h.p,strat->sl,strat); … … 6702 6702 // Print("currRing->OrdSgn=%d\n", currRing->OrdSgn); 6703 6703 any_change=FALSE; 6704 if ( currRing->OrdSgn==1)6704 if (rHasGlobalOrdering(currRing)) 6705 6705 { 6706 6706 while (suc != -1) … … 7302 7302 //if the ordering is local, then hilb criterion 7303 7303 //can be used also if tzhe ideal is not homogenous 7304 if(( currRing->OrdSgn == -1) && (currRing->MixedOrder == 0 ))7304 if((rHasLocalOrMixedOrdering(currRing)) && (currRing->MixedOrder == 0 )) 7305 7305 #ifdef HAVE_RINGS 7306 7306 { … … 7460 7460 void initBuchMoraPos (kStrategy strat) 7461 7461 { 7462 if ( currRing->OrdSgn==1)7462 if (rHasGlobalOrdering(currRing)) 7463 7463 { 7464 7464 if (strat->honey) … … 7554 7554 strat->interpt = BTEST1(OPT_INTERRUPT); 7555 7555 strat->kHEdge=NULL; 7556 if ( currRing->OrdSgn==1) strat->kHEdgeFound=FALSE;7556 if (rHasGlobalOrdering(currRing)) strat->kHEdgeFound=FALSE; 7557 7557 /*- creating temp data structures------------------- -*/ 7558 7558 strat->cp = 0; … … 7578 7578 strat->P.ecart=0; 7579 7579 strat->P.length=0; 7580 if ( currRing->OrdSgn==-1)7580 if (rHasLocalOrMixedOrdering(currRing)) 7581 7581 { 7582 7582 if (strat->kHEdge!=NULL) pSetComp(strat->kHEdge, strat->ak); … … 7649 7649 void initSbaPos (kStrategy strat) 7650 7650 { 7651 if ( currRing->OrdSgn==1)7651 if (rHasGlobalOrdering(currRing)) 7652 7652 { 7653 7653 if (strat->honey) … … 7747 7747 strat->interpt = BTEST1(OPT_INTERRUPT); 7748 7748 strat->kHEdge=NULL; 7749 if ( currRing->OrdSgn==1) strat->kHEdgeFound=FALSE;7749 if (rHasGlobalOrdering(currRing)) strat->kHEdgeFound=FALSE; 7750 7750 /*- creating temp data structures------------------- -*/ 7751 7751 strat->cp = 0; … … 7773 7773 strat->P.ecart=0; 7774 7774 strat->P.length=0; 7775 if ( currRing->OrdSgn==-1)7775 if (rHasLocalOrMixedOrdering(currRing)) 7776 7776 { 7777 7777 if (strat->kHEdge!=NULL) pSetComp(strat->kHEdge, strat->ak); … … 7986 7986 { 7987 7987 int i; 7988 int low = ((( currRing->OrdSgn==1) && (strat->ak==0)) ? 1 : 0);7988 int low = (((rHasGlobalOrdering(currRing)) && (strat->ak==0)) ? 1 : 0); 7989 7989 LObject L; 7990 7990 … … 8022 8022 } 8023 8023 #endif 8024 if ( currRing->OrdSgn == 1)8024 if (rHasGlobalOrdering(currRing)) 8025 8025 strat->S[i] = redtailBba(&L, end_pos, strat, withT); 8026 8026 else … … 8057 8057 } 8058 8058 #endif 8059 if ( currRing->OrdSgn == 1)8059 if (rHasGlobalOrdering(currRing)) 8060 8060 strat->S[i] = redtailBba(strat->S[i], end_pos, strat, withT); 8061 8061 else … … 9045 9045 strat->interpt = BTEST1(OPT_INTERRUPT); 9046 9046 strat->kHEdge=NULL; 9047 if ( currRing->OrdSgn==1) strat->kHEdgeFound=FALSE;9047 if (rHasGlobalOrdering(currRing)) strat->kHEdgeFound=FALSE; 9048 9048 /*- creating temp data structures------------------- -*/ 9049 9049 strat->cp = 0; … … 9070 9070 strat->P.ecart=0; 9071 9071 strat->P.length=0; 9072 if ( currRing->OrdSgn==-1)9072 if (rHasLocalOrMixedOrdering(currRing)) 9073 9073 { 9074 9074 if (strat->kHEdge!=NULL) pSetComp(strat->kHEdge, strat->ak);
Note: See TracChangeset
for help on using the changeset viewer.