[petsc-users] DMPlex with spring elements

Jed Brown jed at jedbrown.org
Thu Sep 25 14:42:08 CDT 2014


Matthew Knepley <knepley at gmail.com> writes:

> On Thu, Sep 25, 2014 at 1:46 PM, Abhyankar, Shrirang G. <abhyshr at mcs.anl.gov
>> wrote:
>
>> You are right. The Jacobian for the power grid application is indeed
>> non-symmetric. Is that a problem for your application?
>>
>
> If you need a symmetric Jacobian, you can use the BC facility in
> PetscSection, which eliminates the
> variables completely. This is how the FEM examples, like ex12, work.

You can also use MatZeroRowsColumns() or do the equivalent
transformation during assembly (my preference).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140925/617ba29c/attachment.pgp>


More information about the petsc-users mailing list