Use --memopt option when calling TOPCOM
authorDoug Torrance <dtorrance@debian.org>
Sat, 31 Dec 2022 15:43:00 +0000 (15:43 +0000)
committerDoug Torrance <dtorrance@debian.org>
Sat, 31 Dec 2022 15:43:00 +0000 (15:43 +0000)
Bug: https://github.com/Macaulay2/M2/issues/1707
Bug: https://github.com/Macaulay2/M2/issues/2712
Last-Update: 2022-12-15

Saves memory using caching to avoid example/test failures.

Gbp-Pq: Name topcom-memopt.patch

M2/Macaulay2/packages/Topcom.m2

index c8075d05dde55743615b52815b55e954ada5f7e2..81faaf731002d74dcd092e7c8aec2a9781ae635b 100644 (file)
@@ -317,7 +317,7 @@ topcomIsTriangulation(Matrix, List) := Boolean => opts -> (Vin, T) -> (
       << "Index sets do not correspond to full-dimensional simplices" << endl;
       return false;
    );
-   (outfile, errfile) := callTopcom("points2nflips --checktriang -v", {topcomPoints(V, Homogenize=>false), [], T });
+   (outfile, errfile) := callTopcom("points2nflips --checktriang --memopt -v", {topcomPoints(V, Homogenize=>false), [], T });
    not match("not valid", get errfile)
 )