Skip to content

Commit

Permalink
chg: make gfanlib.so compile
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes14 committed Feb 24, 2012
1 parent 77ced9e commit 90208a6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Singular/extra.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#endif

#ifdef HAVE_FANS
#include <kernel/gfan.h>
#include <callgfanlib/gfan.h>
#include <gfanlib/gfanlib.h>
#endif

Expand Down
3 changes: 2 additions & 1 deletion callgfanlib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ gfanlib:
g++ -DOM_DEBUG -DNDEBUG -o bbfan.o -fpic -I../ -c -g bbfan.cc
g++ -DOM_DEBUG -DNDEBUG -o bbpolytope.o -fpic -I../ -c -g bbpolytope.cc
g++ -DOM_DEBUG -DNDEBUG -o gfanlib.o -fpic -I../ -c -g gfanlib.cc
g++ -shared -o gfanlib.so bbcone.o bbfan.o bbpolytope.o gfanlib.o ../gfanlib/*.o -L/usr/local/lib -lcddgmp -lgmpxx
g++ -DOM_DEBUG -DNDEBUG -o gfan.o -fpic -I../ -c -g gfan.cc
g++ -shared -o gfanlib.so bbcone.o bbfan.o bbpolytope.o gfanlib.o gfan.o ../gfanlib/*.o -L/usr/local/lib -lcddgmp -lgmpxx
cp gfanlib.so ../Singular/gfanlib.so

clean:
Expand Down
6 changes: 3 additions & 3 deletions kernel/gfan.cc → callgfanlib/gfan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Compute the Groebner fan of an ideal
#include <kernel/kmatrix.h>
#include <kernel/GMPrat.h>

#include "ring.h" //apparently not needed
//#include "ring.h" //apparently not needed
#include <Singular/lists.h>
#include <kernel/prCopy.h>
#include <kernel/stairc.h>
Expand Down Expand Up @@ -61,7 +61,7 @@ Compute the Groebner fan of an ideal
#define USE_ZFAN
#endif

#include <gfan.h>
#include <callgfanlib/gfan.h>
using namespace std;

#define ivIsStrictlyPositive iv64isStrictlyPositive
Expand Down Expand Up @@ -287,7 +287,7 @@ static bool areEqual(facet *f, facet *s)
const int64vec* sNormal;
fNormal = f->getRef2FacetNormal();
sNormal = s->getRef2FacetNormal();
#include "intvec.h"
#include <kernel/intvec.h>
//Do not need parallelity. Too time consuming
// if(!isParallel(*fNormal,*sNormal))
// if(fNormal->compare(ivNeg(sNormal))!=0)//This results in a Mandelbug
Expand Down
2 changes: 1 addition & 1 deletion kernel/gfan.h → callgfanlib/gfan.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern int gfanHeuristic;
#ifndef USE_ZFAN
lists grfan(ideal inputIdeal, int heuristic, bool singleCone);
#else
#include <../gfanlib/gfanlib.h>
#include <gfanlib/gfanlib.h>
gfan::ZFan *grfan(ideal inputIdeal, int h, bool singleCone);
#endif
// lists grcone_by_intvec(ideal inputIdeal);
Expand Down
4 changes: 2 additions & 2 deletions kernel/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ CXXSOURCES=clapconv.cc \
pDebug.cc pInline2.cc pInline1.cc pInline0.cc \
pShallowCopyDelete.cc fast_mult.cc digitech.cc \
tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc \
f5c.cc F5cLists.cc ratgring.cc shiftgb.cc gfan.cc \
f5c.cc F5cLists.cc ratgring.cc shiftgb.cc \
linearAlgebra.cc longtrans.cc
CXXSOURCES2 = SingularBuilder.cpp

Expand Down Expand Up @@ -175,7 +175,7 @@ HEADERS=hutil.h idrec.h stairc.h ideals.h \
pInline2.h pInline1.h pInline0.h mmalloc.h \
pShallowCopyDelete.h \
p_Procs_Dynamic.h p_Procs_Impl.h p_Procs_Set.h \
p_Procs.h p_Procs_Static.h p_Mult_q.h gfan.h
p_Procs.h p_Procs_Static.h p_Mult_q.h

DISTFILES=${SOURCES} ${HEADERS} ${ESOURCES} \
Makefile.in \
Expand Down

0 comments on commit 90208a6

Please sign in to comment.