Calling FunctionAssigner.assign with annotate=False fails.

Issue #95 new
Evan Cummings created an issue

I get the error:

Traceback (most recent call last):
File "ismip_hom_a.py", line 66, in <module>
momNL.solve()
File "/home/pf4d/software/cslvr/cslvr/momentumstokes.py", line 273, in solve
super(Momentum, self).solve(annotate)
File "/home/pf4d/software/cslvr/cslvr/physics.py", line 692, in solve
self.update_model_var(self.get_unknown(), annotate=annotate)
File "/home/pf4d/software/cslvr/cslvr/momentumstokes.py", line 293, in update_model_var
self.assu.assign(self.model.u, u, annotate=annotate)
File "/home/pf4d/.local/lib/python3.6/site-packages/fenics_adjoint/types/function_assigner.py", line 25, in assign
for i, o in enumerate(outputs):
UnboundLocalError: local variable 'outputs' referenced before assignment

Investigating FunctionAssigner.py, it appears there is no case for annotate==False.

Comments (0)

  1. Log in to comment