Macaulay2 » Documentation
Packages » PALPInterface :: palpDmax
next | previous | forward | backward | up | index | toc

palpDmax -- which build of the PALP executables to use

Description

PALP is compiled with a fixed upper bound POLY_Dmax on the dimensions it can handle, and its make all-dims target builds one executable per bound: poly-4d.x, poly-5d.x, poly-6d.x, poly-11d.x, and poly.x, which there is the same build as the 6d one. The Homebrew and Ubuntu packages of PALP install them this way. This variable says which of them to prefer, and may be set to 4, 5, 6 or 11.

i1 : palpDmax

o1 = 11

The requirement PALP imposes is

POLY_Dmax >= dim N + codim - 1

so the default build is enough for palpMVertices and friends up to dimension six, while nef partitions run out much sooner: a five dimensional polytope in codimension three, or a six dimensional one in codimension two, already needs the 11d build. That is the main reason to have it.

i2 : ws = {10, 1, 1, 2, 2, 2, 2};
i3 : #palpNefPartitions(ws, 3, HodgeNumbers => false)

o3 = 1

If the build asked for is not installed, the plain poly.x (and so on) is used instead. In the Homebrew and Ubuntu packages that is the 6d build; a PALP compiled by hand has whatever bound it was compiled with. If the executable used cannot handle the input, PALP says so on its standard output while still exiting successfully; this is reported as an error, with PALP's message, the name of the executable used, and what to do.

Caveat

Changing this value selects a different executable, so any program already located is looked up again.

See also

For the programmer

The object palpDmax is an integer.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/PALPInterface.m2:1194:0.