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
da47a754
Commit
da47a754
authored
Mar 27, 2016
by
Matthieu Schaller
Browse files
(So far) empty function to do initial clean-up fo gparts
parent
a726b1a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
da47a754
...
...
@@ -45,6 +45,7 @@
/* Local headers. */
#include
"atomic.h"
#include
"error.h"
#include
"gravity.h"
#include
"hydro.h"
#include
"space.h"
#include
"timers.h"
...
...
@@ -620,6 +621,7 @@ void cell_init_gparts(struct cell *c, void *data) {
for
(
int
i
=
0
;
i
<
gcount
;
++
i
)
{
gp
[
i
].
ti_begin
=
0
;
gp
[
i
].
ti_end
=
0
;
gravity_first_init_gpart
(
&
gp
[
i
]);
}
c
->
ti_end_min
=
0
;
c
->
ti_end_max
=
0
;
...
...
src/gravity/Default/gravity.h
View file @
da47a754
...
...
@@ -44,7 +44,7 @@ __attribute__((always_inline)) INLINE static float gravity_compute_timestep(
* @param gp The particle to act upon
*/
__attribute__
((
always_inline
))
INLINE
static
void
gravity_first_init_part
(
struct
gpart
*
gp
)
{
INLINE
static
void
gravity_first_init_
g
part
(
struct
gpart
*
gp
)
{
}
/**
...
...
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