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
12e4a201
Commit
12e4a201
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into kill_drift
parents
de493833
54aa9fea
No related branches found
No related tags found
1 merge request
!225
Only drift the particles that need drifting
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cell.h
+4
-4
4 additions, 4 deletions
src/cell.h
src/riemann.h
+8
-0
8 additions, 0 deletions
src/riemann.h
src/runner.h
+7
-6
7 additions, 6 deletions
src/runner.h
with
19 additions
and
10 deletions
src/cell.h
+
4
−
4
View file @
12e4a201
...
...
@@ -117,8 +117,8 @@ struct cell {
struct
gpart
*
gparts
;
/* Pointers for the sorted indices. */
struct
entry
*
sort
,
*
gsort
;
unsigned
int
sorted
,
gsorted
;
struct
entry
*
sort
;
unsigned
int
sorted
;
/* Pointers to the next level of cells. */
struct
cell
*
progeny
[
8
];
...
...
@@ -130,8 +130,8 @@ struct cell {
struct
cell
*
super
;
/* The task computing this cell's sorts. */
struct
task
*
sorts
,
*
gsorts
;
int
sortsize
,
gsortsize
;
struct
task
*
sorts
;
int
sortsize
;
/* The tasks computing this cell's density. */
struct
link
*
density
,
*
gradient
,
*
force
,
*
grav
;
...
...
This diff is collapsed.
Click to expand it.
src/riemann.h
+
8
−
0
View file @
12e4a201
...
...
@@ -27,6 +27,14 @@
#include
"stdio.h"
#include
"stdlib.h"
/* Check that we use an ideal equation of state, since other equations of state
are not compatible with these Riemann solvers. */
#ifndef EOS_IDEAL_GAS
#error Currently there are no Riemann solvers that can handle the requested \
equation of state. Select an ideal gas equation of state if you want to \
use this hydro scheme!
#endif
#if defined(RIEMANN_SOLVER_EXACT)
#define RIEMANN_SOLVER_IMPLEMENTATION "Exact Riemann solver (Toro 2009)"
...
...
This diff is collapsed.
Click to expand it.
src/runner.h
+
7
−
6
View file @
12e4a201
...
...
@@ -29,26 +29,27 @@ extern const char runner_flip[27];
struct
cell
;
struct
engine
;
/* A struct representing a runner's thread and its data. */
/**
* @brief A struct representing a runner's thread and its data.
*/
struct
runner
{
/* The id of this thread. */
/*
!
The id of this thread. */
int
id
;
/* The thread which it is running. */
/*
!
The
actual
thread which it is running. */
pthread_t
thread
;
/* The queue to use to get tasks. */
/*
!
The queue to use to get tasks. */
int
cpuid
,
qid
;
/* The
underlying
runner. */
/*
!
The
engine owing this
runner. */
struct
engine
*
e
;
};
/* Function prototypes. */
void
runner_do_ghost
(
struct
runner
*
r
,
struct
cell
*
c
);
void
runner_do_sort
(
struct
runner
*
r
,
struct
cell
*
c
,
int
flag
,
int
clock
);
void
runner_do_gsort
(
struct
runner
*
r
,
struct
cell
*
c
,
int
flag
,
int
clock
);
void
runner_do_kick
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_kick_fixdt
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
void
runner_do_init
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
);
...
...
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