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
ff27fd81
Commit
ff27fd81
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Also take the BH kernel size into account when splitting the hydro tasks.
parent
bc279065
No related branches found
No related tags found
1 merge request
!804
Implementation of black hole accretion and feedback
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cell.h
+5
-2
5 additions, 2 deletions
src/cell.h
with
5 additions
and
2 deletions
src/cell.h
+
5
−
2
View file @
ff27fd81
...
...
@@ -1065,7 +1065,8 @@ __attribute__((always_inline)) INLINE static int cell_can_split_pair_hydro_task(
/* into account any part motion (i.e. dx_max == 0 here) */
return
c
->
split
&&
(
space_stretch
*
kernel_gamma
*
c
->
hydro
.
h_max
<
0
.
5
f
*
c
->
dmin
)
&&
(
space_stretch
*
kernel_gamma
*
c
->
stars
.
h_max
<
0
.
5
f
*
c
->
dmin
);
(
space_stretch
*
kernel_gamma
*
c
->
stars
.
h_max
<
0
.
5
f
*
c
->
dmin
)
&&
(
space_stretch
*
kernel_gamma
*
c
->
black_holes
.
h_max
<
0
.
5
f
*
c
->
dmin
);
}
/**
...
...
@@ -1084,7 +1085,8 @@ __attribute__((always_inline)) INLINE static int cell_can_split_self_hydro_task(
/* tasks will be created. So no need to check for h_max */
return
c
->
split
&&
(
space_stretch
*
kernel_gamma
*
c
->
hydro
.
h_max
<
0
.
5
f
*
c
->
dmin
)
&&
(
space_stretch
*
kernel_gamma
*
c
->
stars
.
h_max
<
0
.
5
f
*
c
->
dmin
);
(
space_stretch
*
kernel_gamma
*
c
->
stars
.
h_max
<
0
.
5
f
*
c
->
dmin
)
&&
(
space_stretch
*
kernel_gamma
*
c
->
black_holes
.
h_max
<
0
.
5
f
*
c
->
dmin
);
}
/**
...
...
@@ -1134,6 +1136,7 @@ cell_need_rebuild_for_hydro_pair(const struct cell *ci, const struct cell *cj) {
}
return
0
;
}
/**
* @brief Have star particles in a pair of cells moved too much and require a
* rebuild?
...
...
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