Dear all,
Do I need to delete index_set from MatNestGetISs? I get my index_set from
MatNestGetISs(P, index_set, NULL); //P is a nest matrix of 3x3
When I delete index_set later
for (int i=0; i<3; i++)
{
ISDestroy(&index_set[i]);
}
It gives me error
[0]PETSC ERROR: ---
From the manual page: "The reference count is not increased on the returned
ISs", so you should not delete them
Note that the rule in PETSc is items obtained with a call that contains the
work Create must destroy the object, if it contains Get then it should not
destroy the object.
Ba