Changeset 0b4ec2 in git


Ignore:
Timestamp:
Feb 23, 2009, 12:26:29 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
e5408173a819cf24009069d4443ae2c98be47c45
Parents:
05eb8c338d5239a2e038f0b776772d795b3ac14e
Message:
*hannes: use rIsRatGRing


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

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    r05eb8c r0b4ec2  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gr_kstd2.cc,v 1.27 2009-02-22 11:22:08 Singular Exp $ */
     4/* $Id: gr_kstd2.cc,v 1.28 2009-02-23 11:26:29 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
     
    170170  if (p==NULL) return;
    171171  poly root=p;
    172   assume(currRing->real_var_start>0);
     172  assume(rIsRatGRing(currRing));
    173173  poly f=pHead(p);
    174174  int i;
     
    981981    strat->red = redGrFirst;
    982982#ifdef HAVE_RATGRING
    983   if (currRing->real_var_start>0)
     983  if (rIsRatGRing(currRing))
    984984  {
    985985    int ii=IDELEMS(F)-1;
     
    10741074  nc_gr_initBba(F,strat);
    10751075  initBuchMoraPos(strat);
    1076   if (currRing->real_var_start>0)
     1076  if (rIsRatGRing(currRing))
    10771077  {
    10781078    strat->posInL=posInL0; // by pCmp of lcm
  • kernel/kutil.cc

    r05eb8c r0b4ec2  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.122 2009-02-23 10:59:20 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.123 2009-02-23 11:26:29 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    160160  {
    161161#ifdef HAVE_PLURAL
    162     if (currRing->real_var_start>0)
     162    if (rIsRatGRing(currRing))
    163163    {
    164164      if (_p_LmDivisibleByPart(p,currRing,
     
    22962296    if (new_pair)
    22972297    {
    2298 #ifdef HAVE_PLURAL
    2299       if (currRing->real_var_start>0)
    2300         chainCritPart(h,ecart,strat);
    2301       else
    2302 #endif
    23032298      strat->chainCrit(h,ecart,strat);
    23042299    }
     
    55485543  }
    55495544#endif
     5545#ifdef HAVE_PLURAL
     5546  if (rIsRatGRing(currRing))
     5547  {
     5548     strat->chainCrit=chainCritPart;
     5549  }
     5550#endif
    55505551
    55515552  strat->sugarCrit =        TEST_OPT_SUGARCRIT;
  • kernel/ring.h

    r05eb8c r0b4ec2  
    77* ABSTRACT - the interpreter related ring operations
    88*/
    9 /* $Id: ring.h,v 1.39 2009-02-22 11:22:08 Singular Exp $ */
     9/* $Id: ring.h,v 1.40 2009-02-23 11:26:29 Singular Exp $ */
    1010
    1111/* includes */
     
    4848#ifdef HAVE_PLURAL
    4949  nc_struct *n;
    50   return (r != NULL) && ((n=r->GetNC()) != NULL)
     50  return (r != NULL) /* && ((n=r->GetNC()) != NULL) */
    5151          && (r->real_var_start>1);
    5252#else
Note: See TracChangeset for help on using the changeset viewer.