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
c569ffe1
Commit
c569ffe1
authored
5 years ago
by
Stuart McAlpine
Committed by
Matthieu Schaller
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated potential_derivatives_M2P
parent
4340e825
No related branches found
No related tags found
1 merge request
!914
Improvements to the particle-multipole interactions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gravity_derivatives.h
+17
-2
17 additions, 2 deletions
src/gravity_derivatives.h
with
17 additions
and
2 deletions
src/gravity_derivatives.h
+
17
−
2
View file @
c569ffe1
...
...
@@ -101,10 +101,14 @@ struct potential_derivatives_M2P {
/* 1st order terms */
float
D_100
,
D_010
,
D_001
;
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 0
/* 2nd order terms */
float
D_200
,
D_020
,
D_002
;
float
D_110
,
D_101
,
D_011
;
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 1
/* 3rd order terms */
float
D_300
,
D_030
,
D_003
;
...
...
@@ -112,8 +116,8 @@ struct potential_derivatives_M2P {
float
D_120
,
D_021
;
float
D_102
,
D_012
;
float
D_111
;
#if SELF_GRAVITY_MULTIPOLE_ORDER >
3
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER >
2
/* 4th order terms */
float
D_400
,
D_040
,
D_004
;
...
...
@@ -123,6 +127,17 @@ struct potential_derivatives_M2P {
float
D_220
,
D_202
,
D_022
;
float
D_211
,
D_121
,
D_112
;
#endif
#if SELF_GRAVITY_MULTIPOLE_ORDER > 3
/* 5th order terms */
float
D_005
,
D_014
,
D_023
;
float
D_032
,
D_041
,
D_050
;
float
D_104
,
D_113
,
D_122
;
float
D_131
,
D_140
,
D_203
;
float
D_212
,
D_221
,
D_230
;
float
D_302
,
D_311
,
D_320
;
float
D_401
,
D_410
,
D_500
;
#endif
};
/**
...
...
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