Changeset 32b0000 in git for kernel/kstd1.cc


Ignore:
Timestamp:
Jul 24, 2007, 6:19:09 PM (17 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
875d687f0824ce98eaa67154c1c57bac37cdde1f
Parents:
ea6e5e7ba407b2006bf3c391e4a48d6194d87418
Message:
*motsak: adaptation of kInterRed for SCA


git-svn-id: file:///usr/local/Singular/svn/trunk@10244 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kstd1.cc

    rea6e5e7 r32b0000  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd1.cc,v 1.24 2007-07-24 12:29:30 Singular Exp $ */
     4/* $Id: kstd1.cc,v 1.25 2007-07-24 16:19:09 motsak Exp $ */
    55/*
    66* ABSTRACT:
     
    3131
    3232//#include "ipprint.h"
     33
     34#ifdef HAVE_PLURAL
     35#include "sca.h"
     36#endif
     37
    3338
    3439/* the list of all options which give a warning by test */
     
    21252130  kStrategy strat = new skStrategy;
    21262131
     2132  ideal tempF = F;
     2133  ideal tempQ = Q;
     2134
     2135#ifdef HAVE_PLURAL
     2136  if(rIsSCA(currRing))
     2137  {
     2138
     2139    const unsigned int m_iFirstAltVar = scaFirstAltVar(currRing);
     2140    const unsigned int m_iLastAltVar  = scaLastAltVar(currRing);
     2141    tempF = id_KillSquares(F, m_iFirstAltVar, m_iLastAltVar, currRing);
     2142
     2143    // this should be done on the upper level!!! :
     2144    //    tempQ = currRing->nc->SCAQuotient();
     2145
     2146    if(Q == currQuotient)
     2147      tempQ = currRing->nc->SCAQuotient();
     2148  }
     2149#endif
     2150 
     2151//  assume(!rIsSCA(currRing));
     2152 
    21272153//  if (TEST_OPT_PROT)
    21282154//  {
     
    21332159  strat->kHEdgeFound = ppNoether != NULL;
    21342160  strat->kNoether=pCopy(ppNoether);
    2135   strat->ak = idRankFreeModule(F);
     2161  strat->ak = idRankFreeModule(tempF);
    21362162  initBuchMoraCrit(strat);
    21372163  strat->NotUsedAxis = (BOOLEAN *)omAlloc((pVariables+1)*sizeof(BOOLEAN));
     
    21472173  strat->sevT        = initsevT();
    21482174  if (pOrdSgn == -1)   strat->honey = TRUE;
    2149   initS(F,Q,strat);
     2175  initS(tempF, tempQ, strat);
    21502176  if (TEST_OPT_REDSB)
    21512177    strat->noTailReduction=FALSE;
     
    21862212  }
    21872213  delete(strat);
     2214
     2215#ifdef HAVE_PLURAL
     2216  if( tempF != F )
     2217    id_Delete( &tempF, currRing);
     2218#endif
     2219 
    21882220  return shdl;
    21892221}
Note: See TracChangeset for help on using the changeset viewer.