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
24e1ff73
Commit
24e1ff73
authored
Dec 06, 2016
by
Matthieu Schaller
Browse files
Be verbose about rebuilding
parent
7c2c2cc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
24e1ff73
...
...
@@ -295,6 +295,12 @@ void space_regrid(struct space *s, int verbose) {
if
(
s
->
cells_top
==
NULL
||
cdim
[
0
]
<
s
->
cdim
[
0
]
||
cdim
[
1
]
<
s
->
cdim
[
1
]
||
cdim
[
2
]
<
s
->
cdim
[
2
])
{
/* Be verbose about this. */
#ifdef SWIFT_DEBUG_CHECKS
message
(
"re)griding space cdim=(%d %d %d)"
,
cdim
[
0
],
cdim
[
1
],
cdim
[
2
]);
fflush
(
stdout
);
#endif
/* Free the old cells, if they were allocated. */
if
(
s
->
cells_top
!=
NULL
)
{
for
(
int
k
=
0
;
k
<
s
->
nr_cells
;
k
++
)
{
...
...
@@ -444,8 +450,11 @@ void space_rebuild(struct space *s, int verbose) {
const
ticks
tic
=
getticks
();
/* Be verbose about this. */
// message("re)building space..."); fflush(stdout);
/* Be verbose about this. */
#ifdef SWIFT_DEBUG_CHECKS
message
(
"re)building space"
);
fflush
(
stdout
);
#endif
/* Re-grid if necessary, or just re-set the cell data. */
space_regrid
(
s
,
verbose
);
...
...
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