Changeset f41347f in git for kernel


Ignore:
Timestamp:
Dec 4, 2008, 3:13:37 PM (15 years ago)
Author:
Oliver Wienand <wienand@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8d14d6727730a17792390dffc7ccbaa20400a1d9
Parents:
b8b1d8bf67036f530445026e0839121eda08c83d
Message:
Fehler in lokalen Ordnungen und KoefRingen


git-svn-id: file:///usr/local/Singular/svn/trunk@11215 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/kstd1.cc

    rb8b1d8 rf41347f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd1.cc,v 1.40 2008-11-12 16:07:20 Singular Exp $ */
     4/* $Id: kstd1.cc,v 1.41 2008-12-04 14:13:37 wienand Exp $ */
    55/*
    66* ABSTRACT:
     
    951951  }
    952952  #endif
     953  return;
    953954  if ((!strat->kHEdgeFound) || (strat->kNoether!=NULL)) HEckeTest(p.p,strat);
    954955  if (strat->kHEdgeFound)
     
    10831084  else if (strat->kHEdgeFound || strat->homog)
    10841085    strat->red = redFirst;  /*take the first possible in T*/
    1085 #ifdef HAVE_RINGS  //TODO Oliver
    1086   else if (rField_is_Ring(currRing))
    1087     strat->red = redRing;
    1088 #endif
    10891086  else
    10901087    strat->red = redEcart;/*take the first possible in under ecart-restriction*/
     
    12291226    {
    12301227      /*- deletes the short spoly and computes -*/
     1228#ifdef HAVE_RINGS
     1229      if (rField_is_Ring(currRing))
     1230        pLmDelete(strat->P.p);
     1231      else
     1232#endif
    12311233      pLmFree(strat->P.p);
    12321234      strat->P.p = NULL;
     
    12841286      enterT(strat->P,strat);
    12851287      // build new pairs
     1288#ifdef HAVE_RINGS
     1289      if (rField_is_Ring(currRing))
     1290        superenterpairs(strat->P.p,strat->sl,strat->P.ecart,0,strat, strat->tl);
     1291      else
     1292#endif
    12861293      enterpairs(strat->P.p,strat->sl,strat->P.ecart,0,strat, strat->tl);
    12871294      // put in S
     
    12941301
    12951302      // clear strat->P
    1296       if (strat->P.lcm!=NULL) pLmFree(strat->P.lcm);
     1303      if (strat->P.lcm!=NULL)
     1304#ifdef HAVE_RINGS
     1305        pLmDelete(strat->P.lcm);
     1306#else
     1307        pLmFree(strat->P.lcm);
     1308#endif
    12971309      strat->P.lcm=NULL;
    12981310#ifdef KDEBUG
  • kernel/kutil.cc

    rb8b1d8 rf41347f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.112 2008-10-14 09:18:36 wienand Exp $ */
     4/* $Id: kutil.cc,v 1.113 2008-12-04 14:13:37 wienand Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    314314  ring r = L->tailRing;
    315315  poly p = L->GetLmTailRing();
     316
     317#ifdef HAVE_RINGS
     318  // Leading coef have to be a unit
     319  if ( !(nIsUnit(p_GetCoeff(p, r))) ) return;
     320#endif
    316321
    317322  if(p_GetComp(p, r) != 0 && !p_OneComp(p, r)) return;
     
    50865091  if (!pIsVector((*p).p) && ((*p).ecart != 0))
    50875092  {
     5093#ifdef HAVE_RINGS
     5094    // Leading coef have to be a unit
     5095    if ( !(nIsUnit(p_GetCoeff((*p).p, r))) ) return;
     5096#endif
    50885097    k = 0;
    50895098    h1 = r = pCopy((*p).p);
     
    50975106        (*p).ecart = 0;
    50985107        (*p).length = 1;
     5108#ifdef HAVE_RINGS
     5109        (*p).pLength = 1;  // Why wasn't this set already?
     5110#endif
    50995111        (*suc)=0;
    51005112        return;
Note: See TracChangeset for help on using the changeset viewer.