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
b39501a1
Commit
b39501a1
authored
Aug 16, 2017
by
James Willis
Browse files
Use h_pert to modify smoothing lengths.
parent
d6590e40
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test27cells.c
View file @
b39501a1
...
...
@@ -122,7 +122,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h,
break
;
}
if
(
h_pert
)
part
->
h
=
size
*
h
*
random_uniform
(
1
.
f
,
1
.
1
f
)
/
(
float
)
n
;
part
->
h
=
size
*
h
*
random_uniform
(
1
.
f
,
h_pert
)
/
(
float
)
n
;
else
part
->
h
=
size
*
h
/
(
float
)
n
;
h_max
=
fmaxf
(
h_max
,
part
->
h
);
...
...
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