TerraME / terrame

TerraME is a programming environment for spatial dynamical modelling
www.terrame.org
GNU Lesser General Public License v3.0
35 stars 13 forks source link

Model with non-named argument #2302

Open pedro-andrade-inpe opened 4 years ago

pedro-andrade-inpe commented 4 years ago

Fix the bug when one creates a model with a non-named argument, as in the example below:

Tub = Model{
     water = 40,
     period = 0,01,
     finalTime = 20,
     init = function(model)
            model.chart = Chart{
                target = model,
                select = "water"
            }

            model.timer = Timer{
                Event{action = model.chart},
          }
     end
}