Changeset 6f203b in git for kernel


Ignore:
Timestamp:
May 17, 2016, 5:46:47 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
2b0c08e1798ffdc4cdb8493eab751ca7cb11f20e
Parents:
e6f1e67739dcb8bc40ce2fcd97b4b37cfe8f0302
Message:
chg: clean strat-P before calling strat->s_poly (in bba)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd2.cc

    re6f1e6 r6f203b  
    16401640#endif
    16411641      }
     1642      if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat);
     1643//      Print("[%d]",hilbeledeg);
     1644      if (strat->P.lcm!=NULL)
     1645      {
     1646        if (rField_is_Ring(currRing)) pLmDelete(strat->P.lcm);
     1647        else                          pLmFree(strat->P.lcm);
     1648        strat->P.lcm=NULL;
     1649      }
    16421650      if (strat->s_poly!=NULL)
    16431651      {
     1652        // the only valid entries are: strat->P.p,
     1653        // strat->tailRing (read-only, keep it)
     1654        // (and P->p1, P->p2 (read-only, must set to NULL if P.p is changed)
    16441655        if (strat->s_poly(strat))
    16451656        {
    16461657          // we are called AFTER enterS, i.e. if we change P
    1647           // we have it also to S/T
     1658          // we have to add it also to S/T
    16481659          // and add pairs
    16491660          int pos=posInS(strat,strat->sl,strat->P.p,strat->P.ecart);
     
    16551666          strat->enterS(strat->P, pos, strat, strat->tl);
    16561667        }
    1657       }
    1658 
    1659       if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat);
    1660 //      Print("[%d]",hilbeledeg);
    1661       if (strat->P.lcm!=NULL)
    1662       {
    1663         if (rField_is_Ring(currRing)) pLmDelete(strat->P.lcm);
    1664         else                          pLmFree(strat->P.lcm);
    1665         strat->P.lcm=NULL;
    16661668      }
    16671669    }
Note: See TracChangeset for help on using the changeset viewer.