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
ac84f644
Commit
ac84f644
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
ca7c663e
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
ac84f644
...
...
@@ -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"
);
}
...
...
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