Changeset 96e408 in git


Ignore:
Timestamp:
Mar 18, 2011, 8:29:55 AM (12 years ago)
Author:
Martin Monerjan
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
2c27b13aa751a2f194c05d380d39be638b834d19
Parents:
bb08d5b1bb68c30edc7e32f68fe823249cbc3c63
Message:
NDEBUG
removed unused #includes


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

Legend:

Unmodified
Added
Removed
  • kernel/gfan.cc

    rbb08d5 r96e408  
    1313#include <kernel/kstd1.h>
    1414#include <kernel/kutil.h>
    15 // #include "int64vec.h"
    1615#include <kernel/polys.h>
    1716#include <kernel/ideals.h>
     
    2019
    2120#include "ring.h"       //apparently not needed
    22 // #include "structs.h"
    2321#include <Singular/lists.h>
    2422#include <kernel/prCopy.h>
    2523#include <kernel/stairc.h>
    26 // #include <bitset>
    2724#include <fstream>      //read-write cones to files
    28 // #include <gmp.h>
    2925#include <string>
    3026#include <sstream>
    31 // #include <time.h>
    3227#include <stdlib.h>
    3328#include <assert.h>
    34 // #include <Singular/bbfan.h>
    35 // #include <Singular/bbcone.h>
    3629#include <gfanlib/gfanlib.h>
    3730
     
    6154// #define gfanp
    6255#ifdef gfanp
    63 #include <sys/time.h>
    64 #include <iostream>
    65 #endif
    66 
     56  #include <sys/time.h>
     57  #include <iostream>
     58#endif
     59
     60//NOTE DO NOT REMOVE THIS
    6761#ifndef SHALLOW
    68 #define SHALLOW
     62  #define SHALLOW
    6963#endif
    7064
    7165#ifndef USE_ZFAN
    72 #define USE_ZFAN
     66  #define USE_ZFAN
    7367#endif
    7468
     
    195189void facet::shallowDelete()
    196190{
    197 #ifdef gfan_DEBUG
     191#ifndef NDEBUG
    198192//      printf("shallowdel@UCN %i\n", this->getUCN());
    199193#endif
     
    213207facet::~facet()
    214208{
    215 #ifdef gfan_DEBUG
     209#ifndef NDEBUG
    216210//      printf("~facet@UCN %i\n",this->getUCN());
    217211#endif
     
    989983//      delete gamma;
    990984        int offset=0;//needed for correction of redRowsArray[ii]
    991 #ifdef gfan_DEBUG
     985#ifndef NDEBUG
    992986        printf("Removed %i of %i in preprocessing step\n",num_elts,ddineq->rowsize);
    993987#endif
     
    11211115                                fAct->setFacetNormal(load);
    11221116                                fAct->setUCN(this->getUCN());
    1123 #ifdef gfan_DEBUG
     1117#ifndef NDEBUG
    11241118                                printf("Marking facet (");load->show(1,0);printf(") as non flippable\n");               
    11251119#endif
     
    16991693        int64vec *fNormal;// = new int64vec(this->numVars);     //facet normal, check for parallelity                   
    17001694        fNormal = f->getFacetNormal();  //read this->fNormal;
    1701 #ifdef gfan_DEBUG
     1695#ifndef NDEBUG
    17021696//      std::cout << "running gcone::flip" << std::endl;
    17031697        printf("flipping UCN %i over facet",this->getUCN());
     
    17161710        computeInv(gb,initialForm,*fNormal);
    17171711
    1718 #ifdef gfan_DEBUG
     1712#ifndef NDEBUG
    17191713/*      cout << "Initial ideal is: " << endl;
    17201714        idShow(initialForm);
     
    18341828                        for (int kk=1;kk<=this->numVars;kk++)
    18351829                        {
    1836 #ifdef gfan_DEBUG
     1830#ifndef NDEBUG
    18371831//                              cout << src_ExpV[kk] << "," << dst_ExpV[kk] << endl;
    18381832#endif
     
    18451839                        {
    18461840                                markingsAreCorrect=TRUE; //everything is fine
    1847 #ifdef gfan_DEBUG
     1841#ifndef NDEBUG
    18481842//                              cout << "correct markings" << endl;
    18491843#endif
     
    20092003        test|=Sy_bit(OPT_REDSB);
    20102004        test|=Sy_bit(OPT_REDTAIL);
    2011 #ifdef gfan_DEBUG
     2005#ifndef NDEBUG
    20122006//      test|=Sy_bit(6);        //OPT_DEBUG
    20132007#endif
     
    20372031//      idDelete(&dstRing_I);
    20382032        f->flipRing=rCopy(dstRing);     //store the ring on the other side
    2039 #ifdef gfan_DEBUG
     2033#ifndef NDEBUG
    20402034        printf("Flipped GB is UCN %i:\n",counter+1);
    20412035        idDebugPrint(dstRing_I);
     
    20742068        const int64vec *fNormal;
    20752069        fNormal = f->getRef2FacetNormal();/*->getFacetNormal();*/       //read this->fNormal;
    2076 #ifdef gfan_DEBUG
     2070#ifndef NDEBUG
    20772071        printf("flipping UCN %i over facet(",this->getUCN());
    20782072        fNormal->show(1,0);
     
    22682262                }//while
    22692263//              omFree(v);
    2270 #ifdef gfan_DEBUG
     2264#ifndef NDEBUG
    22712265//              cout << "Initial Form=";                               
    22722266//              pWrite(initialFormElement[ii]);
     
    25052499        if (err!=dd_NoError){WerrorS("Error during dd_Matrix2LP in gcone::interiorPoint");}
    25062500        if (lp==NULL){WerrorS("LP is NULL");}
    2507 #ifdef gfan_DEBUG
     2501#ifndef NDEBUG
    25082502//                      dd_WriteLP(stdout,lp);
    25092503#endif 
     
    25112505        lpInt=dd_MakeLPforInteriorFinding(lp);
    25122506        if (err!=dd_NoError){WerrorS("Error during dd_MakeLPForInteriorFinding in gcone::interiorPoint");}
    2513 #ifdef gfan_DEBUG
     2507#ifndef NDEBUG
    25142508//                      dd_WriteLP(stdout,lpInt);
    25152509#endif                 
     
    25242518        lpSol=dd_CopyLPSolution(lpInt);
    25252519//      if (err!=dd_NoError){WerrorS("Error during dd_CopyLPSolution");}
    2526 #ifdef gfan_DEBUG
     2520#ifndef NDEBUG
    25272521        printf("Interior point: ");
    25282522        for (int ii=1; ii<(lpSol->d)-1;ii++)
     
    25562550                mpq_clear(product);
    25572551        }
    2558 #ifdef gfan_DEBUG
     2552#ifndef NDEBUG
    25592553//                      iv.show();
    25602554//                      cout << endl;
     
    25912585// void gcone::interiorPoint2()
    25922586// {//idPrint(this->gcBasis);
    2593 // #ifdef gfan_DEBUG
     2587// #ifndef NDEBUG
    25942588//      if(this->ivIntPt!=NULL)
    25952589//              WarnS("Interior point already exists - ovrewriting!");
     
    30002994        rAct = currRing;
    30012995        int UCNcounter=gcAct->getUCN();
    3002 #ifdef gfan_DEBUG
     2996#ifndef NDEBUG
    30032997        printf("NoRevs\n");
    30042998        printf("Facets are:\n");
     
    31613155                        //gcTmp->ddFacets should not be needed anymore, so
    31623156                        dd_FreeMatrix(gcTmp->ddFacets);
    3163 #ifdef gfan_DEBUG
     3157#ifndef NDEBUG
    31643158//                      gcTmp->showFacets(1);
    31653159#endif
    31663160                        /*add facets to SLA here*/
    31673161#ifdef SHALLOW
    3168   #ifdef gfan_DEBUG
     3162  #ifndef NDEBUG
    31693163                        printf("fActUCN before enq2: %i\n",fAct->getUCN());
    31703164  #endif
    31713165                        facet *tmp;
    31723166                        tmp=gcTmp->enqueue2(SearchListRoot);
    3173   #ifdef gfan_DEBUG
     3167  #ifndef NDEBUG
    31743168                        printf("\nheadUCN=%i\n",tmp->getUCN());
    31753169                        printf("fActUCN after enq2: %i\n",fAct->getUCN());
     
    31873181                                rDelete(gcTmp->baseRing);
    31883182                        }                       
    3189 #ifdef gfan_DEBUG
     3183#ifndef NDEBUG
    31903184                        if(SearchListRoot!=NULL)
    31913185                                showSLA(*SearchListRoot);
     
    35003494                                removalOccured=FALSE;
    35013495                                slNormal = slAct->getFacetNormal();
    3502 #ifdef gfan_DEBUG
     3496#ifndef NDEBUG
    35033497                                printf("Checking facet (");fNormal->show(1,1);printf(") against (");slNormal->show(1,1);printf(")\n");
    35043498#endif                         
     
    35313525//                                              deleteMarker=NULL;
    35323526                                        }
    3533 #ifdef gfan_DEBUG
     3527#ifndef NDEBUG
    35343528                                        printf("Removing (");fNormal->show(1,1);printf(") from list\n");
    35353529#endif
     
    35533547                        if(removalOccured==FALSE)
    35543548                        {
    3555 #ifdef gfan_DEBUG
     3549#ifndef NDEBUG
    35563550//                              cout << "Adding facet (";fNormal->show(1,0);cout << ") to SLA " << endl;
    35573551#endif
     
    36803674                        {
    36813675                                removalOccured=FALSE;
    3682 #ifdef gfan_DEBUG
     3676#ifndef NDEBUG
    36833677        printf("Checking facet (");fAct->fNormal->show(1,1);printf(") against (");slAct->fNormal->show(1,1);printf(")\n");
    36843678#endif 
     
    37163710                                        removalOccured=TRUE;
    37173711                                        gcone::lengthOfSearchList--;
    3718 #ifdef gfan_DEBUG
     3712#ifndef NDEBUG
    37193713printf("Removing (");fAct->fNormal->show(1,1);printf(") from list\n");
    37203714#endif
Note: See TracChangeset for help on using the changeset viewer.