Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
d26b0fc0
Commit
d26b0fc0
authored
7 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Removed debugging lines tracking a particle through the long-range gravity forces.
parent
967d5c20
No related branches found
No related tags found
1 merge request
!430
Fixes to the gravity code
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/const.h
+0
-2
0 additions, 2 deletions
src/const.h
src/runner_doiact_grav.h
+0
-13
0 additions, 13 deletions
src/runner_doiact_grav.h
with
0 additions
and
15 deletions
src/const.h
+
0
−
2
View file @
d26b0fc0
...
...
@@ -113,6 +113,4 @@
#define SOURCETERMS_NONE
//#define SOURCETERMS_SN_FEEDBACK
//#define ICHECK -30896
#endif
/* SWIFT_CONST_H */
This diff is collapsed.
Click to expand it.
src/runner_doiact_grav.h
+
0
−
13
View file @
d26b0fc0
...
...
@@ -1130,19 +1130,6 @@ void runner_doself_grav(struct runner *r, struct cell *c, int gettimer) {
*/
void
runner_do_grav_long_range
(
struct
runner
*
r
,
struct
cell
*
ci
,
int
timer
)
{
#if ICHECK > 0
for
(
int
pid
=
0
;
pid
<
ci
->
gcount
;
pid
++
)
{
/* Get a hold of the ith part in ci. */
struct
gpart
*
restrict
gp
=
&
ci
->
gparts
[
pid
];
if
(
gp
->
id_or_neg_offset
==
ICHECK
)
message
(
"id=%lld loc=[ %f %f %f ] size= %f count= %d"
,
gp
->
id_or_neg_offset
,
ci
->
loc
[
0
],
ci
->
loc
[
1
],
ci
->
loc
[
2
],
ci
->
width
[
0
],
ci
->
gcount
);
}
#endif
/* Some constants */
const
struct
engine
*
e
=
r
->
e
;
const
struct
space
*
s
=
e
->
s
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment