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

numerix.array * FaceVariable is broken #108

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

numerix.array * FaceVariable is broken #108

wd15 opened this issue Sep 19, 2014 · 1 comment

Comments

@wd15
Copy link
Contributor

wd15 commented Sep 19, 2014

Following code does not work. It should give a VectorFaceVariable.


>>> from fipy import *
>>> mesh = Grid2D(nx=20, ny=20)
>>> var = FaceVariable(mesh=mesh)
>>> print numerix.array((0,0)) * var
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: shape mismatch: objects cannot be broadcast to a single shape

Imported from trac ticket #123, created by wd15 on 03-07-2007 at 10:44, last modified: 07-07-2008 at 15:45

@guyer
Copy link
Member

guyer commented Sep 19, 2014

>>> print numerix.array(((0,),(0,))) * var

works.

Trac comment by guyer on 07-07-2008 at 15:45

@wd15 wd15 closed this as completed Sep 19, 2014
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

3 participants