Skip to content

Commit

Permalink
Bugfix - provide name to copy only if dolfin-adjoint is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Jan 8, 2019
1 parent dd00fc1 commit e196932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulse/iterate.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ def iterate(problem, control, target,
name='Previous control'))

if first_step:
prev_states.append(problem.state.copy(deepcopy=True,
name='Previous state'))
prev_states.append(copy(problem.state, deepcopy=True,
name='Previous state'))
else:

# Switch place of the state vectors
Expand Down

0 comments on commit e196932

Please sign in to comment.