[petsc-users] question about MatDuplicate_SeqAIJ_Inode

Barry Smith bsmith at mcs.anl.gov
Thu Jun 28 13:07:35 CDT 2012


On Jun 27, 2012, at 5:09 PM, Paul Mullowney wrote:

> Hi All,
> 
> In inode.c, the function
> 
> MatDuplicate_SeqAIJ_Inode(Mat A,MatDuplicateOption cpvalues,Mat *C)
> 
> resets the function pointers of A. Shouldn't the functions pointers of C be set instead since the data to C is being modified in this function.
> 
> -Paul

   Yes. I have fixed this in the petsc 3.3 repo and pulled the fixes into the petsc-dev repo.   The fix will also be in the next petsc 3.3 patch

   Barry




More information about the petsc-users mailing list