From: Dilawar S. <dil...@nc...> - 2014-02-22 08:49:08
|
On many recent releases or rpm based linux default openmpi lib is libmpi.so.1 rather than `libmpi.so.0`. I have changed `/python/moose/__init__.py` file in my local repository. The diff is following ~~~~ +++ b/python/moose/__init__.py @@ -236,5 +236,9 @@ elements under current working element __version__ = '$Revision: 4454$' # $Source$ import ctypes -ctypes.CDLL('libmpi.so.0', ctypes.RTLD_GLOBAL) +try: + ctypes.CDLL('libmpi.so.0', ctypes.RTLD_GLOBAL) +except Exception as e: + ctypes.CDLL('libmpi.so.1', ctypes.RTLD_GLOBAL) + ~~~~ This compiles and runs on opensuse 13.1. If this is OK then it can be merged after adding additional `finally` clause. -- Dilawar |