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
Merge requests
!587
Gizmo mfv clean
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Gizmo mfv clean
gizmo_mfv_clean
into
master
Overview
0
Commits
4
Changes
6
Merged
Bert Vandenbroucke
requested to merge
gizmo_mfv_clean
into
master
6 years ago
Overview
0
Commits
4
Changes
6
Expand
Fixed gravitational energy conservation in Gizmo MFV. Cleaned up some code.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
daa06206
4 commits,
6 years ago
6 files
+
62
−
54
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/hydro/GizmoMFM/hydro_gradients.h
+
1
−
2
Options
@@ -98,8 +98,7 @@ __attribute__((always_inline)) INLINE static void hydro_gradients_predict(
/* perform gradient reconstruction in space and time */
/* Compute interface position (relative to pj, since we don't need the actual
* position) eqn. (8) */
const
float
xfac
=
hj
/
(
hi
+
hj
);
const
float
xij_j
[
3
]
=
{
xfac
*
dx
[
0
],
xfac
*
dx
[
1
],
xfac
*
dx
[
2
]};
const
float
xij_j
[
3
]
=
{
xij_i
[
0
]
+
dx
[
0
],
xij_i
[
1
]
+
dx
[
1
],
xij_i
[
2
]
+
dx
[
2
]};
float
dWi
[
5
];
dWi
[
0
]
=
pi
->
primitives
.
gradients
.
rho
[
0
]
*
xij_i
[
0
]
+
Loading