- Timestamp:
- May 17, 2016, 3:13:45 PM (8 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f8fb93d1bc922d1e97207d1d5b347fe1db1eedcf
- Parents:
- 33a3e5b152a664e98e61d5eb3db725d8b4fc1756
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kstd2.cc
r33a3e5b r045cbe 1693 1693 #ifdef KDEBUG 1694 1694 if (TEST_OPT_DEBUG){PrintS("new s:");strat->P.wrp();PrintLn();} 1695 #if MYTEST 1696 PrintS("New (reduced) S: "); p_DebugPrint(strat->P.p, currRing); PrintLn(); 1697 #endif /* MYTEST */ 1695 1698 #endif /* KDEBUG */ 1696 1699 … … 1746 1749 #endif 1747 1750 } 1748 } 1749 if (strat->P.lcm!=NULL) 1750 { 1751 if (strat->s_poly!=NULL) 1752 { 1753 if (strat->s_poly(strat)) 1754 { 1755 // we are called AFTER enterS, i.e. if we change P 1756 // we have it also to S/T 1757 // and add pairs 1758 int pos=posInS(strat,strat->sl,strat->P.p,strat->P.ecart); 1759 enterT(strat->P, strat); 1760 #ifdef HAVE_RINGS 1761 if (rField_is_Ring(currRing)) 1762 superenterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat, strat->tl); 1763 else 1764 #endif 1765 enterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat, strat->tl); 1766 strat->enterS(strat->P, pos, strat, strat->tl); 1767 } 1768 } 1769 #if ADIDEBUG 1770 for(int iii = 0; iii<=strat->tl;iii++) 1771 { 1772 printf("\nT[%i] = ",iii);pWrite(strat->T[iii].p); 1773 } 1774 #endif 1775 1776 if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat); 1777 // Print("[%d]",hilbeledeg); 1778 if (strat->P.lcm!=NULL) 1751 1779 #ifdef HAVE_RINGS 1752 if (rField_is_Ring(currRing)) pLmDelete(strat->P.lcm); 1753 else 1780 pLmDelete(strat->P.lcm); 1754 1781 #else 1755 1782 pLmFree(strat->P.lcm); 1756 1783 #endif 1757 strat->P.lcm=NULL;1758 }1759 if ((red_result==1) && (strat->s_poly!=NULL))1760 {1761 // the only valid entries are: strat->P.p,1762 // strat->tailRing (read-only, keep it)1763 // (and P->p1, P->p2 (read-only, must set to NULL if P.p is changed)1764 if (strat->s_poly(strat))1765 {1766 // we are called AFTER enterS, i.e. if we change P1767 // we have to add it also to S/T1768 // and add pairs1769 int pos=posInS(strat,strat->sl,strat->P.p,strat->P.ecart);1770 enterT(strat->P, strat);1771 #ifdef HAVE_RINGS1772 if (rField_is_Ring(currRing))1773 superenterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat, strat->tl);1774 else1775 #endif1776 enterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat, strat->tl);1777 strat->enterS(strat->P, pos, strat, strat->tl);1778 }1779 }1780 1781 if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat);1782 // Print("[%d]",hilbeledeg);1783 1784 } 1784 1785 else if (strat->P.p1 == NULL && strat->minim > 0)
Note: See TracChangeset
for help on using the changeset viewer.