Changeset f3be8e6 in git


Ignore:
Timestamp:
Apr 20, 2020, 9:21:39 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
3e34f20459fa942914b03f47d052e3e393078b02756dc7155d3cba64f765acc3475e5c4e12cdbbffda334f04d062863798ea2bd549c83b75607883fa
Parents:
9904f67850aa704dcd1dcd5e95035cee753e8a74
Message:
format, debug stuff
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    r9904f6 rf3be8e6  
    968968    poly p;
    969969    L->GetLm(p, r);
    970     if (L->sev != 0 && p_GetShortExpVector(p, r) != L->sev)
    971     {
    972       return dReportError("L[%d] wrong sev: has %o, specified to have %o",
     970    if (L->sev != 0L)
     971    {
     972      if (p_GetShortExpVector(p, r) != L->sev)
     973      {
     974        return dReportError("L[%d] wrong sev: has %lo, specified to have %lo",
    973975                          lpos, p_GetShortExpVector(p, r), L->sev);
     976      }
    974977    }
    975978  }
     
    15571560  if (currRing!=strat->tailRing)
    15581561    h.t_p = k_LmInit_currRing_2_tailRing(h.p, strat->tailRing);
     1562  if (strat->P.p!=NULL) strat->P.sev = pGetShortExpVector(strat->P.p);
     1563  else strat->P.sev=0L;
    15591564  enterL(&strat->B,&strat->Bl,&strat->Bmax,h,posx);
    15601565  kTest_TS(strat);
     
    69846989  int cc = (-1+2*currRing->order[0]==ringorder_c);
    69856990  /* cc==1 for (c,..), cc==-1 for (C,..) */
    6986   unsigned long c = pGetComp(p->p)*cc;
     6991  long c = pGetComp(p->p)*cc;
    69876992  int o = p->GetpFDeg() + p->ecart;
    69886993
     
    95969601  if (strat->homog) strat->initEcart(&p);
    95979602      strat->redTailChange=FALSE;
    9598   if ((TEST_OPT_INTSTRATEGY) || (rField_is_Ring(currRing))) {
     9603  if ((TEST_OPT_INTSTRATEGY) || (rField_is_Ring(currRing)))
     9604  {
    95999605    p.pCleardenom();
    9600     if ((TEST_OPT_REDSB)||(TEST_OPT_REDTAIL)) {
     9606    if ((TEST_OPT_REDSB)||(TEST_OPT_REDTAIL))
     9607    {
    96019608#ifdef HAVE_SHIFTBBA
    96029609      if (rIsLPRing(currRing))
     
    96109617      if (strat->redTailChange)
    96119618        p.t_p=NULL;
     9619      if (strat->P.p!=NULL) strat->P.sev=p_GetShortExpVector(strat->P.p,currRing);
     9620      else strat->P.sev=0;
    96129621    }
    96139622  }
     
    96229631  enterT(p, strat);
    96239632
    9624   for (j = 0; j <= strat->sl; ++j) {
    9625     if (pLtCmp(tp, strat->S[j]) == 0) {
     9633  for (j = 0; j <= strat->sl; ++j)
     9634  {
     9635    if (pLtCmp(tp, strat->S[j]) == 0)
     9636    {
    96269637      break;
    96279638    }
     
    96299640  /* it may be that the exchanged element
    96309641   * is until now only in T and not in S */
    9631   if (j <= strat->sl) {
     9642  if (j <= strat->sl)
     9643  {
    96329644    deleteInS(j, strat);
    96339645  }
     
    96399651
    96409652  /* remove useless pairs from L set */
    9641   for (i = 0; i <= strat->Ll; ++i) {
    9642     if (strat->L[i].p1 != NULL && pLtCmp(tp, strat->L[i].p1) == 0) {
     9653  for (i = 0; i <= strat->Ll; ++i)
     9654  {
     9655    if (strat->L[i].p1 != NULL && pLtCmp(tp, strat->L[i].p1) == 0)
     9656    {
    96439657      deleteInL(strat->L, &(strat->Ll), i, strat);
    96449658      i--;
    96459659      continue;
    96469660    }
    9647     if (strat->L[i].p2 != NULL && pLtCmp(tp, strat->L[i].p2) == 0) {
     9661    if (strat->L[i].p2 != NULL && pLtCmp(tp, strat->L[i].p2) == 0)
     9662    {
    96489663      deleteInL(strat->L, &(strat->Ll), i, strat);
    96499664      i--;
Note: See TracChangeset for help on using the changeset viewer.