Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Volker Springel
Gadget4
Commits
36ccb799
Commit
36ccb799
authored
May 15, 2021
by
Volker Springel
Browse files
fix for non-cosmological integration (spotted by Yuri Oko)
parent
832e9f4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sph/density.cc
View file @
36ccb799
...
...
@@ -895,7 +895,7 @@ void sph::density_evaluate_kernel(pinfo &pdat)
if
(
All
.
ComovingIntegrationOn
)
vdotr2
+=
All
.
cf_atime2_hubble_a
*
r2
;
Vec4d
mu_ij
=
vdotr2
/
(
All
.
cf_afac3
*
All
.
T
ime
*
r
);
Vec4d
mu_ij
=
vdotr2
/
(
All
.
cf_afac3
*
All
.
cf_at
ime
*
r
);
Vec4d
cs_j
(
ngb0
->
Csnd
,
ngb1
->
Csnd
,
ngb2
->
Csnd
,
ngb3
->
Csnd
);
Vec4d
cs_sum
=
cs_i
+
cs_j
;
...
...
@@ -1030,7 +1030,7 @@ void sph::density_evaluate_kernel(pinfo &pdat)
if
(
All
.
ComovingIntegrationOn
)
vdotr2
+=
All
.
cf_atime2_hubble_a
*
r2
;
double
mu_ij
=
vdotr2
/
(
All
.
cf_afac3
*
All
.
T
ime
*
kernel
.
r
);
double
mu_ij
=
vdotr2
/
(
All
.
cf_afac3
*
All
.
cf_at
ime
*
kernel
.
r
);
double
decay_vel
;
if
(
vdotr2
<
0
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment