Changeset 22d119e in git


Ignore:
Timestamp:
Jul 7, 2015, 12:56:45 PM (9 years ago)
Author:
Adi Popescu <adi_popescum@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6d11d24961ab342e357f6f0a5ffaea867ce8d7a3
Parents:
535b07c51c4857086edba1903d2b9e2d4d023455
Message:
fix: redRing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd2.cc

    r535b07 r22d119e  
    425425  loop
    426426  {
    427     j = kFindDivisibleByInT(strat, h);
    428     if (j < 0) return 1;
     427    j = kFindDivisibleByInT(strat->T, strat->sevT, strat->tl, h);
     428    if (j < 0)
     429    {
     430        // over ZZ: cleanup coefficients by complete reduction with monomials
     431        postReduceByMon(h, strat);
     432        if(nIsZero(pGetCoeff(h->p))) return 2;
     433        j = kFindDivisibleByInT(strat->T, strat->sevT, strat->tl, h);
     434        if(j < 0)
     435        {
     436          if(strat->tl >= 0)
     437              h->i_r1 = strat->tl;
     438          else
     439              h->i_r1 = -1;
     440          if (h->GetLmTailRing() == NULL)
     441          {
     442            if (h->lcm!=NULL) pLmDelete(h->lcm);
     443            h->Clear();
     444            return 0;
     445          }
     446          return 1;
     447        }
     448    }
     449    #if ADIDEBUG
     450    pWrite(h->p);
     451    printf("\nFound j = %i\n",j);pWrite(strat->T[j].p);
     452    #endif
    429453    ksReducePoly(h, &(strat->T[j]), NULL, NULL, strat); // with debug output
     454    #if ADIDEBUG
     455    printf("\nand after reduce: \n");pWrite(h->p);
     456    #endif
    430457
    431458    if (h->GetLmTailRing() == NULL)
Note: See TracChangeset for help on using the changeset viewer.