Changeset dd60cee in git for kernel


Ignore:
Timestamp:
Oct 27, 2015, 4:24:14 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
e736f717a4d2e550245f1677b099556f119a6d3c
Parents:
5a4733360224d373ed5606d28971ab428f7d3ffad494396ae5d0b97624b211d3996e04e87606f219
Message:
Merge pull request #729 from adipopescu/StdBugs

Fix: singular trac 747
Location:
kernel/GBEngine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd1.cc

    r5a47333 rdd60cee  
    509509        if (at <= strat->Ll && pLmCmp(h->p, strat->L[strat->Ll].p) != 0 && !nEqual(h->p->coef, strat->L[strat->Ll].p->coef))
    510510        {
    511         #if 1
    512511          /*- h will not become the next element to reduce -*/
    513512          enterL(&strat->L,&strat->Ll,&strat->Lmax,*h,at);
     
    518517          strat->fromT = FALSE;
    519518          return -1;
    520 
    521         #else
    522 
    523           LObject* h2;
    524           pWrite(h->p);
    525           h2->tailRing = h->tailRing;
    526           h2->p = pCopy(h->p);
    527           pWrite(h2->p);
    528           strat->initEcart(h2);
    529           h2->sev = h->sev;
    530           doRed(h,&(strat->T[ii]),FALSE,strat,FALSE);
    531           #if ADIDEBUG_NF
    532           printf("\nPartial reduced (ecart = %i) h: ",h->ecart);pWrite(h->p);
    533           #endif
    534           if(h->IsNull())
    535           {
    536             if (h->lcm!=NULL)
    537             {
    538               pLmDelete(h->lcm);
    539             }
    540             h->Clear();
    541             h2->Clear();
    542             return 0;
    543           }
    544           strat->initEcart(h);
    545           h->sev = pGetShortExpVector(h->p);
    546           at = strat->posInL(strat->L,strat->Ll,h,strat);
    547           enterL(&strat->L,&strat->Ll,&strat->Lmax,*h,at);
    548           #if ADIDEBUG_NF
    549           printf("\nThis was reduced and went to L: ");pWrite(h->p);
    550           #endif
    551           at = strat->posInL(strat->L,strat->Ll,h2,strat);
    552           enterL(&strat->L,&strat->Ll,&strat->Lmax,*h2,at);
    553           #if ADIDEBUG_NF
    554           printf("\nThis was reduced and went to L: ");pWrite(h2->p);
    555           #endif
    556           //This means the pair won't go into T
    557           return 3;
    558         #endif
    559519        }
    560520      }
    561     }
    562     // now we finally can reduce
    563     doRed(h,&(strat->T[ii]),strat->fromT,strat,FALSE);
     521      doRed(h,&(strat->T[ii]),strat->fromT,strat,TRUE);
     522    }
     523    else
     524    {
     525      // now we finally can reduce
     526      doRed(h,&(strat->T[ii]),strat->fromT,strat,FALSE);
     527    }
    564528    strat->fromT=FALSE;
    565529    // are we done ???
  • kernel/GBEngine/kutil.cc

    r5a47333 rdd60cee  
    15111511  {
    15121512    if(h.IsNull()) return FALSE;
    1513     int red_result;
    1514     if(strat->L != NULL)
    1515       red_result = strat->red(&h,strat);
     1513    //int red_result;
     1514    //reduzieren ist teur!!!
     1515    //if(strat->L != NULL)
     1516      //red_result = strat->red(&h,strat);
    15161517    if(!h.IsNull())
     1518    {
    15171519      enterT(h, strat,-1);
     1520      //int pos = posInS(strat,strat->sl,h.p,h.ecart);
     1521      //strat->enterS(h,pos,strat,-1);
     1522    }
    15181523  }
    15191524  //#if 1
Note: See TracChangeset for help on using the changeset viewer.