Changeset 40b3aba in git
- Timestamp:
- Oct 9, 2004, 10:50:11 PM (20 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 2de2a9d3e8f79175378bf84769b7f049bae4b7e5
- Parents:
- 5f775a5d38cd4fc40222e67a3361a9adc5855e34
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/tgb.cc
r5f775a r40b3aba 3036 3036 //set limit of 1000 for multireductions, at the moment for 3037 3037 //programming reasons 3038 int done_size=PAR_N_F4*2; 3038 int max_par; 3039 if (c->is_homog) 3040 max_par=PAR_N_F4; 3041 else 3042 max_par=200; 3043 int done_size=max_par*2; 3039 3044 poly* done=(poly*) omalloc(done_size*sizeof(poly)); 3040 3045 int done_index=0; //done_index must always be smaller than done_size 3041 int chosen_size= PAR_N_F4*2;3046 int chosen_size=max_par*2; 3042 3047 monom_poly* chosen=(monom_poly*) omalloc(chosen_size*sizeof(monom_poly)); 3043 3048 int chosen_index=0; … … 3053 3058 int nfs=0; 3054 3059 int curr_deg=-1; 3055 3060 3056 3061 //choose pairs and preprocess symbolically 3057 while(chosen_index< PAR_N_F4)3062 while(chosen_index<max_par) 3058 3063 { 3059 3064 … … 3100 3105 if(done_index>=done_size) 3101 3106 { 3102 done_size+= PAR_N_F4;3107 done_size+=max_par; 3103 3108 done=(poly*) omrealloc(done,done_size*sizeof(poly)); 3104 3109 } … … 3106 3111 if(chosen_index+1>=chosen_size) 3107 3112 { 3108 // PAR_N_F4must be greater equal 23109 chosen_size+=max( PAR_N_F4,2);3113 //max_par must be greater equal 2 3114 chosen_size+=max(max_par,2); 3110 3115 chosen=(monom_poly*) omrealloc(chosen,chosen_size*sizeof(monom_poly)); 3111 3116 } … … 3121 3126 if(chosen_index>=chosen_size) 3122 3127 { 3123 chosen_size+= PAR_N_F4;3128 chosen_size+=max_par; 3124 3129 chosen=(monom_poly*) omrealloc(chosen,chosen_size*sizeof(monom_poly)); 3125 3130 }
Note: See TracChangeset
for help on using the changeset viewer.