Package solvcon :: Module dependency
[hide private]
[frames] | no frames]

Module dependency

source code

Logic for using external compiled libraries.

Functions [hide private]
 
str_of(dtype)
Determine the string representation of a dtype of floating-point.
source code
ctypes.CDLL
loadcdll(location, libname)
Load shared objects using ctypes.
source code
ctypes.CDLL
getcdll(libname, location=None, raise_on_fail=True)
Load shared objects at the default location.
source code
 
_clib_solvcon_of(dtype) source code
Variables [hide private]
  cdllcache = {'/home/yungyuc/work/coding/solvcon/lib/libsc_cese...
  _clib_solvcon_d = <CDLL '/home/yungyuc/work/coding/solvcon/lib...
  _clib_solvcon_s = <CDLL '/home/yungyuc/work/coding/solvcon/lib...
  _clib_metis = <CDLL '/home/yungyuc/work/coding/solvcon/lib/lib...
  __package__ = 'solvcon'
  name = 'scotchmetis'
Function Details [hide private]

loadcdll(location, libname)

source code 

Load shared objects using ctypes. Loaded dll objects are cached to prevent duplicated loading.

Parameters:
  • location (str) - location of the ctypes library.
  • libname (str) - full basename of library.
Returns: ctypes.CDLL
ctypes library.

getcdll(libname, location=None, raise_on_fail=True)

source code 

Load shared objects at the default location.

Parameters:
  • libname (str) - main basename of library without sc_ prefix.
  • location (str) - location of the library.
  • raise_on_fail (bool) - raise the error on failing to load. Default True.
Returns: ctypes.CDLL
ctypes library.

Variables Details [hide private]

cdllcache

Value:
{'/home/yungyuc/work/coding/solvcon/lib/libsc_cese2d.so': <CDLL '/home\
/yungyuc/work/coding/solvcon/lib/libsc_cese2d.so', handle 327b520 at 3\
1bdf90>,
 '/home/yungyuc/work/coding/solvcon/lib/libsc_cese3d.so': <CDLL '/home\
/yungyuc/work/coding/solvcon/lib/libsc_cese3d.so', handle 327bdb0 at 3\
240050>,
 '/home/yungyuc/work/coding/solvcon/lib/libsc_ceseb2d.so': <CDLL '/hom\
e/yungyuc/work/coding/solvcon/lib/libsc_ceseb2d.so', handle 327f030 at\
...

_clib_solvcon_d

Value:
<CDLL '/home/yungyuc/work/coding/solvcon/lib/libsc_solvcon_d.so', hand\
le 304cde0 at 2fc3710>

_clib_solvcon_s

Value:
<CDLL '/home/yungyuc/work/coding/solvcon/lib/libsc_solvcon_s.so', hand\
le 3072ba0 at 2fc3750>

_clib_metis

Value:
<CDLL '/home/yungyuc/work/coding/solvcon/lib/libsc_metis.so', handle 3\
074b40 at 2fc3790>