[petsc-users] Matrix stored on many machines, filled by one process

Jed Brown jed at 59A2.org
Thu May 19 05:04:01 CDT 2011


On Thu, May 19, 2011 at 12:00, Bartłomiej W <bartlomiej.wach at yahoo.pl>wrote:

> This might be the problem, it occurs it is 32 bit, tried to compile with
> -m64 though  but got
>
> /usr/bin/ld: skipping incompatible
> .../petsc-3.1-p8/linux-gnu-c-debug/lib/libpetsc.a when searching for -lpetsc
>

You need to reconfigure PETSc using 64-bit compilers, then rebuild the
library.

For a diagonal matrix, you can call
MatSeqAIJSetPreallocation(Dinv,1,PETSC_NULL) immediately after
MatSetFromOptions() and it will use much less memory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110519/ef318ae0/attachment-0001.htm>


More information about the petsc-users mailing list