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
92de60d2
Commit
92de60d2
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Flag the timesteps where STF is run in the timesteps file.
parent
7374b8e4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!721
Velociraptor outputs
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/engine.c
+5
-2
5 additions, 2 deletions
src/engine.c
src/engine.h
+2
-1
2 additions, 1 deletion
src/engine.h
with
7 additions
and
3 deletions
src/engine.c
+
5
−
2
View file @
92de60d2
...
@@ -3241,6 +3241,7 @@ void engine_check_for_dumps(struct engine *e) {
...
@@ -3241,6 +3241,7 @@ void engine_check_for_dumps(struct engine *e) {
#ifdef HAVE_VELOCIRAPTOR
#ifdef HAVE_VELOCIRAPTOR
velociraptor_invoke
(
e
,
/*linked_with_snap=*/
1
);
velociraptor_invoke
(
e
,
/*linked_with_snap=*/
1
);
e
->
step_props
|=
engine_step_prop_stf
;
#else
#else
error
(
error
(
"Asking for a VELOCIraptor output but SWIFT was compiled without "
"Asking for a VELOCIraptor output but SWIFT was compiled without "
...
@@ -3283,6 +3284,7 @@ void engine_check_for_dumps(struct engine *e) {
...
@@ -3283,6 +3284,7 @@ void engine_check_for_dumps(struct engine *e) {
#ifdef HAVE_VELOCIRAPTOR
#ifdef HAVE_VELOCIRAPTOR
/* Unleash the raptor! */
/* Unleash the raptor! */
velociraptor_invoke
(
e
,
/*linked_with_snap=*/
0
);
velociraptor_invoke
(
e
,
/*linked_with_snap=*/
0
);
e
->
step_props
|=
engine_step_prop_stf
;
/* ... and find the next output time */
/* ... and find the next output time */
engine_compute_next_stf_time
(
e
);
engine_compute_next_stf_time
(
e
);
...
@@ -4414,10 +4416,11 @@ void engine_config(int restart, struct engine *e, struct swift_params *params,
...
@@ -4414,10 +4416,11 @@ void engine_config(int restart, struct engine *e, struct swift_params *params,
fprintf
(
e
->
file_timesteps
,
fprintf
(
e
->
file_timesteps
,
"# Step Properties: Rebuild=%d, Redistribute=%d, Repartition=%d, "
"# Step Properties: Rebuild=%d, Redistribute=%d, Repartition=%d, "
"Statistics=%d, Snapshot=%d, Restarts=%d
\n
"
,
"Statistics=%d, Snapshot=%d, Restarts=%d
STF=%d, logger=%d
\n
"
,
engine_step_prop_rebuild
,
engine_step_prop_redistribute
,
engine_step_prop_rebuild
,
engine_step_prop_redistribute
,
engine_step_prop_repartition
,
engine_step_prop_statistics
,
engine_step_prop_repartition
,
engine_step_prop_statistics
,
engine_step_prop_snapshot
,
engine_step_prop_restarts
);
engine_step_prop_snapshot
,
engine_step_prop_restarts
,
engine_step_prop_stf
,
engine_step_prop_logger_index
);
fprintf
(
e
->
file_timesteps
,
fprintf
(
e
->
file_timesteps
,
"# %6s %14s %12s %12s %14s %9s %12s %12s %12s %16s [%s] %6s
\n
"
,
"# %6s %14s %12s %12s %14s %9s %12s %12s %12s %16s [%s] %6s
\n
"
,
...
...
This diff is collapsed.
Click to expand it.
src/engine.h
+
2
−
1
View file @
92de60d2
...
@@ -91,7 +91,8 @@ enum engine_step_properties {
...
@@ -91,7 +91,8 @@ enum engine_step_properties {
engine_step_prop_statistics
=
(
1
<<
3
),
engine_step_prop_statistics
=
(
1
<<
3
),
engine_step_prop_snapshot
=
(
1
<<
4
),
engine_step_prop_snapshot
=
(
1
<<
4
),
engine_step_prop_restarts
=
(
1
<<
5
),
engine_step_prop_restarts
=
(
1
<<
5
),
engine_step_prop_logger_index
=
(
1
<<
6
)
engine_step_prop_stf
=
(
1
<<
6
),
engine_step_prop_logger_index
=
(
1
<<
7
)
};
};
/* Some constants */
/* Some constants */
...
...
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