Changeset fb12237 in git
- Timestamp:
- Dec 9, 2014, 4:09:27 PM (9 years ago)
- Branches:
- (u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
- Children:
- 6a70f3e584dbb423be6457c84a588264e2893b4f
- Parents:
- b9fafaf9fbd3e95f838b97bd12f93ce9db2cc162
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kstd1.cc
rb9fafa rfb12237 67 67 68 68 /* the list of all options which may be used by option and test */ 69 /* defintion of ALL options: libpolys/misc/options.h */ 69 70 BITSET validOpts=Sy_bit(0) 70 71 |Sy_bit(1) … … 381 382 h->SetShortExpVector(); 382 383 #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); 387 385 #endif 388 386 loop … … 393 391 { 394 392 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"); 402 396 } 403 397 else 404 398 { 405 PrintLn(); 406 PrintS(" No poly in T divides h."); 407 PrintLn(); 399 PrintS("\n No poly in T divides h.\n"); 408 400 } 409 401 #endif … … 455 447 if(iii == ii) 456 448 { 457 PrintLn(); 458 PrintS(" None was found."); 459 PrintLn(); 449 PrintS("\n None was found.\n"); 460 450 } 461 451 else 462 452 { 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); 466 455 PrintLn(); 467 456 } … … 500 489 doRed(h,&(strat->T[ii]),strat->fromT,strat); 501 490 #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); 504 492 PrintLn(); 505 493 #endif … … 509 497 if (h->IsNull()) 510 498 { 511 if (h->lcm!=NULL) pLm Free(h->lcm);499 if (h->lcm!=NULL) pLmDelete(h->lcm); 512 500 h->Clear(); 513 501 return 0; … … 1342 1330 } 1343 1331 1344 1345 1332 void initSba(ideal F,kStrategy strat) 1346 1333 { … … 1359 1346 strat->red2 = redHomog; 1360 1347 } 1361 #if defined(HAVE_RINGS) || defined(HAVE_RINGS_LOC) //TODO Oliver 1348 #if defined(HAVE_RINGS) || defined(HAVE_RINGS_LOC) //TODO Oliver 1362 1349 if (rField_is_Ring(currRing)) 1363 1350 { … … 1563 1550 #if ADIDEBUG 1564 1551 #ifdef KDEBUG 1565 PrintLn(); 1566 Print("-------------------------------- LOOP %d ---------------------------------------\n",loop_count); 1552 Print("\n-------------------------------- LOOP %d ---------------------------------------\n",loop_count); 1567 1553 //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); 1570 1555 for(int iii=0;iii<=strat->Ll;iii++) 1571 1556 { 1572 PrintLn(); 1573 Print(" L[%d]: ",iii); 1574 PrintLn(); 1557 Print("\n L[%d]:\n",iii); 1575 1558 PrintS(" ");p_Write(strat->L[iii].p1,strat->tailRing); 1576 1559 PrintS(" ");p_Write(strat->L[iii].p2,strat->tailRing); … … 1591 1574 PrintS(" p2 = "); p_Write(strat->P.p2,strat->tailRing);PrintLn(); 1592 1575 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); 1595 1577 if(strat->tl<0) 1596 {PrintS(" Empty. ");PrintLn();}1578 {PrintS(" Empty.\n");} 1597 1579 else 1598 1580 for(int iii=0;iii<=strat->tl;iii++) 1599 1581 { 1600 PrintLn(); 1601 Print(" T[%d]:",iii); 1582 Print("\n T[%d]:",iii); 1602 1583 p_Write(strat->T[iii].p,strat->T->tailRing); 1603 1584 } … … 1679 1660 for(int iii=0;iii<=strat->Ll;iii++) 1680 1661 { 1681 PrintLn(); 1682 PrintS(" L[%d]:\n",iii); 1662 PrintS("\n L[%d]:\n",iii); 1683 1663 PrintS(" ");p_Write(strat->L[iii].p1,strat->tailRing); 1684 1664 PrintS(" ");p_Write(strat->L[iii].p2,strat->tailRing); … … 2096 2076 if(!TEST_OPT_RETURN_SB) 2097 2077 strat->syzComp = syzComp; 2098 if (TEST_OPT_SB_1 )2078 if (TEST_OPT_SB_1 2099 2079 #ifdef HAVE_RINGS 2100 if(!rField_is_Ring(currRing))2080 &&(!rField_is_Ring(currRing)) 2101 2081 #endif 2082 ) 2102 2083 strat->newIdeal = newIdeal; 2103 2084 if (rField_has_simple_inverse(currRing))
Note: See TracChangeset
for help on using the changeset viewer.