Thank you for adding it. I shamelessly stole the code from elsewhere in fipy.
Best Regards, Angus Hendrick On Tue, Jan 13, 2009 at 3:57 PM, Daniel Wheeler <[email protected]>wrote: > > I just committed the tools/inline/__init__.py change patch to trunk > and it seems to work fine. Thanks! > > On Sat, Dec 27, 2008 at 4:51 AM, Angus Hendrick > <[email protected]> wrote: > > Hello: > > > > Attached is a suggested revision to the fipy/tools/inline/__init__.py > file. > > The change creates another way to invoke inline using an environment > > variable called FIPY_INLINE, which can be set to "true" or "false". I > use > > fipy in a multi-core environment to run parallel jobs using ipython. I > > don't know how to control sys.argv on the different engines, but they can > > all see the environment variables, so this works. > > > > Also, I have noted that the pysparse solvers can sometimes produce bad > > results for diffusion problems with variable properties, but the trilinos > > LinearGMRESSolver has been robust and about 2-4x as fast. > > > > Finally, for anyone else using Trilinos 9.0.1 with Python 2.5 (or later) > in > > a 64-bit machine where dl.so is not built, the first try clause in the > > __init__.py file for PyTrilinos needs to have the two exceptions grouped > > with parenthesis, as the two exceptions are not implicitly tupled. (I > sent > > this to the Trilinos folks too). > > > > Best Regards, > > Angus Hendrick > > > > > > > > -- > Daniel Wheeler > >
