[petsc-users] Values of a column in a parallel matrix
Jed Brown
jed at jedbrown.org
Mon Mar 20 21:40:57 CDT 2017
"Daralagodu Dattatreya Jois, Sathwik Bharadw" <sdaralagodudatta at wpi.edu>
writes:
> I am using AIJ matrix to solve Laplace problem in finite element
> framework. To apply Neumann boundary conditions I need to obtain
> values of first and last few columns and subtract it with the
> corresponding right hand side vector. I understand that
> MatGetColumnVector and MatGetValues are not collective. Is there any
> other alternative petsc calls to achieve this in parallel?
Inhomogeneous Neumann conditions are normally applied by integration
over the boundary. But if you need a linear combination of some columns
of the matrix, that's a MatMult.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170320/9ee0dc77/attachment.pgp>
More information about the petsc-users
mailing list