Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
5ff2d44b
Commit
5ff2d44b
authored
Aug 09, 2016
by
Matthieu Schaller
Browse files
Typo in the DEFAULT_SPH case
parent
ad684649
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/hydro/Default/hydro.h
View file @
5ff2d44b
...
...
@@ -194,12 +194,12 @@ __attribute__((always_inline)) INLINE static void hydro_end_density(
p
->
rho_dh
=
1
.
f
/
(
1
.
f
+
hydro_dimension_inv
*
p
->
h
*
p
->
rho_dh
*
irho
);
/* Finish calculation of the velocity curl components */
p
->
density
.
rot_v
[
0
]
*=
h
ydro_dimension_inv
*
irho
;
p
->
density
.
rot_v
[
1
]
*=
h
ydro_dimension_inv
*
irho
;
p
->
density
.
rot_v
[
2
]
*=
h
ydro_dimension_inv
*
irho
;
p
->
density
.
rot_v
[
0
]
*=
h
_inv_dim_plus_one
*
irho
;
p
->
density
.
rot_v
[
1
]
*=
h
_inv_dim_plus_one
*
irho
;
p
->
density
.
rot_v
[
2
]
*=
h
_inv_dim_plus_one
*
irho
;
/* Finish calculation of the velocity divergence */
p
->
density
.
div_v
*=
h
ydro_dimension_inv
*
irho
;
p
->
density
.
div_v
*=
h
_inv_dim_plus_one
*
irho
;
}
/**
...
...
tests/test27cells.c
View file @
5ff2d44b
...
...
@@ -321,7 +321,7 @@ int main(int argc, char *argv[]) {
message
(
"Hydro implementation: %s"
,
SPH_IMPLEMENTATION
);
message
(
"Smoothing length: h = %f"
,
h
*
size
);
message
(
"Kernel: %s"
,
kernel_name
);
message
(
"Neighbour target: N = %f"
,
h
*
h
*
h
*
kernel_norm
);
message
(
"Neighbour target: N = %f"
,
pow_dimension
(
h
)
*
kernel_norm
);
message
(
"Density target: rho = %f"
,
rho
);
message
(
"div_v target: div = %f"
,
vel
==
2
?
3
.
f
:
0
.
f
);
message
(
"curl_v target: curl = [0., 0., %f]"
,
vel
==
3
?
-
2
.
f
:
0
.
f
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment