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

formatting

parent 3f0c1c31
No related branches found
No related tags found
1 merge request!362Better trigger
......@@ -140,7 +140,7 @@ int main(int argc, char *argv[]) {
error("Call to MPI_Comm_set_errhandler failed with error %i.", res);
if (myrank == 0)
printf("[0000] [00000.0] main: MPI is up and running with %i node(s).\n\n",
nr_nodes);
nr_nodes);
if (nr_nodes == 1) {
message("WARNING: you are running with one MPI rank.");
message("WARNING: you should use the non-MPI version of this program.");
......
......@@ -1071,8 +1071,9 @@ void partition_init(struct partition *partition,
if (repartition->trigger <= 0)
error("Invalid DomainDecomposition:trigger, must be greater than zero");
if (repartition->trigger < 2 && repartition->trigger >= 1)
error("Invalid DomainDecomposition:trigger, must be 2 or greater or less"
" than 1");
error(
"Invalid DomainDecomposition:trigger, must be 2 or greater or less"
" than 1");
/* Fraction of particles that should be updated before a repartition
* based on CPU time is considered. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment