From a49bf1e042973f84b5c72a1eff56686116392aed Mon Sep 17 00:00:00 2001 From: "James R. Maddison" Date: Tue, 28 May 2024 12:07:16 +0100 Subject: [PATCH] Fix --- tlm_adjoint/hessian_system.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tlm_adjoint/hessian_system.py b/tlm_adjoint/hessian_system.py index 09ceedf7..70b07e42 100644 --- a/tlm_adjoint/hessian_system.py +++ b/tlm_adjoint/hessian_system.py @@ -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) @@ -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)