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
8a32750c
Commit
8a32750c
authored
6 years ago
by
Loic Hausammann
Browse files
Options
Downloads
Patches
Plain Diff
Add check for hydro in cell_can_split_self_gravity_task (and pairs)
parent
1ef38fc1
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!745
Rewrite of MPI loops - Add stellar feedback loops
,
!744
Mpi stars2 matthieu
,
!700
Stars smoothing length over MPI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cell.h
+4
-2
4 additions, 2 deletions
src/cell.h
with
4 additions
and
2 deletions
src/cell.h
+
4
−
2
View file @
8a32750c
...
...
@@ -941,7 +941,8 @@ __attribute__((always_inline)) INLINE static int cell_can_split_pair_stars_task(
/* Note that since tasks are create after a rebuild no need to take */
/* into account any part motion (i.e. dx_max == 0 here) */
return
c
->
split
&&
(
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
->
hydro
.
h_max
<
0
.
5
f
*
c
->
dmin
);
}
/**
...
...
@@ -959,7 +960,8 @@ __attribute__((always_inline)) INLINE static int cell_can_split_self_stars_task(
/* Note: No need for more checks here as all the sub-pairs and sub-self */
/* tasks will be created. So no need to check for h_max */
return
c
->
split
&&
(
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
->
hydro
.
h_max
<
0
.
5
f
*
c
->
dmin
);
}
/**
...
...
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