Skip to content

Instantly share code, notes, and snippets.

@stephanmg
Last active February 17, 2017 16:08
Show Gist options
  • Save stephanmg/1ba09a47171f469076403eccde97a41b to your computer and use it in GitHub Desktop.
Save stephanmg/1ba09a47171f469076403eccde97a41b to your computer and use it in GitHub Desktop.
Dummy parameter variation teaching example for ug4
-------------------------------------------------------------------------------
-- PARAMETERS
-------------------------------------------------------------------------------
minParamA = 0
maxParamA = 10
stepParamA = 1
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- RUN SETTINGS
-------------------------------------------------------------------------------
PATH_TO_BINARY="../ug4/bin/ugshell"
SCRIPT_NAME="merck_latest.lua"
SCRIPT_PARAMS="-saveTmax tmax_values"
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- PARAMETER VARIATION LOOP
-------------------------------------------------------------------------------
for i=minParamA, maxParamA, stepParamA do
os.execute(PATH_TO_BINARY .. " -ex " .. SCRIPT_NAME .. " " .. SCRIPT_PARAMS)
end
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment