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
f554eebc
Commit
f554eebc
authored
6 years ago
by
Matthieu Schaller
Committed by
Peter W. Draper
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Create timers for the limiter tasks in order for the code to compile again.
parent
c6641656
No related branches found
No related tags found
1 merge request
!739
Non periodic partitioning
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/main.c
+2
-2
2 additions, 2 deletions
examples/main.c
src/timers.c
+5
-0
5 additions, 0 deletions
src/timers.c
src/timers.h
+5
-0
5 additions, 0 deletions
src/timers.h
with
12 additions
and
2 deletions
examples/main.c
+
2
−
2
View file @
f554eebc
...
...
@@ -236,12 +236,12 @@ int main(int argc, char *argv[]) {
handle_cmdparam
,
(
intptr_t
)
&
cmdps
,
0
),
OPT_BOOLEAN
(
'r'
,
"restart"
,
&
restart
,
"Continue using restart files."
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
'T'
,
"timers"
,
&
with_verbose_timers
,
"Print timers every time-step."
,
NULL
,
0
,
0
),
OPT_INTEGER
(
't'
,
"threads"
,
&
nr_threads
,
"The number of threads to use on each MPI rank. Defaults to "
"1 if not specified."
,
NULL
,
0
,
0
),
OPT_INTEGER
(
'T'
,
"timers"
,
&
with_verbose_timers
,
"Print timers every time-step."
,
NULL
,
0
,
0
),
OPT_INTEGER
(
'v'
,
"verbose"
,
&
verbose
,
"Run in verbose mode, in MPI mode 2 outputs from all ranks."
,
NULL
,
0
,
0
),
...
...
This diff is collapsed.
Click to expand it.
src/timers.c
+
5
−
0
View file @
f554eebc
...
...
@@ -50,10 +50,12 @@ const char* timers_names[timer_count] = {
"doself_density"
,
"doself_gradient"
,
"doself_force"
,
"doself_limiter"
,
"doself_grav_pp"
,
"dopair_density"
,
"dopair_gradient"
,
"dopair_force"
,
"dopair_limiter"
,
"dopair_grav_mm"
,
"dopair_grav_pp"
,
"dograv_external"
,
...
...
@@ -64,10 +66,12 @@ const char* timers_names[timer_count] = {
"dosub_self_density"
,
"dosub_self_gradient"
,
"dosub_self_force"
,
"dosub_self_limiter"
,
"dosub_self_grav"
,
"dosub_pair_density"
,
"dosub_pair_gradient"
,
"dosub_pair_force"
,
"dosub_pair_limiter"
,
"dosub_pair_grav"
,
"doself_subset"
,
"dopair_subset"
,
...
...
@@ -80,6 +84,7 @@ const char* timers_names[timer_count] = {
"dorecv_spart"
,
"do_cooling"
,
"do_star_formation"
,
"do_limiter"
,
"gettask"
,
"qget"
,
"qsteal"
,
...
...
This diff is collapsed.
Click to expand it.
src/timers.h
+
5
−
0
View file @
f554eebc
...
...
@@ -51,10 +51,12 @@ enum {
timer_doself_density
,
timer_doself_gradient
,
timer_doself_force
,
timer_doself_limiter
,
timer_doself_grav_pp
,
timer_dopair_density
,
timer_dopair_gradient
,
timer_dopair_force
,
timer_dopair_limiter
,
timer_dopair_grav_mm
,
timer_dopair_grav_pp
,
timer_dograv_external
,
...
...
@@ -65,10 +67,12 @@ enum {
timer_dosub_self_density
,
timer_dosub_self_gradient
,
timer_dosub_self_force
,
timer_dosub_self_limiter
,
timer_dosub_self_grav
,
timer_dosub_pair_density
,
timer_dosub_pair_gradient
,
timer_dosub_pair_force
,
timer_dosub_pair_limiter
,
timer_dosub_pair_grav
,
timer_doself_subset
,
timer_dopair_subset
,
...
...
@@ -81,6 +85,7 @@ enum {
timer_dorecv_spart
,
timer_do_cooling
,
timer_do_star_formation
,
timer_do_limiter
,
timer_gettask
,
timer_qget
,
timer_qsteal
,
...
...
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