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
4c7bbdd2
Commit
4c7bbdd2
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Removed the limiter_in/limiter_out tasks from the cell structure.
parent
d193a501
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!956
Fully implement the timestep limiter (non MPI)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cell.h
+0
-6
0 additions, 6 deletions
src/cell.h
src/const.h
+1
-1
1 addition, 1 deletion
src/const.h
src/runner_main.c
+3
-3
3 additions, 3 deletions
src/runner_main.c
with
4 additions
and
10 deletions
src/cell.h
+
0
−
6
View file @
4c7bbdd2
...
...
@@ -362,12 +362,6 @@ struct cell {
/*! Linked list of the tasks computing this cell's limiter. */
struct
link
*
limiter
;
/*! Dependency implicit task for the time-step limiter (in->limiter->out)*/
struct
task
*
limiter_in
;
/*! Dependency implicit task for the time-step limiter (in->limiter->out)*/
struct
task
*
limiter_out
;
/*! Dependency implicit task for the ghost (in->ghost->out)*/
struct
task
*
ghost_in
;
...
...
This diff is collapsed.
Click to expand it.
src/const.h
+
1
−
1
View file @
4c7bbdd2
...
...
@@ -23,7 +23,7 @@
/* Time integration constants. */
#define const_max_u_change 0.1f
#define ICHECK 1
42844
#define ICHECK 1
16567
/* I/O Constant; this determines the relative tolerance between the value of
* redshift read from the snapshot, and the value from the parameter file. This
...
...
This diff is collapsed.
Click to expand it.
src/runner_main.c
+
3
−
3
View file @
4c7bbdd2
...
...
@@ -216,7 +216,7 @@ void *runner_main(void *data) {
else
if
(
t
->
subtype
==
task_subtype_force
)
runner_dopair2_branch_force
(
r
,
ci
,
cj
);
else
if
(
t
->
subtype
==
task_subtype_limiter
)
runner_dopair1_branch_limiter
(
r
,
ci
,
cj
);
runner_dopair1_branch_limiter
(
r
,
ci
,
cj
);
else
if
(
t
->
subtype
==
task_subtype_grav
)
runner_dopair_recursive_grav
(
r
,
ci
,
cj
,
1
);
else
if
(
t
->
subtype
==
task_subtype_stars_density
)
...
...
@@ -248,7 +248,7 @@ void *runner_main(void *data) {
else
if
(
t
->
subtype
==
task_subtype_force
)
runner_dosub_self2_force
(
r
,
ci
,
1
);
else
if
(
t
->
subtype
==
task_subtype_limiter
)
runner_dosub_self1_limiter
(
r
,
ci
,
1
);
runner_dosub_self1_limiter
(
r
,
ci
,
1
);
else
if
(
t
->
subtype
==
task_subtype_stars_density
)
runner_dosub_self_stars_density
(
r
,
ci
,
1
);
else
if
(
t
->
subtype
==
task_subtype_stars_feedback
)
...
...
@@ -278,7 +278,7 @@ void *runner_main(void *data) {
else
if
(
t
->
subtype
==
task_subtype_force
)
runner_dosub_pair2_force
(
r
,
ci
,
cj
,
1
);
else
if
(
t
->
subtype
==
task_subtype_limiter
)
runner_dosub_pair1_limiter
(
r
,
ci
,
cj
,
1
);
runner_dosub_pair1_limiter
(
r
,
ci
,
cj
,
1
);
else
if
(
t
->
subtype
==
task_subtype_stars_density
)
runner_dosub_pair_stars_density
(
r
,
ci
,
cj
,
1
);
else
if
(
t
->
subtype
==
task_subtype_stars_feedback
)
...
...
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