> Just run this script: > > from PyTrilinos import Epetra > Nproc = Epetra.PyComm().NumProc() > print Epetra.PyComm().MyPID() > print Nproc > > with: > > mpirun -np 2 script.py >
Very nice -- thanks. And, yes, our PyTrilinos was configured for and working in parallel. I was mistaken about needing any MPI symbols in libpytrilinos, for version 9.0.3. They *are* present in each of the other libXXX.so libs, as well as in the _XXX.so libs down in the [trilinos-release]/lib/python2.6/site-packages/PyTrilinos area. As Dr. Guyer pointed out, they are also pre- sent in his build of the version 10 libpytrilinos. Also, hiding in the [trilinos-build]/packages/PyTrilinos/example branch there is piece of code (exEpetra_Comm.py) that does a very similar test, using Epetra.PyComm() and MyPID(), but it is not nearly as elegantly simple as Dr. Wheeler's. I nominate this test for inclusion in the FiPy manual, as a quick way to verify that Trilinos has been built properly. Regards, +jtg+
