Changeset c1c2ccd in git for kernel/GBEngine/kstd1.cc


Ignore:
Timestamp:
Sep 9, 2015, 4:25:50 PM (9 years ago)
Author:
Adi Popescu <adi_popescum@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b4fbb84ad318878fabdaa4dbc73d6d1fcea0a9e8
Parents:
456eb622b2382d15921e6e3db01415bc2871fd1c
Message:
Work with Anne
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd1.cc

    r456eb62 rc1c2ccd  
    1414#define MYTEST 0
    1515
    16 #define ADIDEBUG 0
    17 #define ADIDEBUG_NF 0
     16#define ADIDEBUG 1
     17#define ADIDEBUG_NF 1
    1818
    1919#include <kernel/mod2.h>
     
    402402      PrintS("\n    No poly in T divides h.\n");
    403403    }
     404    //getchar();
    404405#endif
    405406    if (j < 0)
     
    734735  loop
    735736  {
     737    #if ADIDEBUG_NF
     738    for(int ii=0;ii<=strat->tl;ii++)
     739    {
     740      printf("\nT[%i]:\nt^%i ",ii,strat->T[ii].ecart);
     741      pWrite(strat->T[ii].p);
     742    }
     743    //getchar();
     744    #endif
    736745    if (j > strat->tl)
    737746    {
     
    813822        if (H.p == NULL)
    814823          return NULL;
     824        #if 0
     825        //kÃŒrzeste=1, kleinste ecart = 0
     826        int dummy=0;
     827        int z=-1;
     828        for(int ii=0; ii<=strat->tl;ii++)
     829        {
     830          if(pLmIsConstant(strat->T[ii].p))
     831          {
     832            printf("\nFound one:\n");pWrite(strat->T[ii].p);
     833            if(dummy==0 && strat->T[ii].ecart < strat->T[z].ecart)
     834            {
     835              z = ii;
     836            }
     837            if(dummy == 1 && strat->T[ii].length < strat->T[z].length)
     838            {
     839              z = ii;
     840            }
     841          }
     842        }
     843        printf("\n!!!!!!!!!!!!!!!!!   z = %i\n",z);
     844        if(z!=-1)
     845        {
     846          enterOneStrongPoly(z,H.p,H.ecart,0,strat,-1 , TRUE);
     847        }
     848        #endif
    815849      }
    816850      else
     
    825859      #if ADIDEBUG_NF
    826860      printf("\nAfter the small reduction it looks like this:\n");pWrite(H.p);
    827       getchar();
     861      //getchar();
    828862      #endif
    829863      /*- try to reduce the s-polynomial -*/
     
    15931627    }
    15941628    #endif
    1595     getchar();
     1629    //getchar();
    15961630    #endif
    15971631    #ifdef KDEBUG
Note: See TracChangeset for help on using the changeset viewer.