Changeset fb12237 in git


Ignore:
Timestamp:
Dec 9, 2014, 4:09:27 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
Children:
6a70f3e584dbb423be6457c84a588264e2893b4f
Parents:
b9fafaf9fbd3e95f838b97bd12f93ce9db2cc162
Message:
revisiting kstd1::red*: cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd1.cc

    rb9fafa rfb12237  
    6767
    6868/* the list of all options which may be used by option and test */
     69/* defintion of ALL options: libpolys/misc/options.h */
    6970BITSET validOpts=Sy_bit(0)
    7071                |Sy_bit(1)
     
    381382  h->SetShortExpVector();
    382383#if ADIDEBUG_NF
    383   PrintLn();
    384   PrintS("  Searching for a poly in T that divides h (of ecart ");
    385   Print("%i) ...",h->ecart);
    386   PrintLn();
     384  Print("\n  Searching for a poly in T that divides h (of ecart %i) ...\n",h->ecart);
    387385#endif
    388386  loop
     
    393391    {
    394392      ei = strat->T[j].ecart;
    395       PrintLn();
    396       Print("    Found one: T[%i",j);
    397       Print("] of ecart %i",ei);
    398       PrintS(": ");p_Write(strat->T[j].p,strat->tailRing);
    399       PrintLn();
    400       PrintS("    Try to find another with smaller ecart:");
    401       PrintLn();
     393      Print("\n    Found one: T[%i] of ecart %i: ",j,ei);
     394      p_Write(strat->T[j].p,strat->tailRing);
     395      PrintS("\n    Try to find another with smaller ecart:\n");
    402396    }
    403397    else
    404398    {
    405       PrintLn();
    406       PrintS("    No poly in T divides h.");
    407       PrintLn();
     399      PrintS("\n    No poly in T divides h.\n");
    408400    }
    409401#endif
     
    455447      if(iii == ii)
    456448      {
    457         PrintLn();
    458         PrintS("    None was found.");
    459         PrintLn();
     449        PrintS("\n    None was found.\n");
    460450      }
    461451      else
    462452      {
    463         PrintLn();
    464         Print("    A better one (ecart = %i): T[",ei);
    465         Print("%i] = ",ii);p_Write(strat->T[ii].p,strat->tailRing);
     453        Print("\n    A better one (ecart = %i): T[%i] = ",ei,ii);
     454        p_Write(strat->T[ii].p,strat->tailRing);
    466455        PrintLn();
    467456      }
     
    500489    doRed(h,&(strat->T[ii]),strat->fromT,strat);
    501490    #if ADIDEBUG_NF
    502     PrintLn();
    503     PrintS("  Partial Reduced h = ");p_Write(h->p,strat->tailRing);
     491    PrintS("\n  Partial Reduced h = ");p_Write(h->p,strat->tailRing);
    504492    PrintLn();
    505493    #endif
     
    509497    if (h->IsNull())
    510498    {
    511       if (h->lcm!=NULL) pLmFree(h->lcm);
     499      if (h->lcm!=NULL) pLmDelete(h->lcm);
    512500      h->Clear();
    513501      return 0;
     
    13421330}
    13431331
    1344 
    13451332void initSba(ideal F,kStrategy strat)
    13461333{
     
    13591346    strat->red2 = redHomog;
    13601347  }
    1361 #if defined(HAVE_RINGS) || defined(HAVE_RINGS_LOC)  //TODO Oliver
     1348#if defined(HAVE_RINGS) || defined(HAVE_RINGS_LOC)  //TODO Oliver 
    13621349  if (rField_is_Ring(currRing))
    13631350  {
     
    15631550#if ADIDEBUG
    15641551#ifdef KDEBUG
    1565     PrintLn();
    1566     Print("-------------------------------- LOOP %d ---------------------------------------\n",loop_count);
     1552    Print("\n-------------------------------- LOOP %d ---------------------------------------\n",loop_count);
    15671553    //print the list L: (p1,p2,p)
    1568     PrintLn();
    1569     Print("    The pair list L -- in loop %d  -- is:\n",loop_count);
     1554    Print("\n    The pair list L -- in loop %d  -- is:\n",loop_count);
    15701555    for(int iii=0;iii<=strat->Ll;iii++)
    15711556    {
    1572       PrintLn();
    1573       Print("    L[%d]: ",iii);
    1574       PrintLn();
     1557      Print("\n    L[%d]:\n",iii);
    15751558      PrintS("        ");p_Write(strat->L[iii].p1,strat->tailRing);
    15761559      PrintS("        ");p_Write(strat->L[iii].p2,strat->tailRing);
     
    15911574    PrintS("      p2 = "); p_Write(strat->P.p2,strat->tailRing);PrintLn();
    15921575    PrintS("      p = "); p_Write(strat->P.p,strat->tailRing); PrintLn();
    1593     PrintLn();
    1594     Print("    The old reducer list T -- at the beg of loop %d -- is :",loop_count);
     1576    Print("\n    The old reducer list T -- at the beg of loop %d -- is :",loop_count);
    15951577    if(strat->tl<0)
    1596     {PrintS(" Empty.");PrintLn();}
     1578    {PrintS(" Empty.\n");}
    15971579    else
    15981580    for(int iii=0;iii<=strat->tl;iii++)
    15991581    {
    1600       PrintLn();
    1601       Print("    T[%d]:",iii);
     1582      Print("\n    T[%d]:",iii);
    16021583      p_Write(strat->T[iii].p,strat->T->tailRing);
    16031584    }
     
    16791660        for(int iii=0;iii<=strat->Ll;iii++)
    16801661        {
    1681           PrintLn();
    1682           PrintS("    L[%d]:\n",iii);
     1662          PrintS("\n    L[%d]:\n",iii);
    16831663          PrintS("         ");p_Write(strat->L[iii].p1,strat->tailRing);
    16841664          PrintS("         ");p_Write(strat->L[iii].p2,strat->tailRing);
     
    20962076  if(!TEST_OPT_RETURN_SB)
    20972077    strat->syzComp = syzComp;
    2098   if (TEST_OPT_SB_1)
     2078  if (TEST_OPT_SB_1
    20992079    #ifdef HAVE_RINGS
    2100     if(!rField_is_Ring(currRing))
     2080    &&(!rField_is_Ring(currRing))
    21012081    #endif
     2082    )
    21022083    strat->newIdeal = newIdeal;
    21032084  if (rField_has_simple_inverse(currRing))
Note: See TracChangeset for help on using the changeset viewer.