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
04fa011d
Commit
04fa011d
authored
7 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Make sure gravity (self or external) is switched on when running with stars.
parent
4b2ed413
No related branches found
No related tags found
1 merge request
!358
Make sure gravity (self or external) is switched on when running with stars.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/main.c
+8
-0
8 additions, 0 deletions
examples/main.c
with
8 additions
and
0 deletions
examples/main.c
+
8
−
0
View file @
04fa011d
...
...
@@ -294,6 +294,14 @@ int main(int argc, char *argv[]) {
if
(
myrank
==
0
)
print_help_message
();
return
1
;
}
if
(
with_stars
&&
!
with_external_gravity
&&
!
with_self_gravity
)
{
if
(
myrank
==
0
)
printf
(
"Error: Cannot run with stars but without gravity, -g or -G must be "
"chosen.
\n
"
);
if
(
myrank
==
0
)
print_help_message
();
return
1
;
}
/* Genesis 1.1: And then, there was time ! */
clocks_set_cpufreq
(
cpufreq
);
...
...
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