Changeset 79d3879 in git


Ignore:
Timestamp:
Feb 10, 2009, 7:53:04 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
e21b396f6745381f496dbabf91502758f132efe0
Parents:
198a3392c9c3fdba4fd627b0d5f123a0bde019f3
Message:
*hannes: debug stuff


git-svn-id: file:///usr/local/Singular/svn/trunk@11364 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/kstd2.cc

    r198a339 r79d3879  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd2.cc,v 1.79 2008-12-26 18:15:40 levandov Exp $ */
     4/* $Id: kstd2.cc,v 1.80 2009-02-10 18:53:04 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: alg. of Buchberger
     
    912912static int bba_count = 0;
    913913#endif
     914void kDebugPrint(kStrategy strat);
    914915
    915916ideal bba (ideal F, ideal Q,intvec *w,intvec *hilb,kStrategy strat)
     
    950951  kStratInitChangeTailRing(strat);
    951952#endif
     953  //kDebugPrint(strat);
    952954
    953955  /* compute------------------------------------------------------- */
  • kernel/kutil.cc

    r198a339 r79d3879  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.116 2009-01-06 16:53:54 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.117 2009-02-10 18:53:04 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    64246424#endif
    64256425
     6426// kstd1.cc:
     6427int redFirst (LObject* h,kStrategy strat);
     6428int redEcart (LObject* h,kStrategy strat);
     6429void enterSMora (LObject p,int atS,kStrategy strat, int atR=-1);
     6430void enterSMoraNF (LObject p,int atS,kStrategy strat, int atR=-1);
     6431// ../Singular/misc.cc:
     6432char *  showOption();
     6433
     6434void kDebugPrint(kStrategy strat)
     6435{
     6436  PrintS("red: ");
     6437    if (strat->red==redFirst) PrintS("redFirst\n");
     6438    else if (strat->red==redHoney) PrintS("redHoney\n");
     6439    else if (strat->red==redEcart) PrintS("redEcart\n");
     6440    else if (strat->red==redHomog) PrintS("redHomog\n");
     6441    else  Print("%x\n",strat->red);
     6442  PrintS("posInT: ");
     6443    if (strat->posInT==posInT0) PrintS("posInT0\n");
     6444    else if (strat->posInT==posInT0) PrintS("posInT0\n");
     6445    else if (strat->posInT==posInT1) PrintS("posInT1\n");
     6446    else if (strat->posInT==posInT11) PrintS("posInT11\n");
     6447    else if (strat->posInT==posInT110) PrintS("posInT110\n");
     6448    else if (strat->posInT==posInT13) PrintS("posInT13\n");
     6449    else if (strat->posInT==posInT15) PrintS("posInT15\n");
     6450    else if (strat->posInT==posInT17) PrintS("posInT17\n");
     6451    else if (strat->posInT==posInT17_c) PrintS("posInT17_c\n");
     6452    else if (strat->posInT==posInT19) PrintS("posInT19\n");
     6453    else if (strat->posInT==posInT2) PrintS("posInT2\n");
     6454#ifdef HAVE_MORE_POS_IN_T
     6455    else if (strat->posInT==posInT_EcartFDegpLength) PrintS("posInT_EcartFDegpLength\n");
     6456    else if (strat->posInT==posInT_FDegpLength) PrintS("posInT_FDegpLength\n");
     6457    else if (strat->posInT==posInT_pLength) PrintS("posInT_pLength\n");
     6458#endif
     6459    else if (strat->posInT==posInT_EcartpLength) PrintS("posInT_EcartpLength\n");
     6460    else if (strat->posInT==posInTrg0) PrintS("posInTrg0\n");
     6461    else  Print("%x\n",strat->posInT);
     6462  PrintS("posInL: ");
     6463    if (strat->posInL==posInL0) PrintS("posInL0\n");
     6464    else if (strat->posInL==posInL10) PrintS("posInL10\n");
     6465    else if (strat->posInL==posInL11) PrintS("posInL11\n");
     6466    else if (strat->posInL==posInL110) PrintS("posInL110\n");
     6467    else if (strat->posInL==posInL13) PrintS("posInL13\n");
     6468    else if (strat->posInL==posInL15) PrintS("posInL15\n");
     6469    else if (strat->posInL==posInL17) PrintS("posInL17\n");
     6470    else if (strat->posInL==posInL17_c) PrintS("posInL17\n");
     6471    else if (strat->posInL==posInLSpecial) PrintS("posInLSpecial\n");
     6472    else if (strat->posInL==posInLrg0) PrintS("posInLrg0\n");
     6473    else  Print("%x\n",strat->posInL);
     6474  PrintS("enterS: ");
     6475    if (strat->enterS==enterSBba) PrintS("enterSBba\n");
     6476    else if (strat->enterS==enterSMora) PrintS("enterSMora\n");
     6477    else if (strat->enterS==enterSMoraNF) PrintS("enterSMoraNF\n");
     6478    else  Print("%x\n",strat->enterS);
     6479  PrintS("initEcart: ");
     6480    if (strat->initEcart==initEcartBBA) PrintS("initEcartBBA\n");
     6481    else if (strat->initEcart==initEcartNormal) PrintS("initEcartNormal\n");
     6482    else  Print("%x\n",strat->initEcart);
     6483  PrintS("initEcartPair: ");
     6484    if (strat->initEcartPair==initEcartPairBba) PrintS("initEcartPairBba\n");
     6485    else if (strat->initEcartPair==initEcartPairMora) PrintS("initEcartPairMora\n");
     6486    else  Print("%x\n",strat->initEcartPair);
     6487  Print("homog=%d, LazyDegree=%d, LazyPass=%d, ak=%d,\n",
     6488         strat->homog, strat->LazyDegree,strat->LazyPass, strat->ak);
     6489  Print("honey=%d, sugarCrit=%d, Gebauer=%d, noTailReduction=%d\n",
     6490         strat->honey,strat->sugarCrit,strat->Gebauer,strat->noTailReduction,strat->use_buckets);
     6491  Print("posInLDependsOnLength=%d, use_buckets=%d\n",
     6492         strat->posInLDependsOnLength,strat->use_buckets);
     6493   PrintS(showOption());PrintLn();
     6494}
     6495
     6496
    64266497#ifdef HAVE_SHIFTBBA
    64276498poly pMove2CurrTail(poly p, kStrategy strat)
Note: See TracChangeset for help on using the changeset viewer.