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
835167a0
Commit
835167a0
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Documentation fixes.
parent
c7df53e3
No related branches found
No related tags found
1 merge request
!579
Lean gravity option
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gravity/Default/gravity.h
+4
-0
4 additions, 0 deletions
src/gravity/Default/gravity.h
with
4 additions
and
0 deletions
src/gravity/Default/gravity.h
+
4
−
0
View file @
835167a0
...
...
@@ -164,9 +164,13 @@ __attribute__((always_inline)) INLINE static void gravity_init_gpart(
* Multiplies the forces and accelerations by the appropiate constants.
* Applies cosmological correction for periodic BCs.
*
* No need to apply the potential normalisation correction for periodic
* BCs here since we do not compute the potential.
*
* @param gp The particle to act upon
* @param const_G Newton's constant in internal units.
* @param potential_normalisation Term to be added to all the particles.
* @param Are we using periodic BCs?
*/
__attribute__
((
always_inline
))
INLINE
static
void
gravity_end_force
(
struct
gpart
*
gp
,
float
const_G
,
const
float
potential_normalisation
,
...
...
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