[petsc-users] integrate petsc to java

Barry Smith bsmith at mcs.anl.gov
Wed Jul 4 11:58:08 CDT 2012


   Someone has done this for you:  http://jpetsctao.zwoggel.net/    good luck.

    Barry
On Jul 4, 2012, at 7:55 AM, Matthew Knepley wrote:

> 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.
> 
>    Matt
>  
> 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



More information about the petsc-users mailing list