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>
