Changeset 993ae2 in git


Ignore:
Timestamp:
Sep 7, 2011, 9:16:49 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
3630fa8c97d52170372e9f1e47f6bec997bfa51d
Parents:
3aa9b6373c3eba8145bd3a0a102735ba0fc847ae
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-07 21:16:49+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:34+01:00
Message:
FIX: ppNoether belongs to a ring (currRing!?)
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r3aa9b6 r993ae2  
    214214{
    215215  poly p=(poly)a->CopyD(POLY_CMD);
    216   pDelete(&ppNoether);
    217   ppNoether=p;
     216  pDelete(&(currRing->ppNoether));
     217  (currRing->ppNoether)=p;
    218218  return FALSE;
    219219}
  • Singular/ipshell.cc

    r3aa9b6 r993ae2  
    15121512  if (tmp==NULL) return NULL;
    15131513
    1514   if (ppNoether!=NULL) pDelete(&ppNoether);
     1514  if ((currRing->ppNoether)!=NULL) pDelete(&(currRing->ppNoether));
    15151515  if (sLastPrinted.RingDependend())
    15161516  {
     
    53975397        currQuotient=NULL;
    53985398      }
    5399       if (ppNoether!=NULL) pDelete(&ppNoether);
     5399      if ((currRing->ppNoether)!=NULL) pDelete(&(currRing->ppNoether));
    54005400      if (sLastPrinted.RingDependend())
    54015401      {
  • Singular/subexpr.cc

    r3aa9b6 r993ae2  
    625625    if (iiCheckRing(t)) return NULL;
    626626    void *x=data;
    627     if (rtyp==VNOETHER) x=(void *)pCopy(ppNoether);
     627    if (rtyp==VNOETHER) x=(void *)pCopy((currRing->ppNoether));
    628628    else if ((rtyp==VMINPOLY)&& \
    629629                    nCoeff_is_Extension(currRing->cf) && \
     
    10421042                       else
    10431043                         return (void *)currRing->cf->nNULL;
    1044       case VNOETHER:   return (void *) ppNoether;
     1044      case VNOETHER:   return (void *) (currRing->ppNoether);
    10451045      case IDHDL:
    10461046        return IDDATA((idhdl)data);
  • Singular/walk.cc

    r3aa9b6 r993ae2  
    288288//  }
    289289  //strat->syzComp     = 0;
    290   strat->kHEdgeFound = ppNoether != NULL;
    291   strat->kNoether=pCopy(ppNoether);
     290  strat->kHEdgeFound = (currRing->ppNoether) != NULL;
     291  strat->kNoether=pCopy((currRing->ppNoether));
    292292  strat->ak = id_RankFreeModule(F, currRing);
    293293  initBuchMoraCrit(strat);
     
    18021802{
    18031803
    1804   if (ppNoether!=NULL)
    1805     pDelete(&ppNoether);
     1804  if ((currRing->ppNoether)!=NULL)
     1805    pDelete(&(currRing->ppNoether));
    18061806
    18071807  if (((sLastPrinted.rtyp>BEGIN_RING) && (sLastPrinted.rtyp<END_RING)) ||
     
    18731873{
    18741874
    1875   if (ppNoether!=NULL)
    1876     pDelete(&ppNoether);
     1875  if ((currRing->ppNoether)!=NULL)
     1876    pDelete(&(currRing->ppNoether));
    18771877
    18781878  if (((sLastPrinted.rtyp>BEGIN_RING) && (sLastPrinted.rtyp<END_RING)) ||
  • kernel/kstd1.cc

    r3aa9b6 r993ae2  
    11151115  strat->posInLOldFlag = TRUE;
    11161116  strat->initEcart = initEcartNormal;
    1117   strat->kHEdgeFound = ppNoether != NULL;
     1117  strat->kHEdgeFound = (currRing->ppNoether) != NULL;
    11181118  if ( strat->kHEdgeFound )
    1119      strat->kNoether = pCopy(ppNoether);
     1119     strat->kNoether = pCopy((currRing->ppNoether));
    11201120  else if (strat->kHEdgeFound || strat->homog)
    11211121    strat->red = redFirst;  /*take the first possible in T*/
     
    11241124  if (strat->kHEdgeFound)
    11251125  {
    1126     strat->HCord = currRing->pFDeg(ppNoether,currRing)+1;
     1126    strat->HCord = currRing->pFDeg((currRing->ppNoether),currRing)+1;
    11271127    strat->posInT = posInT2;
    11281128  }
     
    12021202  /*updateS in initBuchMora has Hecketest
    12031203  * and could have put strat->kHEdgdeFound FALSE*/
    1204   if (ppNoether!=NULL)
     1204  if ((currRing->ppNoether)!=NULL)
    12051205  {
    12061206    strat->kHEdgeFound = TRUE;
     
    14371437  //strat->ak = si_max(idRankFreeModule(F),pMaxComp(q));
    14381438  /*- creating temp data structures------------------- -*/
    1439   strat->kHEdgeFound = ppNoether != NULL;
    1440   strat->kNoether    = pCopy(ppNoether);
     1439  strat->kHEdgeFound = (currRing->ppNoether) != NULL;
     1440  strat->kNoether    = pCopy((currRing->ppNoether));
    14411441  test|=Sy_bit(OPT_REDTAIL);
    14421442  test&=~Sy_bit(OPT_INTSTRATEGY);
     
    15671567  //strat->ak = si_max(idRankFreeModule(F),idRankFreeModule(q));
    15681568  /*- creating temp data structures------------------- -*/
    1569   strat->kHEdgeFound = ppNoether != NULL;
    1570   strat->kNoether=pCopy(ppNoether);
     1569  strat->kHEdgeFound = (currRing->ppNoether) != NULL;
     1570  strat->kNoether=pCopy((currRing->ppNoether));
    15711571  test|=Sy_bit(OPT_REDTAIL);
    15721572  if (TEST_OPT_STAIRCASEBOUND
     
    22002200//  }
    22012201  //strat->syzComp     = 0;
    2202   strat->kHEdgeFound = ppNoether != NULL;
    2203   strat->kNoether=pCopy(ppNoether);
     2202  strat->kHEdgeFound = (currRing->ppNoether) != NULL;
     2203  strat->kNoether=pCopy((currRing->ppNoether));
    22042204  strat->ak = id_RankFreeModule(tempF,currRing);
    22052205  initBuchMoraCrit(strat);
  • kernel/polys.h

    r3aa9b6 r993ae2  
    225225
    226226typedef poly*   polyset;
    227 extern poly     ppNoether;
     227// // // extern poly     ppNoether; // use currRing -> ppNoether!!!
    228228extern BOOLEAN  pVectorOut;
    229229
  • libpolys/polys/monomials/p_polys.cc

    r3aa9b6 r993ae2  
    30323032void p_SetGlobals(const ring r, BOOLEAN complete)
    30333033{
    3034   if (r->ppNoether!=NULL) p_Delete(&r->ppNoether,r);
     3034// // //  if (r->ppNoether!=NULL) p_Delete(&r->ppNoether,r); // ???
    30353035
    30363036  if (complete)
Note: See TracChangeset for help on using the changeset viewer.