Changeset 780e11 in git for kernel/kstd1.cc


Ignore:
Timestamp:
Oct 19, 2011, 4:47:55 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b304ba2d40702a4f469ed9a2270027d1188c0c75
Parents:
1327a0002c1e1e8edbf06eba651a4e39a3a26c9d
Message:
fix tr. 255


git-svn-id: file:///usr/local/Singular/svn/trunk@14420 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kstd1.cc

    r1327a0 r780e11  
    23152315  strat->posInL=posInL0; /* ord according pComp */
    23162316
    2317   /*Shdl=*/initBuchMora(F, Q,strat);
     2317  /*Shdl=*/initBuchMora(F, Q, strat);
    23182318  srmax = strat->sl;
    23192319  reduc = olddeg = lrmax = 0;
     
    24692469
    24702470#ifdef KDEBUG
    2471     messageSets(strat);
     2471    if (TEST_OPT_DEBUG)
     2472    {
     2473      messageSets(strat);
     2474    }
    24722475    memset(&(strat->P), 0, sizeof(strat->P));
    24732476#endif
     
    25372540  int need_retry;
    25382541  int counter=3;
    2539   int elems=idElem(F);
    2540   ideal res=kInterRedBba(F,Q,need_retry);
     2542  ideal res, res1;
     2543  int elems;
     2544  ideal null=NULL;
     2545  if ((Q==NULL) || (!TEST_OPT_REDSB))
     2546  {
     2547    elems=idElem(F);
     2548    res=kInterRedBba(F,Q,need_retry);
     2549  }
     2550  else
     2551  {
     2552    ideal FF=idSimpleAdd(F,Q);
     2553    res=kInterRedBba(FF,NULL,need_retry);
     2554    idDelete(&FF);
     2555    null=idInit(1,1);
     2556    res1=kNF(null,Q,res);
     2557    idDelete(&res);
     2558    res=res1;
     2559  }
    25412560  while (need_retry && (counter>0))
    25422561  {
     
    25442563    if (TEST_OPT_DEBUG) { Print("retry counter %d\n",counter); }
    25452564    #endif
    2546     ideal res1=kInterRedBba(res,Q,need_retry);
     2565    res1=kInterRedBba(res,Q,need_retry);
    25472566    int new_elems=idElem(res1);
    25482567    counter -= (new_elems >= elems);
    25492568    elems = new_elems;
    25502569    idDelete(&res);
    2551     res = res1;
    2552   }
     2570    if ((Q!=NULL) && (TEST_OPT_REDSB))
     2571    {
     2572      res=kNF(null,Q,res1);
     2573      idDelete(&res1);
     2574    }
     2575    else
     2576      res = res1;
     2577  }
     2578  if (null!=NULL) idDelete(&null);
    25532579  test=save;
    25542580  idSkipZeroes(res);
    25552581  return res;
    25562582}
    2557 
    25582583
    25592584// returns TRUE if mora should use buckets, false otherwise
Note: See TracChangeset for help on using the changeset viewer.