Without these functions, it was impossible to use these classes without leaking memory. Even with these functions, the memory is released only when these functions are explicitly called, as old-style Matlab classes have no notion of a destructor. Fixes #252.
9 lines
213 B
Matlab
9 lines
213 B
Matlab
function clear(d)
|
|
% CLEAR Delete the C++ Domain1D object.
|
|
% clear(d)
|
|
% :param d:
|
|
% Instance of class :mat:func:`Domain1D` (or another
|
|
% object that derives from Domain1D)
|
|
%
|
|
|
|
domain_methods(d.dom_id, 10);
|