summaryrefslogtreecommitdiff
path: root/math/gfan/files/patch-src_bergman.cpp
diff options
context:
space:
mode:
authorMikael Urankar <mikael@FreeBSD.org>2020-12-04 18:17:32 +0000
committerMikael Urankar <mikael@FreeBSD.org>2020-12-04 18:17:32 +0000
commitecbb96a53302f3f796b6f5b873b1c63f122c4d31 (patch)
tree431ff6fe6c11bdacbc5ea40ddfacd68170d1f7a6 /math/gfan/files/patch-src_bergman.cpp
parentnet-mgmt/zabbix52-agent: Add support for Modbus items (diff)
math/gfan: pass maintainership
o Update URL in MASTER_SITES to current address o Update MAINTAINER o Remove post-patch target as it is not needed - Use LDFLAGS instead of the non-standard variable ADDITIONALLINKOPTIONS. - Replace "${REINPLACE_CMD} 's,log2,gfan_log2,g'" by appropriate patch files as the command triggers multiple warnings. log2 is a macro defined in src/log.h. The name of this macro is in conflict with the function log2 from math.h. To avoid errors when compiling the code, the above renaming is necessary. Furthermore, PHB 4.4.3 strongly suggests using patch files instead of REINPLACE_CMD for static content. o Sort pkg-plist alphabetically as required by PHB 3.2.2 o Shorten pkg-descr and make it less technical PR: 250879 Submitted by: Moritz Schmitt (maintainer)
Notes
Notes: svn path=/head/; revision=556996
Diffstat (limited to 'math/gfan/files/patch-src_bergman.cpp')
-rw-r--r--math/gfan/files/patch-src_bergman.cpp117
1 files changed, 117 insertions, 0 deletions
diff --git a/math/gfan/files/patch-src_bergman.cpp b/math/gfan/files/patch-src_bergman.cpp
new file mode 100644
index 000000000000..091bd37c1f76
--- /dev/null
+++ b/math/gfan/files/patch-src_bergman.cpp
@@ -0,0 +1,117 @@
+--- src/bergman.cpp.orig 2017-06-20 14:47:37 UTC
++++ src/bergman.cpp
+@@ -79,15 +79,15 @@ BergmanFan bergmanRayIntersection(PolynomialSet const
+ // fprintf(Stderr,"---------------------------------------------------------\n");
+
+
+- log2 cerr<<"BBLABL";
++ gfan_log2 cerr<<"BBLABL";
+ for(IntegerVectorList::const_iterator i=rays.begin();i!=rays.end();i++)
+ {
+- log2 cerr<<"1";
++ gfan_log2 cerr<<"1";
+ PolynomialSet g=idealGroebnerBasis;
+ g=GE_groebnerBasis(g,WeightReverseLexicographicTermOrder(*i),true,false);//Set to true?
+ // buchberger(&g,WeightReverseLexicographicTermOrder(*i));
+ PolynomialSet cg=initialFormsAssumeMarked(g,*i);
+- log2 cerr<<"2";
++ gfan_log2 cerr<<"2";
+
+ bool inList=false;
+ for(BergmanFan::MaximalConeList::const_iterator j=bfan.cones.begin();j!=bfan.cones.end();j++)
+@@ -98,14 +98,14 @@ BergmanFan bergmanRayIntersection(PolynomialSet const
+ break;
+ }
+ }
+- log2 cerr<<"3";
++ gfan_log2 cerr<<"3";
+ if(!inList)
+ {
+ bfan.cones.push_back(BergmanFan::MaximalCone(cg,g,true,maximalConeLabel++));
+ }
+- log2 cerr<<"4";
++ gfan_log2 cerr<<"4";
+ }
+- log2 cerr<<"BBLAB END";
++ gfan_log2 cerr<<"BBLAB END";
+ // AsciiPrinter temp(Stderr);
+ // bfan.print(temp);
+ return bfan;
+@@ -631,7 +631,7 @@ BergmanFan bergman(PolynomialSet const &coneGroebnerBa
+ symmetry checks were algebraic and not
+ geometric*/
+ // assert(i->idealGroebnerBasis.isMarked());
+- log2 cerr<<"8";
++ gfan_log2 cerr<<"8";
+
+ PolynomialSet g2(theRing);
+ WeightTermOrder termOrder(termorderWeight(initialIdeal));
+@@ -639,14 +639,14 @@ BergmanFan bergman(PolynomialSet const &coneGroebnerBa
+ for(PolynomialSet::const_iterator j=i->idealGroebnerBasis.begin();j!=i->idealGroebnerBasis.end();j++)
+ g2.push_back(divisionLift(*j, initialIdeal, current.idealGroebnerBasis, termOrder));
+ assert(g2.isMarked());
+- log2 cerr<<"9";
++ gfan_log2 cerr<<"9";
+
+
+ if(1)
+ {
+- log2 cerr << "AUTOREDUCTION";
++ gfan_log2 cerr << "AUTOREDUCTION";
+ autoReduce(&g2,LexicographicTermOrder());
+- log2 cerr << "AUTOREDUCTION END"<<endl;
++ gfan_log2 cerr << "AUTOREDUCTION END"<<endl;
+ }
+ else
+ {
+@@ -655,17 +655,17 @@ BergmanFan bergman(PolynomialSet const &coneGroebnerBa
+ log0 cerr << "RESTRICTED AUTOREDUCTION END"<<endl;
+ }
+ ConeOrbit tempConeOrbit(*symmetryGroup,i->coneGroebnerBasis,g2,-1);
+- log2 cerr<<"0";
++ gfan_log2 cerr<<"0";
+ IntegerVector relIntFacetVector=tempConeOrbit.getStableRay();
+
+- log2 cerr<<"A";
++ gfan_log2 cerr<<"A";
+
+ int label=-1;
+ IntegerVector labelPermutation;
+ if(!active.containsAndMark(relIntFacetVector,relIntRidgeVector,&label,&labelPermutation))
+ // if(!active.containsAndMark(i->coneGroebnerBasis,initialIdeal,&label,&labelPermutation))
+ {
+- log2 cerr<<"B";
++ gfan_log2 cerr<<"B";
+ if(!ret.contains(i->coneGroebnerBasis))
+ {
+ label=maximalConeLabel++;
+@@ -680,13 +680,13 @@ BergmanFan bergman(PolynomialSet const &coneGroebnerBa
+ {
+ assert(0);//Can this ever happen? REMOVE JAN 2009
+ }
+- log2 cerr<<"C";
++ gfan_log2 cerr<<"C";
+ }
+- log2 cerr<<"D";
++ gfan_log2 cerr<<"D";
+ ret.codimensionOneCones.back().incidenceList.push_back(label);
+- log2 cerr<<"E";
++ gfan_log2 cerr<<"E";
+ ret.codimensionOneCones.back().incidencePermutationList.push_back(labelPermutation);
+- log2 cerr<<"F";
++ gfan_log2 cerr<<"F";
+ }
+ }
+ // else
+@@ -898,9 +898,9 @@ PolyhedralFan BergmanFan::toPolyhedralFan()const
+ //PolyhedralCone c1(wallInequalities(i->idealGroebnerBasis),wallInequalities(i->coneGroebnerBasis));
+ // PolyhedralCone c1(wallFlipableNormals(i->idealGroebnerBasis,false),wallInequalities(i->coneGroebnerBasis),n);
+ PolyhedralCone c1=i->theCone;
+- log2 fprintf(Stderr,"Cononicalising...\n");
++ gfan_log2 fprintf(Stderr,"Cononicalising...\n");
+ c1.canonicalize();
+- log2 fprintf(Stderr,"... done canonicalising...\n");
++ gfan_log2 fprintf(Stderr,"... done canonicalising...\n");
+ // fprintf(Stderr,"a\n");
+ // for(SymmetryGroup::ElementContainer::const_iterator j=symmetryGroup.elements.begin();j!=symmetryGroup.elements.end();j++)
+ // {