[petsc-users] integrate petsc to java

Matthew Knepley knepley at gmail.com
Wed Jul 4 07:55:05 CDT 2012

On Wed, Jul 4, 2012 at 12:48 AM, hbui <hgbk2008 at gmail.com> wrote:

> Hi
> I have a finite element program written in Java to perform analysis in
> structural application. I want to integrate petsc into my program to
> exploit the distributed parallel solver (with various preconditioners). How
> could i do that? i think about using swig to generate Java interface but
> i'm not clear on which should be the starting point.

The first step is passing arrays of doubles between PETSc and Java. This
will allow you to fill up Vec and Mat objects.
Once that is done, you only need to wrap a few solvers functions.


> Regards,
> Giang Bui

What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120704/5c62d0b5/attachment.html>

More information about the petsc-users mailing list