From d6356da39380ab36db699cf5cc4ac0b487280a9b Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Wed, 18 Aug 2021 10:32:29 +0000 Subject: [PATCH] Swap solutions to propagate the solution --- multigrid/src/system.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multigrid/src/system.rs b/multigrid/src/system.rs index 3f65b7b..1ba6bd1 100644 --- a/multigrid/src/system.rs +++ b/multigrid/src/system.rs @@ -1123,7 +1123,8 @@ impl DistributedSystemPart { &mut self.t, self.dt, &mut self.k, - ) + ); + std::mem::swap(&mut self.current, &mut self.fut); } }