Changeset 1c3860b in git for kernel/GBEngine/kstd1.cc
- Timestamp:
- Jul 7, 2015, 3:08:08 PM (8 years ago)
- Branches:
- (u'spielwiese', '873fc1222e995d7cb33f79d8f1792ce418c8c72c')
- Children:
- 1d85ccd2371e3643aeb1cd5a430441d7f9693fb8
- Parents:
- f32df145228a0829ff9b0de419b7da256166126e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kstd1.cc
rf32df1 r1c3860b 1255 1255 { 1256 1256 enterSBba(p, atS, strat, atR); 1257 #ifdef HAVE_RINGS 1258 if (rField_is_Ring(currRing)) 1259 return; 1260 #endif 1257 1261 #ifdef KDEBUG 1258 1262 if (TEST_OPT_DEBUG) … … 1563 1567 while (strat->Ll >= 0) 1564 1568 { 1569 #if ADIDEBUG 1570 printf("\n ------------------------NEW LOOP\n"); 1571 printf("\nShdl = \n"); 1572 for(int iii = 0; iii<= strat->sl; iii++) 1573 { 1574 printf("S[%i]:",iii); 1575 p_Write(strat->S[iii], strat->tailRing); 1576 } 1577 printf("\n list L has %i\n", strat->Ll); 1578 int iii; 1579 #if ADIDEBUG 1580 for(iii = 0; iii<= strat->Ll; iii++) 1581 { 1582 printf("L[%i]:",iii); 1583 #if 0 1584 p_Write(strat->L[iii].p, strat->tailRing); 1585 p_Write(strat->L[iii].p1, strat->tailRing); 1586 p_Write(strat->L[iii].p2, strat->tailRing); 1587 #else 1588 pWrite(strat->L[iii].p); 1589 pWrite(strat->L[iii].p1); 1590 pWrite(strat->L[iii].p2); 1591 #endif 1592 } 1593 #endif 1594 #endif 1565 1595 #ifdef KDEBUG 1566 1596 if (TEST_OPT_DEBUG) messageSets(strat); … … 1588 1618 else strat->noClearS=TRUE; 1589 1619 } 1590 1591 #if ADIDEBUG1592 #ifdef KDEBUG1593 Print("\n-------------------------------- LOOP %d ---------------------------------------\n",loop_count);1594 //print the list L: (p1,p2,p)1595 Print("\n The pair list L -- in loop %d -- is:\n",loop_count);1596 for(int iii=0;iii<=strat->Ll;iii++)1597 {1598 Print("\n L[%d]:\n",iii);1599 PrintS(" ");p_Write(strat->L[iii].p1,strat->tailRing);1600 PrintS(" ");p_Write(strat->L[iii].p2,strat->tailRing);1601 PrintS(" ");p_Write(strat->L[iii].p,strat->tailRing);1602 }1603 PrintLn();1604 #endif1605 #endif1606 1607 1620 strat->P = strat->L[strat->Ll];/*- picks the last element from the lazyset L -*/ 1608 1621 if (strat->Ll==0) strat->interpt=TRUE; 1609 1622 strat->Ll--; 1610 1611 #if ADIDEBUG 1612 #ifdef KDEBUG 1613 PrintS(" My new pair P = (p1,p2,p) is:\n"); 1614 PrintS(" p1 = "); p_Write(strat->P.p1,strat->tailRing);PrintLn(); 1615 PrintS(" p2 = "); p_Write(strat->P.p2,strat->tailRing);PrintLn(); 1616 PrintS(" p = "); p_Write(strat->P.p,strat->tailRing); PrintLn(); 1617 Print("\n The old reducer list T -- at the beg of loop %d -- is :",loop_count); 1618 if(strat->tl<0) 1619 {PrintS(" Empty.\n");} 1620 else 1621 for(int iii=0;iii<=strat->tl;iii++) 1622 { 1623 Print("\n T[%d]:",iii); 1624 p_Write(strat->T[iii].p,strat->T->tailRing); 1625 } 1626 PrintLn(); 1627 #endif /* ADIDEBUG */ 1628 #endif 1629 1623 //printf("\nThis is P:\n");p_Write(strat->P.p,strat->tailRing);p_Write(strat->P.p1,strat->tailRing);p_Write(strat->P.p2,strat->tailRing); 1630 1624 // create the real Spoly 1631 1625 if (pNext(strat->P.p) == strat->tail) … … 1709 1703 { 1710 1704 superenterpairs(strat->P.p,strat->sl,strat->P.ecart,0,strat, strat->tl); 1711 1712 #if ADIDEBUG1713 Print("\n The new pair list L -- after superenterpairs in loop %d -- is:\n",loop_count);1714 for(int iii=0;iii<=strat->Ll;iii++)1715 {1716 PrintS("\n L[%d]:\n",iii);1717 PrintS(" ");p_Write(strat->L[iii].p1,strat->tailRing);1718 PrintS(" ");p_Write(strat->L[iii].p2,strat->tailRing);1719 PrintS(" ");p_Write(strat->L[iii].p,strat->tailRing);1720 }1721 #endif1722 1705 } 1723 1706 else … … 2233 2216 if (rField_is_Ring(currRing)) 2234 2217 { 2235 if(rHasLocalOrMixedOrdering(currRing)) 2236 r=mora(F,Q,NULL,hilb,strat); 2237 else 2238 r=bba(F,Q,NULL,hilb,strat); 2218 if(nCoeff_is_Ring_Z(currRing->cf)) 2219 { 2220 #if 0 2221 if(nCoeff_is_Ring_Z(currRing->cf)) 2222 { 2223 ideal FCopy = idCopy(F); 2224 poly pFmon = preIntegerCheck(FCopy, Q); 2225 if(pFmon != NULL) 2226 { 2227 idInsertPoly(FCopy, pFmon); 2228 printf("\nPreintegerCheck found this constant:\n");pWrite(pFmon); 2229 } 2230 strat->kModW=kModW=NULL; 2231 if (h==testHomog) 2232 { 2233 if (strat->ak == 0) 2234 { 2235 h = (tHomog)idHomIdeal(FCopy,Q); 2236 w=NULL; 2237 } 2238 else if (!TEST_OPT_DEGBOUND) 2239 { 2240 h = (tHomog)idHomModule(FCopy,Q,w); 2241 } 2242 } 2243 currRing->pLexOrder=b; 2244 if (h==isHomog) 2245 { 2246 if (strat->ak > 0 && (w!=NULL) && (*w!=NULL)) 2247 { 2248 strat->kModW = kModW = *w; 2249 if (vw == NULL) 2250 { 2251 strat->pOrigFDeg = currRing->pFDeg; 2252 strat->pOrigLDeg = currRing->pLDeg; 2253 pSetDegProcs(currRing,kModDeg); 2254 toReset = TRUE; 2255 } 2256 } 2257 currRing->pLexOrder = TRUE; 2258 if (hilb==NULL) strat->LazyPass*=2; 2259 } 2260 strat->homog=h; 2261 omTestMemory(1); 2262 if(currRing->OrdSgn == -1) 2263 r=mora(FCopy,Q,NULL,hilb,strat); 2264 else 2265 r=bba(FCopy,Q,NULL,hilb,strat); 2266 } 2267 else 2268 #endif 2269 { 2270 if(currRing->OrdSgn == -1) 2271 r=mora(F,Q,NULL,hilb,strat); 2272 else 2273 r=bba(F,Q,NULL,hilb,strat); 2274 } 2275 } 2239 2276 } 2240 2277 else
Note: See TracChangeset
for help on using the changeset viewer.