Changeset 9a14a5 in git


Ignore:
Timestamp:
Feb 8, 2018, 4:00:31 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c062cc8497e2f23c850dfc0661158f69fdf3e88a
Parents:
a8df82e84ee87330065595cb27cd3591e07a76e7
Message:
fix: siCntrlc handling in std
Location:
kernel/GBEngine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd1.cc

    ra8df82e r9a14a5  
    15831583    if (TEST_OPT_DEBUG) messageSets(strat);
    15841584    #endif
    1585     if (siCntrlc
    1586     || (TEST_OPT_DEGBOUND
    1587       && (strat->L[strat->Ll].ecart+strat->L[strat->Ll].GetpFDeg()> Kstd1_deg)))
     1585    if (siCntrlc)
     1586    {
     1587      while (strat->Ll >= 0)
     1588        deleteInL(strat->L,&strat->Ll,strat->Ll,strat);
     1589      strat->noClearS=TRUE;
     1590    }
     1591    if (TEST_OPT_DEGBOUND
     1592    && (strat->L[strat->Ll].ecart+strat->L[strat->Ll].GetpFDeg()> Kstd1_deg))
    15881593    {
    15891594      /*
     
    15911596      * - 24 (degBound)
    15921597      *   && upper degree is bigger than Kstd1_deg
    1593       * or siCntrlc
    15941598      */
    1595       while ((strat->Ll >= 0) &&
    1596         siCntrlc
    1597         || ((strat->L[strat->Ll].p1!=NULL) && (strat->L[strat->Ll].p2!=NULL)
    1598           && (strat->L[strat->Ll].ecart+strat->L[strat->Ll].GetpFDeg()> Kstd1_deg))
     1599      while ((strat->Ll >= 0)
     1600        && (strat->L[strat->Ll].p1!=NULL) && (strat->L[strat->Ll].p2!=NULL)
     1601        && (strat->L[strat->Ll].ecart+strat->L[strat->Ll].GetpFDeg()> Kstd1_deg)
    15991602      )
    16001603      {
  • kernel/GBEngine/kstd2.cc

    ra8df82e r9a14a5  
    19621962      if (TEST_OPT_DEBUG) messageSets(strat);
    19631963    #endif
    1964     if (strat->Ll== 0) strat->interpt=TRUE;
    1965     if (siCntrlc
    1966     || (TEST_OPT_DEGBOUND
     1964    if (siCntrlc)
     1965    {
     1966      while (strat->Ll >= 0)
     1967        deleteInL(strat->L,&strat->Ll,strat->Ll,strat);
     1968      strat->noClearS=TRUE;
     1969    }
     1970    if (TEST_OPT_DEGBOUND
    19671971        && ((strat->honey && (strat->L[strat->Ll].ecart+currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))
    1968             || ((!strat->honey) && (currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg)))))
     1972            || ((!strat->honey) && (currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))))
    19691973    {
    19701974      /*
     
    19721976       * 24 IN test and the degree +ecart of L[strat->Ll] is bigger then
    19731977       *a predefined number Kstd1_deg
    1974        * or siCntrlc
    19751978       */
    19761979      while ((strat->Ll >= 0)
    1977         && (siCntrlc ||
    1978           ((strat->L[strat->Ll].p1!=NULL) && (strat->L[strat->Ll].p2!=NULL)
    1979             && ((strat->honey && (strat->L[strat->Ll].ecart+currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))
     1980        && (strat->L[strat->Ll].p1!=NULL) && (strat->L[strat->Ll].p2!=NULL)
     1981        && ((strat->honey && (strat->L[strat->Ll].ecart+currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg))
    19801982            || ((!strat->honey) && (currRing->pFDeg(strat->L[strat->Ll].p,currRing)>Kstd1_deg)))
    1981         )))
     1983        )
    19821984        deleteInL(strat->L,&strat->Ll,strat->Ll,strat);
    19831985      if (strat->Ll<0) break;
    19841986      else strat->noClearS=TRUE;
    19851987    }
     1988    if (strat->Ll== 0) strat->interpt=TRUE;
    19861989    /* picks the last element from the lazyset L */
    19871990    strat->P = strat->L[strat->Ll];
Note: See TracChangeset for help on using the changeset viewer.