Function.fine() method works unexpectedly
Bug #811131 reported by
Sergey Alyaev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
High
|
Marie Rognes |
Bug Description
I have slightly modified auto-adaptive Navier-Stokes example.
I wanted to get the desired quantity out and i was advised to use something like:
assemble(
which does not work with the error message:
print "goal eval fine", assemble(
TypeError: 'Function' object does not support indexing
while the indexing works well with the original "w_h" which also is an object of the Function class.
I attach the code where the error pops up.
Changed in dolfin: | |
assignee: | nobody → Marie Rognes (meg-simula) |
importance: | Undecided → High |
milestone: | none → 1.0-rc1 |
status: | New → Confirmed |
Changed in dolfin: | |
status: | Confirmed → In Progress |
Changed in dolfin: | |
milestone: | 1.0-rc1 → 1.0-beta2 |
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On 07/15/11 18:24, Sergey Alyaev wrote: w_h.fine( )[0]*dss( 0)) w_h.fine( )[0]*dss( 0))
> Public bug reported:
>
> I have slightly modified auto-adaptive Navier-Stokes example.
> I wanted to get the desired quantity out and i was advised to use something like:
>
> assemble(
>
> which does not work with the error message:
>
> print "goal eval fine", assemble(
> TypeError: 'Function' object does not support indexing
>
> while the indexing works well with the original "w_h" which also is an
> object of the Function class.
>
> I attach the code where the error pops up.
>
> ** Affects: dolfin
> Importance: Undecided
> Status: New
>
Thanks!
Could you also please attach the mesh and subdomains .xml files used, or
modify the example so that it does not require additional files?
--
Marie