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
8bf0912c
Commit
8bf0912c
authored
5 years ago
by
Yannick Bahé
Browse files
Options
Downloads
Patches
Plain Diff
Apply angular momentum correction the right way round in BH feedback
parent
026e9a4c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1076
Apply angular momentum correction the right way round in BH feedback
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/black_holes/EAGLE/black_holes.h
+1
-1
1 addition, 1 deletion
src/black_holes/EAGLE/black_holes.h
with
1 addition
and
1 deletion
src/black_holes/EAGLE/black_holes.h
+
1
−
1
View file @
8bf0912c
...
...
@@ -479,7 +479,7 @@ __attribute__((always_inline)) INLINE static void black_holes_prepare_feedback(
r_times_v_tang
*
r_times_v_tang
*
r_times_v_tang
;
const
double
viscous_time
=
2
.
*
M_PI
*
r_times_v_tang_3
/
(
1e-6
*
alpha_visc
*
G
*
G
*
BH_mass
*
BH_mass
);
const
double
f_visc
=
m
ax
(
Bondi_time
/
viscous_time
,
1
.);
const
double
f_visc
=
m
in
(
Bondi_time
/
viscous_time
,
1
.);
/* Limit the Bondi rate by the Bondi viscuous time ratio */
Bondi_rate
*=
f_visc
;
...
...
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