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
5e822697
Commit
5e822697
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Post-merge fixes
parent
586d0ce4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!208
Test 125
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/hydro/Gadget2/hydro.h
+1
-1
1 addition, 1 deletion
src/hydro/Gadget2/hydro.h
tests/test125cells.c
+4
-4
4 additions, 4 deletions
tests/test125cells.c
with
5 additions
and
5 deletions
src/hydro/Gadget2/hydro.h
+
1
−
1
View file @
5e822697
...
...
@@ -304,7 +304,7 @@ __attribute__((always_inline)) INLINE static float hydro_get_pressure(
__attribute__
((
always_inline
))
INLINE
static
float
hydro_get_entropy
(
const
struct
part
*
restrict
p
,
float
dt
)
{
return
p
->
entropy
+
p
->
force
.
entropy_dt
*
dt
;
return
p
->
entropy
+
p
->
entropy_dt
*
dt
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
tests/test125cells.c
+
4
−
4
View file @
5e822697
...
...
@@ -241,9 +241,9 @@ struct cell *make_cell(size_t n, const double offset[3], double size, double h,
cell
->
count
=
count
;
cell
->
gcount
=
0
;
cell
->
dx_max
=
0
.;
cell
->
h
[
0
]
=
size
;
cell
->
h
[
1
]
=
size
;
cell
->
h
[
2
]
=
size
;
cell
->
widt
h
[
0
]
=
size
;
cell
->
widt
h
[
1
]
=
size
;
cell
->
widt
h
[
2
]
=
size
;
cell
->
loc
[
0
]
=
offset
[
0
];
cell
->
loc
[
1
]
=
offset
[
1
];
cell
->
loc
[
2
]
=
offset
[
2
];
...
...
@@ -302,7 +302,7 @@ void dump_particle_fields(char *fileName, struct cell *main_cell,
main_cell
->
parts
[
pid
].
a_hydro
[
0
],
main_cell
->
parts
[
pid
].
a_hydro
[
1
],
main_cell
->
parts
[
pid
].
a_hydro
[
2
],
main_cell
->
parts
[
pid
].
force
.
h_dt
,
main_cell
->
parts
[
pid
].
force
.
v_sig
,
main_cell
->
parts
[
pid
].
force
.
entropy_dt
,
0
.
f
);
main_cell
->
parts
[
pid
].
entropy_dt
,
0
.
f
);
}
if
(
with_solution
)
{
...
...
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