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
e2e484b9
Commit
e2e484b9
authored
Jun 09, 2018
by
Matthieu Schaller
Committed by
Matthieu Schaller
Jun 18, 2018
Browse files
Make sure the gravity mesh side is an even number
parent
fbe6171b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gravity_properties.c
View file @
e2e484b9
...
...
@@ -57,6 +57,9 @@ void gravity_props_init(struct gravity_props *p, struct swift_params *params,
p
->
r_cut_min
=
parser_get_opt_param_float
(
params
,
"Gravity:r_cut_min"
,
gravity_props_default_r_cut_min
);
if
(
p
->
mesh_size
%
2
!=
0
)
error
(
"The mesh side-length must be an even number."
);
if
(
p
->
a_smooth
<=
0
.)
error
(
"The mesh smoothing scale 'a_smooth' must be > 0."
);
...
...
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