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
23b2fff2
Commit
23b2fff2
authored
7 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Better documentation of the various fields of the cell structure.
parent
1aed9daf
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!420
Gravity speedup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cell.h
+20
-12
20 additions, 12 deletions
src/cell.h
with
20 additions
and
12 deletions
src/cell.h
+
20
−
12
View file @
23b2fff2
...
...
@@ -152,9 +152,13 @@ struct cell {
/*! The multipole initialistation task */
struct
task
*
init_grav
;
/*!
The ghost tasks
*/
/*!
Dependency implicit task for the ghost (in->ghost->out)
*/
struct
task
*
ghost_in
;
/*! Dependency implicit task for the ghost (in->ghost->out)*/
struct
task
*
ghost_out
;
/*! The ghost task itself */
struct
task
*
ghost
;
/*! The extra ghost task for complex hydro schemes */
...
...
@@ -311,6 +315,21 @@ struct cell {
/*! Is the #spart data of this cell being used in a sub-cell? */
int
shold
;
/*! Values of dx_max before the drifts, used for sub-cell tasks. */
float
dx_max_old
;
/*! Values of h_max before the drifts, used for sub-cell tasks. */
float
h_max_old
;
/*! Values of dx_max_sort before the drifts, used for sub-cell tasks. */
float
dx_max_sort_old
;
/*! Bit mask of sort directions that will be needed in the next timestep. */
unsigned
int
requires_sorts
;
/*! Bit mask of sorts that need to be computed for this cell. */
unsigned
int
do_sort
;
/*! Number of tasks that are associated with this cell. */
short
int
nr_tasks
;
...
...
@@ -323,14 +342,6 @@ struct cell {
/*! The maximal depth of this cell and its progenies */
char
maxdepth
;
/*! Values of dx_max and h_max before the drifts, used for sub-cell tasks. */
float
dx_max_old
;
float
h_max_old
;
float
dx_max_sort_old
;
/* Bit mask of sort directions that will be needed in the next timestep. */
unsigned
int
requires_sorts
;
/*! Does this cell need to be drifted (hydro)? */
char
do_drift
;
...
...
@@ -343,9 +354,6 @@ struct cell {
/*! Do any of this cell's sub-cells need to be drifted (gravity)? */
char
do_grav_sub_drift
;
/*! Bit mask of sorts that need to be computed for this cell. */
unsigned
int
do_sort
;
/*! Do any of this cell's sub-cells need to be sorted? */
char
do_sub_sort
;
...
...
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