ReducedFunctional's taylor_test doesn't honour InitialConditionParameter(str)

Bug #1059059 reported by Patrick Farrell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dolfin-adjoint
New
Undecided
Simon Funke

Bug Description

I tried the new taylor_test method of the ReducedFunctional in tyamabe.py:

Traceback (most recent call last):
  File "tyamabe.py", line 39, in <module>
    jm.taylor_test(seed=0.01)
  File "/home/pef/src/dolfin-adjoint/dolfin_adjoint/reduced_functional.py", line 91, in taylor_test
    m_array = get_global(m)
  File "/home/pef/src/dolfin-adjoint/dolfin_adjoint/optimization.py", line 35, in get_global
    raise TypeError, 'Unknown parameter type %s.' % str(type(m))
TypeError: Unknown parameter type <type 'str'>.

It is caused by the ReducedFunctional being created with InitialConditionParameter("Solution").

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.