Data allocation#
Most of GooseFEM’s functions provided an interface to:
Allocate output arrays: names start with a upper-case letter. For example:
ue = GooseFEM::Vector::AsElement(disp);
Directly write to output arrays, without allocation them and copying them, by taking a pointer the externally allocated array as the last input argument(s): names start with a lower-case letter. For example:
GooseFEM::Vector::asElement(disp, ue);
Note
The Python API only provides option 1. Option 2 is only available in the C++ API.