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
f3394689
Commit
f3394689
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Fix unnecessary white spaces.
parent
5e116744
No related branches found
No related tags found
1 merge request
!926
Alternative definition of the number of neighbours
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/runner_ghost.c
+0
-4
0 additions, 4 deletions
src/runner_ghost.c
with
0 additions
and
4 deletions
src/runner_ghost.c
+
0
−
4
View file @
f3394689
...
@@ -1044,15 +1044,11 @@ void runner_do_ghost(struct runner *r, struct cell *c, int timer) {
...
@@ -1044,15 +1044,11 @@ void runner_do_ghost(struct runner *r, struct cell *c, int timer) {
pressure_floor_end_density
(
p
,
cosmo
);
pressure_floor_end_density
(
p
,
cosmo
);
/* Are we using the alternative definition of the
/* Are we using the alternative definition of the
number of neighbours? */
number of neighbours? */
if
(
use_mass_weighted_num_ngb
)
{
if
(
use_mass_weighted_num_ngb
)
{
#if defined(GIZMO_MFV_SPH) || defined(GIZMO_MFM_SPH) || defined(SHADOWFAX_SPH)
#if defined(GIZMO_MFV_SPH) || defined(GIZMO_MFM_SPH) || defined(SHADOWFAX_SPH)
error
(
error
(
"Can't use alternative neighbour definition with this scheme!"
);
"Can't use alternative neighbour definition with this scheme!"
);
#else
#else
const
float
inv_mass
=
1
.
f
/
hydro_get_mass
(
p
);
const
float
inv_mass
=
1
.
f
/
hydro_get_mass
(
p
);
p
->
density
.
wcount
=
p
->
rho
*
inv_mass
;
p
->
density
.
wcount
=
p
->
rho
*
inv_mass
;
...
...
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