Changeset bd19b6 in git


Ignore:
Timestamp:
Nov 26, 2009, 1:25:22 PM (15 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '3720ae8bfcff4a4649ee98a15552089151d2d59b')
Children:
6a5712c8ea777d6518549d07dc27a939291bac6d
Parents:
fa4bea03da1e4fc2e51162eaf763e21e8e461eb9
Message:
fixed bug in Pottier_ideal due to no output of hosten_shapiro


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

Legend:

Unmodified
Added
Removed
  • IntegerProgramming/ideal.cc

    rfa4bea0 rbd19b6  
    311311  // build "saturation generator"
    312312
     313
    313314  // The use of the hosten_shapiro procedure is useful here because the head
    314315  // of the computed saturation generator is smaller if less variables are
    315316  // involved.
    316   short* sat_var;
    317   short number_of_sat_var=A.hosten_shapiro(sat_var);
     317  short* sat_var = NULL; 
     318  short number_of_sat_var = A.hosten_shapiro(sat_var);
     319  if( (number_of_sat_var == 0) || (sat_var == NULL) )
     320  {
     321    delete[] generator;
     322    return *this;
     323  }
    318324
    319325  for(short j=0;j<A.columns;j++)
     
    330336  // as a binomial with tail 1 by the designed data structures.
    331337
    332   delete[] sat_var;
     338  delete[] sat_var; 
    333339  delete[] generator;
    334340
     
    10091015  fprintf(output,"\nnumber of generators: %ld\n",size);
    10101016
    1011   fprintf(output,"\nInterreduction frequency:  %.1f %\n",
    1012           interreduction_percentage);
     1017  fprintf(output,"\nInterreduction frequency:  %.1f %% \n", interreduction_percentage);
    10131018}
    10141019
Note: See TracChangeset for help on using the changeset viewer.