TerraME / terrame

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

Explict call to the terralib:finalize() #883

Closed avancinirodrigo closed 8 years ago

avancinirodrigo commented 8 years ago

TerraME must call finalize() expecitly. Investigate how make this transparently for user.

pedro-andrade-inpe commented 8 years ago

Add to terrame.lua _Gtme.execute(arguments) in the end of this function.

avancinirodrigo commented 8 years ago

@pedro-andrade-inpe, this solution works in normal execution, but in -testnot.

pedro-andrade-inpe commented 8 years ago

-test calls os.exit() explicitly in the end. Remove terralib also in terrame.lua, in the end of

elseif arg == "-test" then

just before os.exit().