Changeset fb87b82 in git
- Timestamp:
- Oct 19, 2015, 7:00:58 PM (8 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- f6db0d20f2a2a1e61303f9831ef6201e89faad2f
- Parents:
- a07db8714e0495d86b2f4758df4475f17535d842
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kutil.cc
ra07db8 rfb87b82 1393 1393 } 1394 1394 strat->initEcartPair(&Lp,strat->S[i],p,strat->ecartS[i],ecart); 1395 l = strat->posInL(strat-> L,strat->Ll,&Lp,strat);1396 enterL(&strat-> L,&strat->Ll,&strat->Lmax,Lp,l);1395 l = strat->posInL(strat->B,strat->Bl,&Lp,strat); 1396 enterL(&strat->B,&strat->Bl,&strat->Bmax,Lp,l); 1397 1397 } 1398 1398 #else … … 1449 1449 pWrite(strat->B[j].p1); 1450 1450 pWrite(strat->B[j].p2); 1451 pWrite(strat->B[j].lcm); 1451 1452 printf("\nh - neue Paar\n"); 1452 1453 pWrite(h.p); … … 1455 1456 pWrite(h.lcm); 1456 1457 #endif 1457 if ((n_DivBy(strat->B[j].lcm->coef, h.lcm->coef, currRing->cf)) && ((strat->fromQ==NULL) || (isFromQ==0) || (strat->fromQ[i]==0))) 1458 { 1458 if ((n_DivBy(h.lcm->coef, strat->B[j].lcm->coef, currRing->cf)) && ((strat->fromQ==NULL) || (isFromQ==0) || (strat->fromQ[i]==0))) 1459 { 1460 #if ADIDEBUG 1461 printf("\nGelöscht neue h\n"); 1462 #endif 1459 1463 strat->c3++; 1460 1464 pLmDelete(h.lcm); … … 1471 1475 pWrite(strat->B[j].p1); 1472 1476 pWrite(strat->B[j].p2); 1477 pWrite(strat->B[j].lcm); 1473 1478 printf("\nh - neue Paar\n"); 1474 1479 pWrite(h.p); … … 1477 1482 pWrite(h.lcm); 1478 1483 #endif 1479 if(n_DivBy( h.lcm->coef, strat->B[j].lcm->coef, currRing->cf)) 1480 { 1484 //Ist schon im coeffCompare 1485 //if(n_DivBy( h.lcm->coef, strat->B[j].lcm->coef, currRing->cf)) 1486 //{ 1481 1487 #if ADIDEBUG 1482 1488 printf("\nGelöscht: B[j]\n"); … … 1484 1490 deleteInL(strat->B,&strat->Bl,j,strat); 1485 1491 strat->c3++; 1486 }1492 //} 1487 1493 } 1488 1494 } … … 1497 1503 pWrite(strat->B[j].p1); 1498 1504 pWrite(strat->B[j].p2); 1505 pWrite(strat->B[j].lcm); 1499 1506 printf("\nh - neue Paar\n"); 1500 1507 pWrite(h.p); … … 1530 1537 pWrite(h.lcm); 1531 1538 #endif 1532 if(n_DivBy( h.lcm->coef, strat->B[j].lcm->coef,currRing->cf))1533 {1539 //if(n_DivBy( h.lcm->coef, strat->B[j].lcm->coef,currRing->cf)) 1540 //{ 1534 1541 #if ADIDEBUG 1535 1542 printf("\nGelöscht B[j]\n"); … … 1537 1544 deleteInL(strat->B,&strat->Bl,j,strat); 1538 1545 strat->c3++; 1539 }1546 //} 1540 1547 } 1541 1548 } … … 1569 1576 pDelete(&h.lcm); 1570 1577 h.Clear(); 1578 if (strat->pairtest==NULL) initPairtest(strat); 1579 strat->pairtest[i] = TRUE; 1580 strat->pairtest[strat->sl+1] = TRUE; 1571 1581 return; 1572 1582 } … … 1600 1610 h.i_r = -1; 1601 1611 if(h.p == NULL) 1612 { 1613 if (strat->pairtest==NULL) initPairtest(strat); 1614 strat->pairtest[i] = TRUE; 1615 strat->pairtest[strat->sl+1] = TRUE; 1602 1616 return; 1617 } 1603 1618 h.tailRing = strat->tailRing; 1604 1619 int posx; 1605 h.pCleardenom(); 1606 if(h.p == NULL) 1607 return; 1608 pSetm(h.p); 1620 //h.pCleardenom(); 1621 //pSetm(h.p); 1609 1622 #if ADIDEBUG 1610 1623 printf("\nThis is afterwards:\n"); … … 1749 1762 h.i_r2 = -1; 1750 1763 } 1751 if (strat-> Ll==-1)1764 if (strat->Bl==-1) 1752 1765 posx =0; 1753 1766 else 1754 posx = strat->posInL(strat-> L,strat->Ll,&h,strat);1755 enterL(&strat-> L,&strat->Ll,&strat->Lmax,h,posx);1767 posx = strat->posInL(strat->B,strat->Bl,&h,strat); 1768 enterL(&strat->B,&strat->Bl,&strat->Bmax,h,posx); 1756 1769 } 1757 1770 else … … 3434 3447 wrp(strat->S[j]); 3435 3448 PrintS(" strat->B[i].lcm:"); 3449 wrp(strat->B[i].lcm);PrintLn(); 3450 pWrite(strat->B[i].p); 3451 pWrite(strat->B[i].p1); 3452 pWrite(strat->B[i].p2); 3436 3453 wrp(strat->B[i].lcm); 3437 3454 PrintLn();
Note: See TracChangeset
for help on using the changeset viewer.