This part of the SciLab GetFEM++ documentation is to be adapted (comes frome the | MatLab GetFEM++ one).
The GetFEM++ toolbox is just a convenient interface to the GetFEM++ library: you must have a working GetFEM++ installed on your computer. All the functions of GetFEM++ are prefixed by gf_ (hence typing gf_ at the SciLab prompt and then pressing the <tab> key is a quick way to obtain the list of getfem functions).
Various “objects” can be manipulated by the GetFEM++ toolbox, see fig. GetFEM++ objects hierarchy.. The MESH and MESHFEM objects are the two most important objects.
The GetFEM++ toolbox uses its own memory management. Hence GetFEM++ objects are not cleared when a:
>> clear all
is issued at the SciLab prompt, but instead the function:
>> gf_workspace('clear all')
should be used. The various GetFEM++ object can be accessed via handles (or descriptors), which are just SciLab structures containing 32-bits integer identifiers to the real objects. Hence the SciLab command:
>> whos
does not report the memory consumption of GetFEM++ objects (except the marginal space used by the handle). Instead, you should use:
>> gf_workspace('stats')
There are two kinds of GetFEM++ objects:
The objects MESH and MESHFEM are not independent: a MESHFEM object is always linked to a MESH object, and a MESH object can be used by several MESHFEM objects. Hence when you request the destruction of a MESH object, its destruction might be delayed until it is not used anymore by any MESHFEM (these objects waiting for deletion are listed in the anonymous workspace section of gf_workspace('stats')).