Package petsc4py :: Package lib

[hide private]
[frames] | no frames]

# Package lib

Extension modules for different PETSc configurations.

PETSc can be configured with different options (eg. debug/optimized, single/double precisionm, C/C++ compilers, external packages). Each configuration variant is associated to a name, frequently available as an environmental variable named `PETSC_ARCH`.

This package is a holds all the available variants of the PETSc extension module built agaist specific PETSc configurations. It also provides a convenience function using of the builtin `imp` module for easily importing any of the available extension modules depending on the value of a user-provided configuration name, the `PETSC_ARCH` environmental variable, or a configuration file.

Functions | [hide private]

ImportPETSc(arch=None) Import the PETSc extension module for a given configuration name. |

getPathArchPETSc(arch=None) Undocumented. |

Import(pkg, name, path, arch) Import helper for PETSc-based extension modules. |

getPathArch(path, arch, rcvar=`'``PETSC_ARCH``'`, rcfile=`'``petsc.cfg``'`) Undocumented. |

getInitArgs(args) Undocumented. |

Variables | [hide private]

| __package__ = ``'``petsc4py.lib``'``