scalar fields intended to be FIELD_TYPE_CONSTANT not allocated as constant in Populate_State
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fluidity |
In Progress
|
Wishlist
|
Brendan Tollit |
Bug Description
In Populate_State when a scalar field is allocated in allocate_
Quickly fixing this by putting the correct call causes some short test cases to fail! This would appear to be because the python state doesnt deal with constant fields and for the fields using the enforce_
Also, routines called allocate_
Changed in fluidity: | |
assignee: | nobody → Brendan Tollit (btollit) |
Changed in fluidity: | |
status: | New → In Progress |
Changed in fluidity: | |
importance: | Low → Wishlist |
Good catch!
The right thing to do wrt the Python state is to make a numpy vector where every entry is the same. This shouldn't be too hard to special-case, I think. Is it possible to make a numpy vector read-only?