Skip to content

vlukes/mumpspy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MUMPSpy

A python wrapper for the parallel sparse direct solver.

The wrapper allows to:

  • real and complex arithmetic
  • parallel run
  • Schur complement calculation

Requirements

  • MUMPS - MUltifrontal Massively Parallel sparse direct Solver
  • mpi4py - Python bindings for MPI

Ubuntu/Debian users can use the following command to install the required packages:

apt-get install python-mpi4py libmumps-dev

Installation

  • Download the code from the git repository:

    git clone git://github.com/vlukes/mumpspy
    

or

  • Use pip:

    pip install git+git://github.com/vlukes/mumpspy
    

Usage

import mumpspy

solver = mumpspy.MumpsSolver(system='real')  # initialize solver, real-valued system
solver.set_mtx_centralized(A)  # set sparse matrix
x = b.copy()
solver.set_rhs(x)  # set right-hand side
solver(6)  # analyse, factorize, solve
print x
del(solver)  # cleanup

Compatibility

Tested for the following MUMPS library versions:

  • 4.10.0
  • 5.0.1, 5.0.2
  • 5.1.2
  • 5.2.1
  • 5.4.1

About

A python wrapper for MUMPS direct solver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages