Skip to content

Commit

Permalink
Small updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-andrade-inpe committed Jul 17, 2017
1 parent 12b7019 commit 6c06302
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/base/tests/functional/basics/Model.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ title function
type_ string [Tube]
water number [200]
]])
local warning_func = function()
warning_func = function()
t = Tube{
simulationSteps = 20,
observingStep = 0.7,
Expand Down
4 changes: 2 additions & 2 deletions src/lua/terrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,12 @@ local function graphicalInterface(package, modelName)
local data = _Gtme.getLuaFile(_Gtme.packageInfo(package).path..s.."lua"..s..modelName..".lua")
local model

forEachElement(data, function(idx, value, mtype)
forEachElement(data, function(_, value, mtype)
if mtype == "Model" then
model = value
end
end)

_Gtme.configure(model, modelName, package)
end

Expand Down
4 changes: 1 addition & 3 deletions test/run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,10 @@ forEachOrderedElement(commands, function(idx, group)

local text = "Test executed in "..difference.." seconds"

if difference > 30 then
if difference > 60 then
_Gtme.print("\027[00;37;41m"..text.."\027[00m")
elseif difference > 10 then
_Gtme.print("\027[00;37;43m"..text.."\027[00m")
elseif difference > 1 then
_Gtme.print("\027[00;37;42m"..text.."\027[00m")
end
end

Expand Down

0 comments on commit 6c06302

Please sign in to comment.