Changeset 1f637e in git for kernel/kstd2.cc


Ignore:
Timestamp:
Jul 19, 2011, 5:11:57 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
1c4e9a5798bda4bc92d0013041b99005a50a7d7c
Parents:
6ed8c424bfe6fd9dc397bfdde3e8acf884469342
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-19 17:11:57+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:52:40+01:00
Message:
FIX: replaced pVariables by currRing->N...
ADD: added 'void rChangeCurrRing(ring r);' to polys/polys.h
CHG: started changing gr_kstd2.cc and syz*.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kstd2.cc

    r6ed8c4 r1f637e  
    12841284    if (ecartWeights)
    12851285    {
    1286       omFreeSize((ADDRESS)ecartWeights,(pVariables+1)*sizeof(short));
     1286      omFreeSize((ADDRESS)ecartWeights,((currRing->N)+1)*sizeof(short));
    12871287      ecartWeights=NULL;
    12881288    }
     
    17961796    if (ecartWeights)
    17971797    {
    1798       omFreeSize((ADDRESS)ecartWeights,(pVariables+1)*sizeof(short));
     1798      omFreeSize((ADDRESS)ecartWeights,((currRing->N)+1)*sizeof(short));
    17991799      ecartWeights=NULL;
    18001800    }
     
    19991999    //else
    20002000    {
    2001       ecartWeights=(short *)omAlloc((pVariables+1)*sizeof(short));
     2001      ecartWeights=(short *)omAlloc(((currRing->N)+1)*sizeof(short));
    20022002      /*uses automatic computation of the ecartWeights to set them*/
    20032003      kEcartWeights(F->m,IDELEMS(F)-1,ecartWeights);
     
    20062006    if (TEST_OPT_PROT)
    20072007    {
    2008       for(i=1; i<=pVariables; i++)
     2008      for(i=1; i<=(currRing->N); i++)
    20092009        Print(" %d",ecartWeights[i]);
    20102010      PrintLn();
Note: See TracChangeset for help on using the changeset viewer.