Changeset a13cae in git for kernel/gr_kstd2.cc


Ignore:
Timestamp:
Jul 27, 2008, 12:21:59 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
37d43ec78deb09e94d2b41b08283e6fe466687d7
Parents:
e4df0ba39c30b0d3f0f545e4cf34a78b4b74fbea
Message:
*hannes: OPT_DEBUG fuor ratGB


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

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    re4df0ba ra13cae  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gr_kstd2.cc,v 1.15 2008-07-26 18:11:42 Singular Exp $ */
     4/* $Id: gr_kstd2.cc,v 1.16 2008-07-27 10:21:59 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
     
    229229        }
    230230        //poly hh = nc_CreateSpoly(strat->S[c_j],(*h).p, currRing);
    231         poly hh=c_p; c_p=NULL;
    232         pDelete(&((*h).p));
    233         (*h).p=hh;
     231        poly hh=c_p; c_p=NULL;
     232        pDelete(&((*h).p));
     233        (*h).p=hh;
    234234        if (!TEST_OPT_INTSTRATEGY)
    235235        {
     
    254254        /*- try to reduce the s-polynomial again -*/
    255255        pass++;
    256         j=0;
     256        j=0;
    257257      }
    258258      else
     
    265265    {
    266266      int a_e=(pTotaldegree(strat->S[j],currRing)-pFDeg(strat->S[j],currRing));
    267       if (TEST_OPT_DEBUG) { Print("j=%d, e=%d\n",j,a_e); }
     267      if(TEST_OPT_DEBUG)
     268      {
     269        p_wrp(h->p,currRing); Print(" divisibly by S[%d]=",j);
     270        p_wrp(strat->S[j],currRing); Print(" e0%d\n",a_e);
     271      }
    268272      if ((c_e==-1)||(c_e>a_e))
    269273      {
    270274        c_e=a_e; c_j=j;
    271         pDelete(&c_p);
     275        pDelete(&c_p);
    272276        c_p = nc_CreateSpoly(pCopy(strat->S[c_j]),pCopy((*h).p), currRing);
    273277      }
    274278      else if (c_e == a_e)
    275279      {
    276         poly cc_pp= nc_CreateSpoly(pCopy(strat->S[j]),pCopy((*h).p), currRing);
    277         if (((cc_pp==NULL)&&(c_p!=NULL)) || (pCmp(cc_pp,c_p)==-1))
     280        poly cc_pp= nc_CreateSpoly(pCopy(strat->S[j]),pCopy((*h).p), currRing);
     281        if (((cc_pp==NULL)&&(c_p!=NULL)) || (pCmp(cc_pp,c_p)==-1))
    278282         {
    279            assume(pTotaldegree(cc_pp)<=pTotaldegree(c_p));
     283           assume(pTotaldegree(cc_pp)<=pTotaldegree(c_p));
    280284           c_e=a_e; c_j=j;
    281            pDelete(&c_p);
     285           pDelete(&c_p);
    282286           c_p = cc_pp;
    283         }
     287        }
    284288      }
    285289      /*computes the ecart*/
     
    295299    else
    296300    {
    297       if (TEST_OPT_DEBUG) PrintS("-\n");
     301      if(TEST_OPT_DEBUG)
     302      {
     303        p_wrp(h->p,currRing); Print(" not divisibly by S[%d]=",j);
     304        p_wrp(strat->S[j],currRing); PrintLn();
     305      }
    298306    }
    299307    j++;
Note: See TracChangeset for help on using the changeset viewer.