Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmaddison committed May 28, 2024
1 parent e69455a commit a49bf1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tlm_adjoint/hessian_system.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .interface import (
packed, var_axpy_conjugate, var_copy_conjugate, var_increment_state_lock,
var_space)
Packed, packed, var_axpy_conjugate, var_copy_conjugate,
var_increment_state_lock, var_space)

from .block_system import (
BlockNullspace, LinearSolver, Matrix, NoneNullspace, TypedSpace)
Expand Down Expand Up @@ -89,5 +89,5 @@ def solve(self, u, b, **kwargs):
:meth:`tlm_adjoint.block_system.LinearSolver.solve` method.
"""

b_conj = tuple(map(var_copy_conjugate, packed(b)))
super().solve(u, b_conj, **kwargs)
b_conj = Packed(b).mapped(var_copy_conjugate)
super().solve(u, b_conj.unpack(b_conj), **kwargs)

0 comments on commit a49bf1e

Please sign in to comment.