Skip to content
Snippets Groups Projects
Commit ac84f644 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 ca7c663e
No related branches found
No related tags found
No related merge requests found
......@@ -671,11 +671,11 @@ int main(int argc, char *argv[]) {
#ifdef SWIFT_DEBUG_CHECKS
/* Check once and for all that we don't have unwanted links */
if (!with_stars) {
if (!with_stars && !dry_run) {
for (size_t k = 0; k < Ngpart; ++k)
if (gparts[k].type == swift_type_star) error("Linking problem");
}
if (!with_hydro) {
if (!with_hydro && !dry_run) {
for (size_t k = 0; k < Ngpart; ++k)
if (gparts[k].type == swift_type_gas) error("Linking problem");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment