Changeset 40b3aba in git


Ignore:
Timestamp:
Oct 9, 2004, 10:50:11 PM (20 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
2de2a9d3e8f79175378bf84769b7f049bae4b7e5
Parents:
5f775a5d38cd4fc40222e67a3361a9adc5855e34
Message:
not so many spolys at same time if not homogeneous


git-svn-id: file:///usr/local/Singular/svn/trunk@7546 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/tgb.cc

    r5f775a r40b3aba  
    30363036  //set limit of 1000 for multireductions, at the moment for
    30373037  //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;
    30393044  poly* done=(poly*) omalloc(done_size*sizeof(poly));
    30403045  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;
    30423047  monom_poly* chosen=(monom_poly*) omalloc(chosen_size*sizeof(monom_poly));
    30433048  int chosen_index=0;
     
    30533058  int nfs=0;
    30543059  int curr_deg=-1;
    3055  
     3060
    30563061  //choose pairs and preprocess symbolically
    3057   while(chosen_index<PAR_N_F4)
     3062  while(chosen_index<max_par)
    30583063  {
    30593064   
     
    31003105      if(done_index>=done_size)
    31013106      {
    3102         done_size+=PAR_N_F4;
     3107        done_size+=max_par;
    31033108        done=(poly*) omrealloc(done,done_size*sizeof(poly));
    31043109      }
     
    31063111      if(chosen_index+1>=chosen_size)
    31073112      {
    3108         //PAR_N_F4 must be greater equal 2
    3109         chosen_size+=max(PAR_N_F4,2);
     3113        //max_par must be greater equal 2
     3114        chosen_size+=max(max_par,2);
    31103115        chosen=(monom_poly*) omrealloc(chosen,chosen_size*sizeof(monom_poly));
    31113116      }
     
    31213126      if(chosen_index>=chosen_size)
    31223127      {
    3123         chosen_size+=PAR_N_F4;
     3128        chosen_size+=max_par;
    31243129        chosen=(monom_poly*) omrealloc(chosen,chosen_size*sizeof(monom_poly));
    31253130      }
Note: See TracChangeset for help on using the changeset viewer.