Hi Bill, Sorry for taking so long to respond. I tried running the scripts again in the different conda environments (with and without Trilinos) and do indeed get the same error as you. I probably didn't switch environments properly when I tried this before. Anyway, I think I've fixed the issue, the changes I made are
http://matforge.org/fipy/changeset/b7246011a00584b5e6757404b2b51ca47d71004a/fipy/ and the ticket http://matforge.org/fipy/ticket/669 You'll have to fetch from the main repository and checkout the ticket669-pickle_comm branch to got these changes if they are important to you. Cheers, Daniel On Mon, Aug 11, 2014 at 3:54 PM, Seufzer, William J. (LARC-D307) < bill.seuf...@nasa.gov> wrote: > Thanks Dan, > > I ran the example codes that you provided and still have the issue. I'm > running the writer code on a cluster with PBS (that is, I can't just invoke > MPI from the command line) to create the 'dump.gz' file with 16 cores. > > I then copy the file to the desktop and when I try to open it I get: > > therm: python fipyreaddump.py > Traceback (most recent call last): > File "fipyreaddump.py", line 4, in <module> > v = fp.tools.dump.read('data.dump') > File > "/Users/wseufzer/anaconda/lib/python2.7/site-packages/FiPy-3.1-py2.7.egg/fipy/tools/dump.py", > line 151, in read > return unpickler.load() > File > "/Users/wseufzer/anaconda/lib/python2.7/site-packages/FiPy-3.1-py2.7.egg/fipy/tools/comms/mpi4pyCommWrapper.py", > line 55, in __setstate__ > from PyTrilinos import Epetra > ImportError: No module named PyTrilinos > > It appears that in pickling/dumping the cell variable information is > stored regarding PyTrilinos. > > I am successful if I set environment variable FIPY_SOLVERS to 'scipy' on > the cluster, run the code with one core, and then bring that file to the > desktop machine. I'm enclosing an example file with nx=100 and ny=10, > written on the cluster. > > > > Cheers, > > Bill > -- Daniel Wheeler
_______________________________________________ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]