=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/lib/primdec_mod,v retrieving revision 1.10 retrieving revision 1.14 diff -u -p -r1.10 -r1.14 --- OpenXM_contrib2/asir2000/lib/primdec_mod 2003/05/07 06:26:51 1.10 +++ OpenXM_contrib2/asir2000/lib/primdec_mod 2004/07/30 02:24:11 1.14 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM_contrib2/asir2000/lib/primdec_mod,v 1.9 2003/04/24 07:54:15 noro Exp $ */ +/* $OpenXM: OpenXM_contrib2/asir2000/lib/primdec_mod,v 1.13 2004/02/09 23:37:12 noro Exp $ */ extern Hom,GBTime$ extern DIVLIST,INTIDEAL,ORIGINAL,ORIGINALDIMENSION,STOP,Trials,REM$ @@ -6,11 +6,12 @@ extern T_GRF,T_INT,T_PD,T_MP$ extern BuchbergerMinipoly,PartialDecompByLex,ParallelMinipoly$ extern B_Win,D_Win$ extern COMMONCHECK_SF,CID_SF$ -extern LIBRARY_GR_LOADED$ -extern LIBRARY_FFF_LOADED$ -if(!LIBRARY_FFF_LOADED) load("fff"); else ; LIBRARY_FFF_LOADED = 1$ -if(!LIBRARY_GR_LOADED) load("gr"); else ; LIBRARY_GR_LOADED = 1$ +if (!module_definedp("fff")) load("fff"); else $ +if (!module_definedp("gr")) load("gr"); else $ +module primdec_mod $ + /* Empty for now. It will be used in a future. */ +endmodule $ /*==============================================*/ /* prime decomposition of ideals over */ @@ -1977,7 +1978,8 @@ def contraction(P,V,W) YSet=setminus(W,V); Ord1 = [[Ord,length(V)],[0,length(YSet)]]; - GP1 = dp_gr_f_main(P,W,Hom,Ord1); + W1 = append(V,YSet); + GP1 = dp_gr_f_main(P,W1,Hom,Ord1); Factor = extcont_factor(GP1,V,Ord); for ( F = 1, T = Factor; T != []; T = cdr(T) ) @@ -3158,7 +3160,7 @@ def ideal_uniq(L) /* sub procedure of welldec and norm R = append(R,[L[I]]); else { for (J = 0; J < length(R); J++) - if ( gb_comp(L[I],R[J]) ) + if ( gb_comp_old(L[I],R[J]) ) break; if ( J == length(R) ) R = append(R,[L[I]]); @@ -3174,7 +3176,7 @@ def ideal_uniq_by_first(L) /* sub procedure of welldec R = append(R,[L[I]]); else { for (J = 0; J < length(R); J++) - if ( gb_comp(L[I][0],R[J][0]) ) + if ( gb_comp_old(L[I][0],R[J][0]) ) break; if ( J == length(R) ) R = append(R,[L[I]]); @@ -3235,7 +3237,7 @@ def gr_fctr_sf(FL,VL,Ord) for (TP = [],I = 0; I