Changeset b4fbb8 in git for kernel/GBEngine/kutil.cc


Ignore:
Timestamp:
Oct 7, 2015, 2:03:45 PM (8 years ago)
Author:
Adi Popescu <adi_popescum@…>
Branches:
(u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
Children:
8a14df4e24d2bd82a168c3ed70f92659b0bd2442
Parents:
c1c2ccdce7a50ab28491ceb066ea5faa1f7e6e87
Message:
Anne's idea solved - now trying Yue's Bug
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    rc1c2ccd rb4fbb8  
    7777#endif
    7878
    79 #define ADIDEBUG 1
     79#define ADIDEBUG 0
    8080
    8181denominator_list DENOMINATOR_LIST=NULL;
     
    16361636  //p_Test(m1,strat->tailRing);
    16371637  //p_Test(m2,strat->tailRing);
    1638   if(!redMoraNF)
     1638  /*if(!redMoraNF)
    16391639  {
    16401640    while (! kCheckStrongCreation(atR, m1, i, m2, strat) )
     
    16481648      k_GetStrongLeadTerms(p, si, currRing, m1, m2, gcd, strat->tailRing);
    16491649    }
    1650   }
     1650  }*/
    16511651  pSetCoeff0(m1, s);
    16521652  pSetCoeff0(m2, t);
     
    17191719  else
    17201720  {
    1721     enterT(h, strat);
     1721    enterT(h, strat,strat->tl+1);
    17221722  }
    17231723  //#if 1
     
    40744074  PrintS("\nEnter superenterpairs\n");
    40754075  int iii = strat->Ll;
     4076  printf("\nstrat->tl = %i\n",strat->tl);
    40764077#endif
    40774078  assume (rField_is_Ring(currRing));
     
    40954096    }
    40964097  }
     4098  printf("\nstrat->tl = %i\n",strat->tl);
    40974099  iii = strat->Ll;
    40984100#endif
     
    41144116    }
    41154117  }
     4118  printf("\nstrat->tl = %i\n",strat->tl);
    41164119  iii = strat->Ll;
    41174120#endif
     
    41334136    }
    41344137  }
     4138  printf("\nstrat->tl = %i\n",strat->tl);
    41354139  PrintS("\nEnd of superenterpairs\n");
    41364140#endif
    41374141  clearSbatch(h, k, pos, strat);
     4142#if ADIDEBUG
     4143  printf("\nstrat->tl = %i\n",strat->tl);
     4144#endif
    41384145}
    41394146#endif
     
    79737980  }
    79747981#endif
    7975 #ifdef HAVE_RINGS
    7976   if(rField_is_Ring(currRing) && !n_IsUnit(p.p->coef, currRing->cf))
    7977   {
    7978     #if ADIDEBUG_NF
    7979     printf("\nDas ist p:\n");pWrite(p.p);
    7980     #endif
    7981     for(i=strat->tl;i>=0;i--)
    7982     {
    7983       if(strat->T[i].ecart <= p.ecart && pLmDivisibleBy(strat->T[i].p,p.p))
    7984       {
    7985         #if ADIDEBUG_NF
    7986         printf("\nFound one: %i\n",i);pWrite(strat->T[i].p);
    7987         #endif
    7988         enterOneStrongPoly(i,p.p,p.ecart,0,strat,0 , TRUE);
    7989       }
    7990     }
    7991   }
    7992   /*
    7993   printf("\nThis is T:\n");
    7994   for(i=strat->tl;i>=0;i--)
    7995   {
    7996     pWrite(strat->T[i].p);
    7997   }
    7998   //getchar();*/
    7999 #endif
     7982
    80007983#ifdef HAVE_TAIL_RING
    80017984  if (currRing!=strat->tailRing)
     
    80368019  }
    80378020  strat->T[atT] = (TObject) p;
     8021  #if ADIDEBUG
     8022  printf("\nenterT: add in position %i\n",atT);
     8023  pWrite(p.p);
     8024  #endif
     8025  printf("\nenterT: neue hingefÃŒgt: lÀnge = %i, ecart = %i\n",p.length,p.ecart);
    80388026
    80398027  if (strat->tailRing != currRing && pNext(p.p) != NULL)
     
    80478035  assume(p.sev == 0 || pGetShortExpVector(p.p) == p.sev);
    80488036  strat->sevT[atT] = (p.sev == 0 ? pGetShortExpVector(p.p) : p.sev);
     8037  #ifdef HAVE_RINGS
     8038  if(rField_is_Ring(currRing) && !n_IsUnit(p.p->coef, currRing->cf))
     8039  {
     8040    #if ADIDEBUG_NF
     8041    printf("\nDas ist p:\n");pWrite(p.p);
     8042    #endif
     8043    for(i=strat->tl;i>=0;i--)
     8044    {
     8045      if(strat->T[i].ecart <= p.ecart && pLmDivisibleBy(strat->T[i].p,p.p))
     8046      {
     8047        #if ADIDEBUG_NF
     8048        printf("\nFound one: %i\n",i);pWrite(strat->T[i].p);
     8049        #endif
     8050        enterOneStrongPoly(i,p.p,p.ecart,0,strat,0 , TRUE);
     8051      }
     8052    }
     8053  }
     8054  /*
     8055  printf("\nThis is T:\n");
     8056  for(i=strat->tl;i>=0;i--)
     8057  {
     8058    pWrite(strat->T[i].p);
     8059  }
     8060  //getchar();*/
     8061#endif
    80498062  kTest_T(&(strat->T[atT]));
    80508063}
Note: See TracChangeset for help on using the changeset viewer.