Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
7006e143
Commit
7006e143
authored
Jan 28, 2016
by
Matthieu Schaller
Browse files
cell_getid() now moved to cell.h and uniquely defined there.
parent
ef4609fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/cell.h
View file @
7006e143
...
...
@@ -164,6 +164,12 @@ struct cell {
}
__attribute__
((
aligned
(
64
)));
/* Convert cell location to ID. */
#define cell_getid(cdim, i, j, k) \
((int)(k) + (cdim)[2] * ((int)(j) + (cdim)[1] * (int)(i)))
/* Function prototypes. */
void
cell_split
(
struct
cell
*
c
);
int
cell_locktree
(
struct
cell
*
c
);
...
...
src/engine.c
View file @
7006e143
...
...
@@ -65,10 +65,6 @@ const char *engine_policy_names[10] = {
"none"
,
"rand"
,
"steal"
,
"keep"
,
"block"
,
"fix_dt"
,
"multi_dt"
,
"cpu_tight"
,
"mpi"
,
"numa_affinity"
};
/* Convert cell location to ID. */
#define cell_getid(cdim, i, j, k) \
((int)(k) + (cdim)[2] * ((int)(j) + (cdim)[1] * (int)(i)))
/** The rank of the engine as a global variable (for messages). */
int
engine_rank
;
...
...
src/space.h
View file @
7006e143
...
...
@@ -37,10 +37,6 @@ struct engine;
#define space_maxreldx 0.25f
#define space_qstack 2048
/* Convert cell location to ID. */
#define cell_getid(cdim, i, j, k) \
((int)(k) + (cdim)[2] * ((int)(j) + (cdim)[1] * (int)(i)))
/* Split size. */
extern
int
space_splitsize
;
extern
int
space_maxsize
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment