Hello,

I'm trying to solve an equation in parallel my code works fine on his own.
And

mpirun -np {# of processors} python -c "import fipy; fipy.test('--trilinos')"

command also works except 2 tests. But when I try to run my code with
"mpirun -np 8 python __main__.py --trilinos" command I get import
error. I paste end of the error message.

I can share my code and all error if needed. But I first want to know
is it a known issue with a simple fix or not ?

Kindest Regards,

Serbulent


*ImportError: numpy.core.multiarray failed to import
from fipy.tools import numerix
    from fipy.tools import numerix
numpy.core.multiarray failed to import  File
"/usr/lib/python2.7/site-packages/fipy/tools/__init__.py", line 86, in
<module>
  File "/usr/lib/python2.7/site-packages/fipy/tools/__init__.py", line 86,
in <module>
  File "/usr/lib/python2.7/site-packages/fipy/tools/__init__.py", line 86,
in <module>
    serial, parallel = _getComms()
  File "/usr/lib/python2.7/site-packages/fipy/tools/__init__.py", line 73,
in _getComms
    serial, parallel = _parallelImport()
  File "/usr/lib/python2.7/site-packages/fipy/tools/__init__.py", line 44,
in _parallelImport
    from PyTrilinos import Epetra
  File "/usr/lib64/python2.7/site-packages/PyTrilinos/Epetra.py", line 78,
in <module>

    _Epetra = swig_import_helper()
  File "/usr/lib64/python2.7/site-packages/PyTrilinos/Epetra.py", line 74,
in swig_import_helper
    _mod = imp.load_module('_Epetra', fp, pathname, description)
ImportError: numpy.core.multiarray failed to import
    serial, parallel = _getComms()
  File "/usr/lib/python2.7/site-packages/fipy/tools/__init__.py", line 73,
in _getComms

-----------------------------------------------------------------------------
serial, parallel = _getComms()
It seems that [at least] one of the processes that was started with
mpirun did not invoke MPI_INIT before quitting (it is possible that
more than one process did not invoke MPI_INIT -- mpirun was only
notified of the first one, which was on node n0).

  File "/usr/lib/python2.7/site-packages/fipy/tools/__init__.py", line 73,
in _getComms
mpirun can *only* be used with MPI programs (i.e., programs that
invoke MPI_INIT and MPI_FINALIZE).  You can use the "lamexec" program
to run non-MPI programs over the lambooted nodes.
-----------------------------------------------------------------------------
    serial, parallel = _parallelImport()
  File "/usr/lib/python2.7/site-packages/fipy/tools/__init__.py", line 44,
in _parallelImport
    from PyTrilinos import Epetra
  File "/usr/lib64/python2.7/site-packages/PyTrilinos/Epetra.py", line 78,
in <module>
    _Epetra = swig_import_helper()
  File "/usr/lib64/python2.7/site-packages/PyTrilinos/Epetra.py", line 74,
in swig_import_helper
    serial, parallel = _parallelImport()
  File "/usr/lib/python2.7/site-packages/fipy/tools/__init__.py", line 44,
in _parallelImport*
_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to