Skip to content

Commit d5e030c

Browse files
hannes14mohamed-barakat
authored andcommitted
fix pOrdSgn -> r->OrdSgn
1 parent d02a0a1 commit d5e030c

5 files changed

Lines changed: 92 additions & 93 deletions

File tree

kernel/gr_kstd2.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ ideal gnc_gr_bba(const ideal F, const ideal Q, const intvec *, const intvec *, k
10621062
#endif
10631063
#endif
10641064

1065-
assume(pOrdSgn != -1); // no mora!!! it terminates only for global ordering!!! (?)
1065+
assume(currRing->OrdSgn != -1); // no mora!!! it terminates only for global ordering!!! (?)
10661066

10671067
intvec *w=NULL;
10681068
intvec *hilb=NULL;

kernel/hdegree.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ int scMultInt(ideal S, ideal Q)
796796
void scPrintDegree(int co, int mu)
797797
{
798798
int di = (currRing->N)-co;
799-
if (pOrdSgn == 1)
799+
if (currRing->OrdSgn == 1)
800800
{
801801
if (di>0)
802802
Print("// dimension (proj.) = %d\n// degree (proj.) = %d\n", di-1, mu);
@@ -909,7 +909,7 @@ static poly pWork;
909909
static void hHedge(poly hEdge)
910910
{
911911
pSetm(pWork);
912-
if (pLmCmp(pWork, hEdge) == pOrdSgn)
912+
if (pLmCmp(pWork, hEdge) == currRing->OrdSgn)
913913
{
914914
for (int i = hNvar; i>0; i--)
915915
pSetExp(hEdge,i, pGetExp(pWork,i));

kernel/kstd1.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ ideal kStd(ideal F, ideal Q, tHomog h,intvec ** w, intvec *hilb,int syzComp,
18041804
else
18051805
#endif
18061806
{
1807-
if (pOrdSgn==-1)
1807+
if (currRing->OrdSgn==-1)
18081808
{
18091809
if (w!=NULL)
18101810
r=mora(F,Q,*w,hilb,strat);
@@ -1898,7 +1898,7 @@ ideal kStdShift(ideal F, ideal Q, tHomog h,intvec ** w, intvec *hilb,int syzComp
18981898
#ifdef KDEBUG
18991899
idTest(F);
19001900
#endif
1901-
if (pOrdSgn==-1)
1901+
if (currRing->OrdSgn==-1)
19021902
{
19031903
/* error: no local ord yet with shifts */
19041904
Print("No local ordering possible for shifts");
@@ -2006,7 +2006,7 @@ ideal kMin_std(ideal F, ideal Q, tHomog h,intvec ** w, ideal &M, intvec *hilb,
20062006
strat->LazyPass*=2;
20072007
}
20082008
strat->homog=h;
2009-
if (pOrdSgn==-1)
2009+
if (currRing->OrdSgn==-1)
20102010
{
20112011
if (w!=NULL)
20122012
r=mora(F,Q,*w,hilb,strat);
@@ -2099,7 +2099,7 @@ poly kNF(ideal F, ideal Q, poly p,int syzComp, int lazyReduce)
20992099
strat->ak = si_max(id_RankFreeModule(F,currRing),pMaxComp(p));
21002100
poly res;
21012101

2102-
if (pOrdSgn==-1)
2102+
if (currRing->OrdSgn==-1)
21032103
res=kNF1(F,Q,pp,strat,lazyReduce);
21042104
else
21052105
res=kNF2(F,Q,pp,strat,lazyReduce);
@@ -2152,7 +2152,7 @@ ideal kNF(ideal F, ideal Q, ideal p,int syzComp,int lazyReduce)
21522152
strat->ak = si_max(strat->ak,(int)F->rank);
21532153
}
21542154

2155-
if (pOrdSgn==-1)
2155+
if (currRing->OrdSgn==-1)
21562156
res=kNF1(F,Q,pp,strat,lazyReduce);
21572157
else
21582158
res=kNF2(F,Q,pp,strat,lazyReduce);
@@ -2214,7 +2214,7 @@ ideal kInterRedOld (ideal F, ideal Q)
22142214
strat->T = initT();
22152215
strat->R = initR();
22162216
strat->sevT = initsevT();
2217-
if (pOrdSgn == -1) strat->honey = TRUE;
2217+
if (currRing->OrdSgn == -1) strat->honey = TRUE;
22182218
initS(tempF, tempQ, strat);
22192219
if (TEST_OPT_REDSB)
22202220
strat->noTailReduction=FALSE;
@@ -2522,7 +2522,7 @@ ideal kInterRed (ideal F, ideal Q)
25222522
#ifdef HAVE_PLURAL
25232523
if(rIsPluralRing(currRing)) return kInterRedOld(F,Q);
25242524
#endif
2525-
if ((pOrdSgn==-1)
2525+
if ((currRing->OrdSgn==-1)
25262526
|| (rField_is_numeric(currRing)))
25272527
return kInterRedOld(F,Q);
25282528

0 commit comments

Comments
 (0)