Changeset e2efbe9 in git


Ignore:
Timestamp:
May 4, 2009, 5:06:16 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
5684dfa909063f2b118082f73dce26a57ed264e0
Parents:
233f2e504906a97e837a6704ca5f2f22d86c4bb8
Message:
*hannes: qring handling


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

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r233f2e re2efbe9  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.104 2009-05-01 15:09:32 Singular Exp $ */
     4/* $Id: ipassign.cc,v 1.105 2009-05-04 15:06:15 Singular Exp $ */
    55
    66/*
     
    550550  }
    551551
    552   ring qr=(ring)res->Data(); // the declaration allocated space
    553   omFreeBin((ADDRESS)qr, ip_sring_bin);
    554   ring qrr=rCopy(currRing);
     552  ring qr;
     553  //qr=(ring)res->Data();
     554  //if (qr!=NULL) omFreeBin((ADDRESS)qr, ip_sring_bin);
     555  assume(res->Data()==NULL);
     556  qr=rCopy(currRing);
    555557                 // we have to fill it, but the copy also allocates space
    556558  idhdl h=(idhdl)res->data; // we have res->rtyp==IDHDL
    557   IDRING(h)=qrr;
    558   qr=qrr;
     559  IDRING(h)=qr;
    559560
    560561#ifdef HAVE_PLURAL
     
    578579    idDelete(&id);
    579580    id=tmp;
    580      // delete the qr copy of quotient ideal!!!
     581    // delete the qr copy of quotient ideal!!!
    581582    idDelete(&qr->qideal);
    582583  }
    583   qrr->qideal = id;
     584  qr->qideal = id;
    584585
    585586  // qr is a copy of currRing with the new qideal!
     
    598599  }
    599600  #endif
    600   //currRing=qr;
    601   //currRingHdl=(idhdl)res->data;
    602   //currQuotient=qr->qideal;
    603601  rSetHdl((idhdl)res->data);
    604602  return FALSE;
  • Singular/ipid.cc

    r233f2e re2efbe9  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipid.cc,v 1.84 2008-04-28 13:54:16 Singular Exp $ */
     4/* $Id: ipid.cc,v 1.85 2009-05-04 15:06:15 Singular Exp $ */
    55
    66/*
     
    320320        break;
    321321      case RING_CMD:
    322       case QRING_CMD:
    323322        IDRING(h) = (ring) omAlloc0Bin(sip_sring_bin);
    324323        break;
  • Singular/ipshell.cc

    r233f2e re2efbe9  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.203 2009-03-11 09:43:29 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.204 2009-05-04 15:06:16 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    340340    ||(IDTYP(h)==QRING_CMD))
    341341    {
    342       if (IDRING(h)->idroot!=NULL)
     342      if ((IDRING(h)!=NULL) && (IDRING(h)->idroot!=NULL))
     343      // we have to test IDRING(h)!=NULL: qring Q=groebner(...): killlocals
    343344      {
    344345  //    Print("into ring %s, lev %d for lev %d\n",IDID(h),IDLEV(h),v);
     
    43374338//   Print(" new ring:%s (l:%d)\n",IDID(h),IDLEV(h));
    43384339    rg = IDRING(h);
     4340    if (rg==NULL) return; //id <>NULL, ring==NULL
    43394341    omCheckAddrSize((ADDRESS)h,sizeof(idrec));
    43404342    if (IDID(h))  // OB: ????
Note: See TracChangeset for help on using the changeset viewer.