kwant.solvers.mumps
– High performance sparse solver based on MUMPS¶This solver uses MUMPS. (Only the sequential, single core version of MUMPS is used.) MUMPS is a very efficient direct sparse solver that can take advantage of memory beyond 3GiB for the solution of large problems. Furthermore, it offers a choice of several orderings of the input matrix some of which can speed up a calculation significantly.
Compared with the default solver
, this module
adds several options that may be used to fine-tune performance. Otherwise the
interface is identical. These options can be set and queried with the
following functions.
kwant.solvers.mumps.
options
(self, nrhs=None, ordering=None, sparse_rhs=None)¶Modify some options. Return the old options.
Parameters: | nrhs : number
ordering : string
sparse_rhs : True or False
|
---|---|
Returns: | old_options: dict
|
Notes
Thanks to this method returning the old options as a dictionary it is easy to change some options temporarily:
>>> saved_options = kwant.solvers.mumps.options(nrhs=12)
>>> some_code()
>>> kwant.solvers.mumps.options(**saved_options)
kwant.solvers.mumps.
reset_options
(self)¶Set the options to default values. Return the old options.