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
f8440a6e
Commit
f8440a6e
authored
Aug 22, 2016
by
Matthieu Schaller
Browse files
Clean-up allocated memory at the end of a dry run.
parent
1d205f82
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
f8440a6e
...
...
@@ -266,18 +266,6 @@ 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 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
);
...
...
@@ -479,6 +467,8 @@ int main(int argc, char *argv[]) {
#endif
if
(
myrank
==
0
)
message
(
"Time integration ready to start. End of dry-run."
);
engine_clean
(
&
e
);
free
(
params
);
return
0
;
}
...
...
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