Skip to content
Snippets Groups Projects
Commit 93677118 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Merge branch 'fix-repartition-on-restart' into 'master'

Fix repartition on restart

See merge request swift/swiftsim!1592
parents c2fda354 242efe0b
No related branches found
No related tags found
13 merge requests!1693More threapool plotting tweaks,!1668before Mag.Egy in all the flavors,!1663Initial sync to work again,!1662Initial sync from previous months,!1642When searching for more particles in a ghost task we walk up the cell tree,...,!1633When searching for more particles in a ghost task we walk up the cell tree,...,!1631Solving issues with different Hydro Schemes,!1620Mhd canvas,!1619Mhd canvas,!1617Update to from main branch to Canvas to MHD_FS,!1616Mhd canvas into MHD_FS,!1596Master,!1592Fix repartition on restart
...@@ -207,8 +207,8 @@ AM_CONDITIONAL([HAVEMPI],[test $enable_mpi = "yes"]) ...@@ -207,8 +207,8 @@ AM_CONDITIONAL([HAVEMPI],[test $enable_mpi = "yes"])
# Indicate that MPIRUN can be modified by an environment variable # Indicate that MPIRUN can be modified by an environment variable
AC_ARG_VAR(MPIRUN, Path to the mpirun command if non-standard) AC_ARG_VAR(MPIRUN, Path to the mpirun command if non-standard)
# Add libtool support (now that CC is defined). # Add libtool support (now that CC is defined). Disable shared libraries by default.
LT_INIT LT_INIT([disable-shared])
# Need C99 and inline support. # Need C99 and inline support.
AC_PROG_CC_C99 AC_PROG_CC_C99
... ...
......
...@@ -196,7 +196,11 @@ void engine_config(int restart, int fof, struct engine *e, ...@@ -196,7 +196,11 @@ void engine_config(int restart, int fof, struct engine *e,
* already allocated and freed on exit, so we need to copy over. */ * already allocated and freed on exit, so we need to copy over. */
#ifdef WITH_MPI #ifdef WITH_MPI
if (restart) { if (restart) {
int *celllist = e->reparttype->celllist;
int ncelllist = e->reparttype->ncelllist;
memcpy(e->reparttype, reparttype, sizeof(struct repartition)); memcpy(e->reparttype, reparttype, sizeof(struct repartition));
e->reparttype->celllist = celllist;
e->reparttype->ncelllist = ncelllist;
} else { } else {
e->reparttype = reparttype; e->reparttype = reparttype;
} }
... ...
......
...@@ -283,7 +283,7 @@ void engine_split_gas_particles(struct engine *e) { ...@@ -283,7 +283,7 @@ void engine_split_gas_particles(struct engine *e) {
/* Abort if we are not doing any splitting */ /* Abort if we are not doing any splitting */
if (!e->hydro_properties->particle_splitting) return; if (!e->hydro_properties->particle_splitting) return;
if (e->s->nr_parts == 0) return; if (e->total_nr_parts == 0) return;
/* Time this */ /* Time this */
const ticks tic = getticks(); const ticks tic = getticks();
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment