Changeset b0ca43c in git


Ignore:
Timestamp:
May 10, 2012, 6:58:51 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
768c0c633aae467a89a591f785e3022483f6be78860d71cc6a362dccf8aea3a8620a4e147d6ab72c
Parents:
fdde6cefc2a23bb663a3fe197b2e24bffacac361
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-05-10 18:58:51+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-05-10 18:59:06+02:00
Message:
new global option for auto-testing the Syzygy property ("SYZCHECK")

NOTE: it is On for now... TODO: disable later!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/schreyer.lib

    rfdde6ce rb0ca43c  
    475475 
    476476  int @DEBUG = !system("with", "ndebug");
     477  int @SYZCHECK = 1 || @DEBUG; // TODO: only for now!!
    477478 
    478479  if( @DEBUG )
     
    568569  }
    569570
    570   if( @DEBUG )
     571  if( @SYZCHECK )
    571572  {
    572573    // 0^th syz. property
     
    587588  attrib(MRES, "isHomog", @V);
    588589 
    589   attrib(S, "InducionStart", @RANK);
     590//  attrib(S, "InducionStart", @RANK);
    590591  attrib(S, "LEAD2SYZ", 1);
    591592  attrib(S, "TAILREDSYZ", 0);
    592593  attrib(S, "DEBUG", @DEBUG);
     594  attrib(S, "SYZCHECK", @SYZCHECK);
    593595 
    594596  if( @DEBUG )
     
    736738  }
    737739
     740  if( typeof( attrib(basering, "SYZCHECK") ) == "int" )
     741  {
     742    int @SYZCHECK = attrib(basering, "SYZCHECK");
     743  } else
     744  {
     745    int @SYZCHECK = @DEBUG;
     746  }
     747 
     748
    738749  if( @DEBUG )
    739750  {
     
    804815  {
    805816    "SSCompute2LeadingSyzygyTerms::Syz(LEAD): "; S;
    806 
     817  }
     818
     819  if( @SYZCHECK )
     820  {
    807821    if( size(S) > 0 and size(L) > 0 )
    808822    {
     
    10751089static proc SSstep()
    10761090{
    1077   /// TODO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    1078   int @DEBUG = !system("with", "ndebug");
     1091  if( typeof( attrib(basering, "DEBUG") ) == "int" )
     1092  {
     1093    int @DEBUG = attrib(basering, "DEBUG");
     1094  } else
     1095  {
     1096    int @DEBUG = !system("with", "ndebug");
     1097  }
     1098
     1099
     1100  if( typeof( attrib(basering, "SYZCHECK") ) == "int" )
     1101  {
     1102    int @SYZCHECK = attrib(basering, "SYZCHECK");
     1103  } else
     1104  {
     1105    int @SYZCHECK = @DEBUG;
     1106  }
    10791107
    10801108  if( @DEBUG )
     
    11461174
    11471175
    1148   if( size(N) > 0 )
    1149   {
    1150     if( @DEBUG )
     1176  if( @SYZCHECK )
     1177  {
     1178    if( size(N) > 0 )
    11511179    {
    11521180      // next syz. property
Note: See TracChangeset for help on using the changeset viewer.