From 4500d31f165cb4e07d017d23712ed835719f3bad Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Fri, 17 Mar 2017 11:40:20 +0800 Subject: [PATCH] Updated the default value of the repartitioning to the valid choice 'task_weights' --- src/parallel_io.c | 1 + src/partition.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parallel_io.c b/src/parallel_io.c index dbd029569e..b857fd76a5 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -441,6 +441,7 @@ void read_ic_parallel(char* fileName, const struct unit_system* internal_units, N_total[ptype] = (numParticles[ptype]) + (numParticles_highWord[ptype] << 32); + /* Get the box size if not cubic */ dim[0] = boxSize[0]; dim[1] = (boxSize[1] < 0) ? boxSize[0] : boxSize[1]; dim[2] = (boxSize[2] < 0) ? boxSize[0] : boxSize[2]; diff --git a/src/partition.c b/src/partition.c index a265f015f4..49dbf883e0 100644 --- a/src/partition.c +++ b/src/partition.c @@ -995,7 +995,7 @@ void partition_init(struct partition *partition, /* Defaults make use of METIS if available */ #ifdef HAVE_METIS - const char *default_repart = "both"; + const char *default_repart = "task_weights"; const char *default_part = "simple_metis"; #else const char *default_repart = "none"; -- GitLab