Commit ca7c663e authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Restore the ability to perform a dry-run to check that all the parameters are read in correctly.

parent e7cb37b0
......@@ -681,7 +681,8 @@ int main(int argc, char *argv[]) {
}
/* Check that the other links are correctly set */
part_verify_links(parts, gparts, sparts, Ngas, Ngpart, Nspart, 1);
if (!dry_run)
part_verify_links(parts, gparts, sparts, Ngas, Ngpart, Nspart, 1);
#endif
/* Get the total number of particles across all nodes. */
......@@ -718,7 +719,7 @@ int main(int argc, char *argv[]) {
/* Check that the matter content matches the cosmology given in the
* parameter file. */
if (with_cosmology && with_self_gravity)
if (with_cosmology && with_self_gravity && !dry_run)
space_check_cosmology(&s, &cosmo, myrank);
/* Also update the total counts (in case of changes due to replication) */
......
......@@ -3651,7 +3651,7 @@ int engine_estimate_nr_tasks(struct engine *e) {
#endif
double ntasks = n1 * ntop + n2 * (ncells - ntop);
tasks_per_cell = ceil(ntasks / ncells);
if (ncells > 0) tasks_per_cell = ceil(ntasks / ncells);
if (tasks_per_cell < 1.0) tasks_per_cell = 1.0;
if (e->verbose)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment