From b0cb05adb9ac0c6b198f30bbd489532fde5fa455 Mon Sep 17 00:00:00 2001
From: "Peter W. Draper" <p.w.draper@durham.ac.uk>
Date: Thu, 15 Feb 2018 17:13:26 +0000
Subject: [PATCH] Keep the initial partition so that repartitions also just
 refine this

---
 src/engine.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/engine.c b/src/engine.c
index a8782d7b78..79b4d63f92 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -4961,6 +4961,9 @@ void engine_split(struct engine *e, struct partition *initial_partition) {
   /* Do the initial partition of the cells. */
   partition_initial_partition(initial_partition, e->nodeID, e->nr_nodes, s);
 
+  /* Keep the partition as the basis for repartitioning. */
+  partition_store_celllist(s, e->reparttype);
+
   /* Make the proxies. */
   engine_makeproxies(e);
 
-- 
GitLab