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

HPA parallel function encapsulation problem #2359

Open avancinirodrigo opened 3 years ago

avancinirodrigo commented 3 years ago

It is not possible to encapsulate HPA:parallel() method on Lua. The parallel() receive parameter like this:

hpa:parallel("function_name(p1)", p1) 

The parameters can vary:

hpa:parallel("function_name(p1, p2)", p1, p2) 

That kind of argument cannot be handled on Lua, only in C++.

A possible solution is pass a table with the parameters, as:

hpa:parallel("function_name(p1, p2)", {p1, p2}) 

For that, it is necessary to adapt it on C++.

This issue blocks #2354.

@tiagogsc @pedro-andrade-inpe