Changeset f3be8e6 in git
- Timestamp:
- Apr 20, 2020, 9:21:39 PM (3 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 3e34f20459fa942914b03f47d052e3e393078b02756dc7155d3cba64f765acc3475e5c4e12cdbbffda334f04d062863798ea2bd549c83b75607883fa
- Parents:
- 9904f67850aa704dcd1dcd5e95035cee753e8a74
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kutil.cc
r9904f6 rf3be8e6 968 968 poly p; 969 969 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", 973 975 lpos, p_GetShortExpVector(p, r), L->sev); 976 } 974 977 } 975 978 } … … 1557 1560 if (currRing!=strat->tailRing) 1558 1561 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; 1559 1564 enterL(&strat->B,&strat->Bl,&strat->Bmax,h,posx); 1560 1565 kTest_TS(strat); … … 6984 6989 int cc = (-1+2*currRing->order[0]==ringorder_c); 6985 6990 /* cc==1 for (c,..), cc==-1 for (C,..) */ 6986 unsignedlong c = pGetComp(p->p)*cc;6991 long c = pGetComp(p->p)*cc; 6987 6992 int o = p->GetpFDeg() + p->ecart; 6988 6993 … … 9596 9601 if (strat->homog) strat->initEcart(&p); 9597 9602 strat->redTailChange=FALSE; 9598 if ((TEST_OPT_INTSTRATEGY) || (rField_is_Ring(currRing))) { 9603 if ((TEST_OPT_INTSTRATEGY) || (rField_is_Ring(currRing))) 9604 { 9599 9605 p.pCleardenom(); 9600 if ((TEST_OPT_REDSB)||(TEST_OPT_REDTAIL)) { 9606 if ((TEST_OPT_REDSB)||(TEST_OPT_REDTAIL)) 9607 { 9601 9608 #ifdef HAVE_SHIFTBBA 9602 9609 if (rIsLPRing(currRing)) … … 9610 9617 if (strat->redTailChange) 9611 9618 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; 9612 9621 } 9613 9622 } … … 9622 9631 enterT(p, strat); 9623 9632 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 { 9626 9637 break; 9627 9638 } … … 9629 9640 /* it may be that the exchanged element 9630 9641 * is until now only in T and not in S */ 9631 if (j <= strat->sl) { 9642 if (j <= strat->sl) 9643 { 9632 9644 deleteInS(j, strat); 9633 9645 } … … 9639 9651 9640 9652 /* 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 { 9643 9657 deleteInL(strat->L, &(strat->Ll), i, strat); 9644 9658 i--; 9645 9659 continue; 9646 9660 } 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 { 9648 9663 deleteInL(strat->L, &(strat->Ll), i, strat); 9649 9664 i--;
Note: See TracChangeset
for help on using the changeset viewer.