Re: Using a different Matplotlib backend on a per-script basis

2019-03-13 Thread Michael J. Waters
Hi Christoph, Have you tried setting the backend at the start of your FiPy script like this?: importmatplotlib matplotlib.use('AGG') This won't make the changes system wide, only for the script. I think this will work since FiPy doesn't appear to deviate from the default rcparams setting

Re: Viewer Feature Request / Clarification

2018-03-20 Thread Michael J. Waters
2018, at 12:48 PM, Michael J. Waters wrote: Hi Kevin, If you are using the Matplotlib Viewers, you could just skip the Viewers and use Matplotlib directly. it's not hard to simply setup subplots using Matplotlib and it should be easy to get them to update the figure at each time step. Be

Re: Viewer Feature Request / Clarification

2018-03-19 Thread Michael J. Waters
Hi Kevin, If you are using the Matplotlib Viewers, you could just skip the Viewers and use Matplotlib directly.  it's not hard to simply setup subplots using Matplotlib and it should be easy to get them to update the figure at each time step. Best, -Mike On 3/19/18 11:35 AM, Kevin Blondin

Re: Diffusion coefficient with spline interpolation

2017-08-09 Thread Michael J. Waters
Hi Clara, Is your spline function returning a numpy array? I think what is happening is that FiPy is seeing it as a tensor diffusion coefficient rather than just a list of the values throughout your simulation. I'm a little rusty with FiPy these days, but I think you could so something like

Re: Memory leak using trilinos

2017-06-20 Thread Michael J. Waters
Hi Zhekai Deng, I had a similar problem. In the end, I just created check point files and restarted frequently. I did find that garbage collecting helped slow the leak and, interestingly, also sped up code execution for me. Best, -Mike On 6/20/17 10:39 AM, Zhekai Deng wrote: HI All, I

Re: python 3

2017-06-07 Thread Michael J. Waters
imminent, either. > >> On Jun 7, 2017, at 3:08 PM, Michael J. Waters >> wrote: >> >> Hi Daniel, >> >> So FiPy running in Python 3 won't have MPI based parallelism until >> PyTrilinos supports Python 3? >> >> Best, >> >> -Mike >

Re: python 3

2017-06-07 Thread Michael J. Waters
Hi Daniel, So FiPy running in Python 3 won't have MPI based parallelism until PyTrilinos supports Python 3? Best, -Mike On 6/7/17 2:01 PM, Daniel Wheeler wrote: > Hi Nils, > > FiPy is not written for Python 3, but it does work after applying > 2to3. However, only the Scipy solvers are then av