[petsc-dev] Inconsistency in MatDestroy of shell matrices

Barry Smith bsmith at mcs.anl.gov
Mon Dec 12 08:05:14 CST 2011


On Dec 12, 2011, at 5:35 AM, Jose E. Roman wrote:

> The manpage of MatShellSetOperation states that "all user-provided functions should have the same calling sequence as the usual matrix interface routines", but this does not apply to MATOP_DESTROY due to the change MatDestroy(Mat)-->MatDestroy(Mat*) in 3.2.
> 
> One possible fix would be that all MatDestroy_* functions receive a pointer. Or alternatively warn about the exception in the manpage of MatShellSetOperation.

   I've fixed the manual page to clarify except for the MATOP_DESTROY

   Barry

> 
> Jose
> 




More information about the petsc-dev mailing list