Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIPY_DISPLAY_MATRIX=terms raises TypeError in FiPy 2.1 and trunk #192

Closed
guyer opened this issue Sep 19, 2014 · 1 comment
Closed

FIPY_DISPLAY_MATRIX=terms raises TypeError in FiPy 2.1 and trunk #192

guyer opened this issue Sep 19, 2014 · 1 comment

Comments

@guyer
Copy link
Member

guyer commented Sep 19, 2014

Setting FIPY_DISPLAY_MATRIX to terms raises

Traceback (most recent call last):
  ...
  File ".../fipy/terms/term.py", line 149, in sweep
solver = self._prepareLinearSystem(var=var, solver=solver, boundaryConditions=boundaryConditions, dt=dt)
  File ".../fipy/terms/term.py", line 111, in _prepareLinearSystem
self.__buildMatrix(var, solver, boundaryConditions, dt)
  File ".../fipy/terms/term.py", line 98, in __buildMatrix
matrix, RHSvector = self._buildMatrix(var, solver._getMatrixClass(), boundaryConditions, dt)
  File ".../fipy/terms/equation.py", line 99, in _buildMatrix
self._viewer.plot(matrix=termMatrix)
TypeError: plot() takes at least 3 non-keyword arguments (2 given)

This happens because r2954 added support for displaying the RHS vector, but somehow the mandatory RHSvector argument was not added to plot() in trunk/fipy/terms/equation.py@2954#L99.

Imported from trac ticket #288, created by guyer on 04-14-2010 at 11:08, last modified: 04-14-2010 at 11:31

@guyer
Copy link
Member Author

guyer commented Sep 19, 2014

Fixed in r3536

Trac comment by guyer on 04-14-2010 at 11:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants