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
3866380d
Commit
3866380d
authored
Jul 15, 2016
by
Matthieu Schaller
Browse files
Early abort when vectorization is activated and routines are absent.
parent
666109a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
3866380d
...
...
@@ -266,6 +266,24 @@ int main(int argc, char *argv[]) {
message
(
"sizeof(struct cell) is %4zi bytes."
,
sizeof
(
struct
cell
));
}
/* Temporary abort to handle absence of vectorized functions */
#ifdef WITH_VECTORIZATION
#ifdef GADGET2_SPH
error
(
"Vectorized version of Gadget SPH routines not implemented yet. "
"Reconfigure with --disable-vec and recompile or use DEFAULT_SPH."
);
#endif
#ifdef MINIMAL_SPH
error
(
"Vectorized version of Minimal SPH routines not implemented yet. "
"Reconfigure with --disable-vec and recompile or use DEFAULT_SPH."
);
#endif
#endif
/* End temporary fix */
/* How vocal are we ? */
const
int
talking
=
(
verbose
==
1
&&
myrank
==
0
)
||
(
verbose
==
2
);
...
...
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