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
0e8d069d
Commit
0e8d069d
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Limit the depth of the gravity tasks being split.
parent
5ad98d9d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!576
Gravity splittask (non-MPI)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cell.h
+2
-2
2 additions, 2 deletions
src/cell.h
src/space.c
+1
-0
1 addition, 0 deletions
src/space.c
src/space.h
+2
-0
2 additions, 0 deletions
src/space.h
with
5 additions
and
2 deletions
src/cell.h
+
2
−
2
View file @
0e8d069d
...
...
@@ -607,7 +607,7 @@ __attribute__((always_inline)) INLINE static int cell_can_split_pair_gravity_tas
const
struct
cell
*
c
)
{
/* Is the cell split ? */
return
c
->
split
;
return
c
->
split
&&
c
->
depth
<
space_subdepth_grav
;
}
/**
...
...
@@ -620,7 +620,7 @@ __attribute__((always_inline)) INLINE static int cell_can_split_self_gravity_tas
const
struct
cell
*
c
)
{
/* Is the cell split ? */
return
c
->
split
;
return
c
->
split
&&
c
->
depth
<
space_subdepth_grav
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
src/space.c
+
1
−
0
View file @
0e8d069d
...
...
@@ -66,6 +66,7 @@ int space_subsize_pair_hydro = space_subsize_pair_hydro_default;
int
space_subsize_self_hydro
=
space_subsize_self_hydro_default
;
int
space_subsize_pair_grav
=
space_subsize_pair_grav_default
;
int
space_subsize_self_grav
=
space_subsize_self_grav_default
;
int
space_subdepth_grav
=
space_subdepth_grav_default
;
int
space_maxsize
=
space_maxsize_default
;
#ifdef SWIFT_DEBUG_CHECKS
int
last_cell_id
;
...
...
This diff is collapsed.
Click to expand it.
src/space.h
+
2
−
0
View file @
0e8d069d
...
...
@@ -48,6 +48,7 @@ struct cosmology;
#define space_subsize_self_hydro_default 32000
#define space_subsize_pair_grav_default 256000000
#define space_subsize_self_grav_default 32000
#define space_subdepth_grav_default 2
#define space_max_top_level_cells_default 12
#define space_stretch 1.10f
#define space_maxreldx 0.1f
...
...
@@ -62,6 +63,7 @@ extern int space_subsize_pair_hydro;
extern
int
space_subsize_self_hydro
;
extern
int
space_subsize_pair_grav
;
extern
int
space_subsize_self_grav
;
extern
int
space_subdepth_grav
;
/**
* @brief The space in which the cells and particles reside.
...
...
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