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
02605421
Commit
02605421
authored
5 years ago
by
Mladen Ivkovic
Committed by
Matthieu Schaller
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Short main.c cleanup
parent
c465fd84
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/main.c
+1
-16
1 addition, 16 deletions
examples/main.c
with
1 addition
and
16 deletions
examples/main.c
+
1
−
16
View file @
02605421
...
...
@@ -1011,7 +1011,7 @@ int main(int argc, char *argv[]) {
"the ICs!"
);
}
/* Verify that each particle is in it
'
s proper cell. */
/* Verify that each particle is in its proper cell. */
if
(
talking
&&
!
dry_run
)
{
int
icount
=
0
;
space_map_cells_pre
(
&
s
,
0
,
&
map_cellcheck
,
&
icount
);
...
...
@@ -1099,10 +1099,6 @@ int main(int argc, char *argv[]) {
if
(
s
.
periodic
)
gravity_exact_force_ewald_init
(
e
.
s
->
dim
[
0
]);
#endif
/* Init the runner history. */
#ifdef HIST
for
(
k
=
0
;
k
<
runner_hist_N
;
k
++
)
runner_hist_bins
[
k
]
=
0
;
#endif
if
(
!
restart
)
{
...
...
@@ -1242,17 +1238,6 @@ int main(int argc, char *argv[]) {
#endif // SWIFT_DEBUG_THREADPOOL
}
/* Print the values of the runner histogram. */
#ifdef HIST
printf
(
"main: runner histogram data:
\n
"
);
for
(
k
=
0
;
k
<
runner_hist_N
;
k
++
)
printf
(
" %e %e %e
\n
"
,
runner_hist_a
+
k
*
(
runner_hist_b
-
runner_hist_a
)
/
runner_hist_N
,
runner_hist_a
+
(
k
+
1
)
*
(
runner_hist_b
-
runner_hist_a
)
/
runner_hist_N
,
(
double
)
runner_hist_bins
[
k
]);
#endif
/* Write final time information */
if
(
myrank
==
0
)
{
...
...
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