Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions modules/m3/applications/ampl/20260723.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
whatis("AMPL")
family("ampl")
conflict("ampl")

local home = os.getenv("HOME")
local tmp_hostname = os.getenv('HOSTNAME')
local lic_path = pathJoin(pathJoin(pathJoin(home, '.ampl'), tmp_hostname), 'ampl.lic')

setenv("AMPL_LICFILE", lic_path)
setenv("AMPLKEY_RUNTIME_DIR", pathJoin(home, '.ampl'))

append_path("PATH", "/hpc/m3/apps/ampl/ampl_20260723")

local activate_cmd = '/hpc/m3/apps/ampl/ampl_20260723/ampl < /hpc/m3/apps/ampl/ampl_20260723/activate_key'
execute{cmd=activate_cmd, modeA={"load"}}

help([[Name: AMPL
Version: ampl_20260723
Website: https://ampl.com/
License Owners : Eli Olinick

AMPL is an algebraic modeling language to describe and solve high-complexity problems for large-scale mathematical computing.
]])