Error in example scripts

Hi there,

I’m trying to familiarize myself with bempp by running the example scripts. I’m getting the following error related to the gmres solver:

For example, when executing line 72 of the reentrant cube capacitance example, I get the following error.

x, info = scipy.sparse.linalg.gmres(A_op, b_vec, rtol=tol, restart=restart, maxiter=maxiter, callback=callback)

TypeError: gmres() got an unexpected keyword argument ‘rtol’

Any feedback to resolve this issue would be appreciated.

Alan

Hi Alan,

The Generalized Minimum Residual (GMRES) algorithm is an iterative method to solve the linear system. The rtol argument is the relative tolerance for the termination criterion of GMRES. Check your version of scipy because legacy versions have the tol argument instead.

Also, notice that bempp-cl also has its own interface to the GMRES algorithm, with different function arguments. Check the documentation for the syntax of bempp_cl.api.linalg.gmres().

Best,

Elwin

Thanks Elwin,

It seems I have multiple environments installed and some of them had older scipy. When I went through and updated them all it started working. Thanks!

Alan