Changeset f9d20d7 in git


Ignore:
Timestamp:
Nov 13, 2013, 10:42:33 AM (9 years ago)
Author:
Christian Eder
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '5bec8f88c9ee2573d328cf7c3aff2bcb301d2395')
Children:
2f1fda5d1caba9d94996a2cbeaaf1a3f83bbbe10
Parents:
b3e94aa7397457378c5b5253b4ba1d89eab89f32
git-author:
Christian Eder <ederc@mathematik.uni-kl.de>2013-11-13 10:42:33+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-11-15 14:58:02+01:00
Message:
adds debug information on number of top s-reductions in sba
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kstd2.cc

    rb3e94aa rf9d20d7  
    5050#define F5C       0
    5151#if F5C
    52   #define F5CTAILRED 0
     52  #define F5CTAILRED 1
    5353#endif
    5454
    5555#define SBA_PRODUCT_CRITERION         0
    56 #define SBA_PRINT_ZERO_REDUCTIONS     0
    57 #define SBA_PRINT_SIZE_G              0
    58 #define SBA_PRINT_SIZE_SYZ            0
     56#define SBA_PRINT_ZERO_REDUCTIONS     1
     57#define SBA_PRINT_REDUCTION_STEPS     1
     58#define SBA_PRINT_SIZE_G              1
     59#define SBA_PRINT_SIZE_SYZ            1
    5960#define SBA_PRINT_PRODUCT_CRITERION   0
     61
     62long sba_reduction_steps;
    6063/***********************************************
    6164 * SBA stuff -- done
     
    619622#endif
    620623    sigSafe = ksReducePolySig(h, &(strat->T[ii]), strat->S_2_R[ii], NULL, NULL, strat);
     624#if SBA_PRINT_REDUCTION_STEPS
     625    sba_reduction_steps++;
     626#endif
    621627    // if reduction has taken place, i.e. the reduction was sig-safe
    622628    // otherwise start is already at the next position and the loop
     
    15061512  long size_g             = 0;
    15071513  long size_syz           = 0;
     1514  // global variable
     1515  sba_reduction_steps     = 0;
    15081516
    15091517  ideal F = F0;
     
    20552063  printf("ZERO REDUCTIONS:   %ld\n",zeroreductions);
    20562064#endif
     2065#if SBA_PRINT_REDUCTION_STEPS
     2066  printf("TOP S-REDUCTIONS:  %ld\n",sba_reduction_steps);
     2067#endif
    20572068#if SBA_PRINT_SIZE_G
    20582069  printf("SIZE OF G:         %ld\n",size_g);
     
    20642075  printf("PRODUCT CRITERIA:  %ld\n",product_criterion);
    20652076#endif
    2066   zeroreductions    = 0;
    2067   size_g            = 0;
    2068   size_syz          = 0;
    2069   product_criterion = 0;
     2077  zeroreductions      = 0;
     2078  size_g              = 0;
     2079  size_syz            = 0;
     2080  product_criterion   = 0;
     2081  sba_reduction_steps = 0;
    20702082  return (strat->Shdl);
    20712083}
Note: See TracChangeset for help on using the changeset viewer.