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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
4eca3cf2
Commit
4eca3cf2
authored
Apr 4, 2016
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetics
parent
c45e8aaf
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!140
First version of main() using a parameter file to get constants.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+7
-3
7 additions, 3 deletions
src/engine.c
with
7 additions
and
3 deletions
src/engine.c
+
7
−
3
View file @
4eca3cf2
...
@@ -2466,8 +2466,12 @@ void engine_init(struct engine *e, struct space *s,
...
@@ -2466,8 +2466,12 @@ void engine_init(struct engine *e, struct space *s,
engine_print_policy
(
e
);
engine_print_policy
(
e
);
/* Print information about the hydro scheme */
/* Print information about the hydro scheme */
if
(
e
->
nodeID
==
0
)
message
(
"Hydrodynamic scheme: %s"
,
SPH_IMPLEMENTATION
);
if
((
e
->
policy
&
engine_policy_hydro
)
==
engine_policy_hydro
)
{
if
(
e
->
nodeID
==
0
)
message
(
"Hydrodynamic kernel: %s"
,
kernel_name
);
if
(
e
->
nodeID
==
0
)
message
(
"Hydrodynamic scheme: %s."
,
SPH_IMPLEMENTATION
);
if
(
e
->
nodeID
==
0
)
message
(
"Hydrodynamic kernel: %s with %.2f +/- %.2f neighbours."
,
kernel_name
,
kernel_nwneigh
,
const_delta_nwneigh
);
}
/* Check we have sensible time bounds */
/* Check we have sensible time bounds */
if
(
e
->
timeBegin
>=
e
->
timeEnd
)
if
(
e
->
timeBegin
>=
e
->
timeEnd
)
...
@@ -2542,7 +2546,7 @@ void engine_init(struct engine *e, struct space *s,
...
@@ -2542,7 +2546,7 @@ void engine_init(struct engine *e, struct space *s,
e
->
barrier_launchcount
=
0
;
e
->
barrier_launchcount
=
0
;
/* Init the scheduler with enough tasks for the initial sorting tasks. */
/* Init the scheduler with enough tasks for the initial sorting tasks. */
const
int
nr_tasks
=
2
*
s
->
tot_cells
+
e
->
nr_threads
;
const
int
nr_tasks
=
2
*
s
->
tot_cells
+
2
*
e
->
nr_threads
;
scheduler_init
(
&
e
->
sched
,
e
->
s
,
nr_tasks
,
nr_queues
,
scheduler_flag_steal
,
scheduler_init
(
&
e
->
sched
,
e
->
s
,
nr_tasks
,
nr_queues
,
scheduler_flag_steal
,
e
->
nodeID
);
e
->
nodeID
);
...
...
...
...
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
sign in
to comment