Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
061379ce
Commit
061379ce
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Make sure we can run with -x only if VELOCIraptor is on. Temporarily prevent STF to run over MPI.
parent
b9124e9e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!578
Swift velociraptor
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/main.c
+9
-0
9 additions, 0 deletions
examples/main.c
with
9 additions
and
0 deletions
examples/main.c
+
9
−
0
View file @
061379ce
...
...
@@ -306,7 +306,11 @@ int main(int argc, char *argv[]) {
}
break
;
case
'x'
:
#ifdef HAVE_VELOCIRAPTOR
with_structure_finding
=
1
;
#else
error
(
"Error: (-x) needs to have the code compiled with VELOCIraptor linked in."
);
#endif
break
;
case
'y'
:
if
(
sscanf
(
optarg
,
"%d"
,
&
dump_tasks
)
!=
1
)
{
...
...
@@ -717,6 +721,11 @@ int main(int argc, char *argv[]) {
error
(
"Periodic self-gravity over MPI temporarily disabled."
);
#endif
#if defined(WITH_MPI) && defined(HAVE_VELOCIRAPTOR)
if
(
with_structure_finding
)
error
(
"VEOCIraptor not yet enabled over MPI."
);
#endif
#ifdef SWIFT_DEBUG_CHECKS
/* Check once and for all that we don't have unwanted links */
if
(
!
with_stars
&&
!
dry_run
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment