[petsc-users] Differencing parameter
    Jed Brown 
    jed at 59A2.org
       
    Tue Mar 29 02:35:14 CDT 2011
    
    
  
On Tue, Mar 29, 2011 at 08:07, Kontsantinos Kontzialis <
ckontzialis at lycos.com> wrote:
>  When should I call MatMFFDGeth in order to get the differencing parameter?
> I call it after SNESSolve but I get zero for h.
>
I suspect you are calling this function on a matrix of the wrong type (and,
because this function does not check types properly, returning nonsense
bytes that happen to represent a very small floating point value). Try
calling
    ierr = SNESGetJacobian(snes,&mat,0,0,0);CHKERRQ(ierr);
    ierr = MatMFFDGetH(mat,&h);CHKERRQ(ierr);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110329/568b9ad2/attachment.htm>
    
    
More information about the petsc-users
mailing list