Forwarding to sage-devel. Ethan made petsc working with FEMhub (so it should work in Sage too).
Ondrej ---------- Forwarded message ---------- From: Ondrej Certik <[email protected]> Date: Thu, Feb 18, 2010 at 1:06 PM Subject: Re: [femhub] Re: adjusting versions and using/abusing FEMHUB To: [email protected] On Thu, Feb 18, 2010 at 12:55 PM, Ethan Coon <[email protected]> wrote: > You check your email too often... I can't upload that fast :D Look Hey, if someone is fixing the petsc problem, that has annoyed me for so long, I check my email super fast. :) > again. Yes, that's the petsc4py I used. > > femhub -i http://femhub.googlecode.com/files/petsc-3.0.0-p11-2.spkg > femhub -i http://femhub.googlecode.com/files/petsc4py.spkg Awesome, just checked it and it works! Thanks so much for this work! > > ./femhub > from pets4py import PETSc > m = PETSc.MAT().create() Ha, you didn't run either of those lines. :) You forgot "c" in the first line and in the second line, it's Mat, not MAT. So here are the working instructions: $ femhub -i http://femhub.googlecode.com/files/petsc-3.0.0-p11-2.spkg $ femhub -i http://femhub.googlecode.com/files/petsc4py.spkg $ femhub In [1]: from petsc4py import PETSc In [2]: m = PETSc.Mat().create() In [3]: m Out[3]: <petsc4py.PETSc.Mat object at 0x23391e0> Yes! Thanks again. Ondrej P.S. Do you know how Trilinos works with petsc? We also use trilinos solvers a lot in our group, so I am thinking what the best way is to use it in Python. I think trilinos also have their own python wrappers, but I've never used them. -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
