Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
ca7c663e
Commit
ca7c663e
authored
Mar 27, 2018
by
Matthieu Schaller
Browse files
Restore the ability to perform a dry-run to check that all the parameters are read in correctly.
parent
e7cb37b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
ca7c663e
...
...
@@ -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) */
...
...
src/engine.c
View file @
ca7c663e
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment