[petsc-users] nonzero prescribed boundary condition

Barry Smith bsmith at mcs.anl.gov
Mon May 9 20:31:09 CDT 2011


   In petsc-dev http://www.mcs.anl.gov/petsc/petsc-as/developers/index.html we have modified the calling sequence for MatZeroRows() so that it can automatically adjust the appropriate right hand side values for the zeroed rows to support zero or non-zero prescribed boundary conditions easily.

    Barry

On May 9, 2011, at 8:18 PM, Tian(ICT) wrote:

> Dear all,
> 
> I got this question long ago and searched the prior posting but did not find the solution.
> The question is about nonzero prescribed boundary condition.
> My understanding is that MatZeroRows() works only for zero prescribed value, not non-zero value.
> For the non-zero values, we have to remove the rows associated with the boundary, but this
> will lead to a zero dignal and accordingly the rows in r.h.s should also be removed.
> My question is that does MatZeroRows() also works for nonzero prescribed boundary and if so how to do it simply?
> 
> Rong 



More information about the petsc-users mailing list