Last active
February 17, 2017 16:08
-
-
Save stephanmg/1ba09a47171f469076403eccde97a41b to your computer and use it in GitHub Desktop.
Dummy parameter variation teaching example for ug4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------- | |
-- 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