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
6c047dbf
Commit
6c047dbf
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
The engine policies are now an enumerated type
parent
8166b729
No related branches found
No related tags found
2 merge requests
!136
Master
,
!79
First version of the multiple time-stepping
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.h
+12
-10
12 additions, 10 deletions
src/engine.h
with
12 additions
and
10 deletions
src/engine.h
+
12
−
10
View file @
6c047dbf
...
...
@@ -39,16 +39,18 @@
#include
"task.h"
/* Some constants. */
#define engine_policy_none 0
#define engine_policy_rand 1
#define engine_policy_steal 2
#define engine_policy_keep 4
#define engine_policy_block 8
#define engine_policy_fixdt 16
#define engine_policy_multistep 32
#define engine_policy_cputight 64
#define engine_policy_mpi 128
#define engine_policy_setaffinity 256
enum
engine_policy
{
engine_policy_none
=
0
,
engine_policy_rand
=
1
,
engine_policy_steal
=
2
,
engine_policy_keep
=
4
,
engine_policy_block
=
8
,
engine_policy_fixdt
=
16
,
engine_policy_multistep
=
32
,
engine_policy_cputight
=
64
,
engine_policy_mpi
=
128
,
engine_policy_setaffinity
=
256
};
extern
const
char
*
engine_policy_names
[];
...
...
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