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
Oleksii Turkot
CrystFEL
Commits
6b56bc8d
Commit
6b56bc8d
authored
May 11, 2011
by
Thomas White
Browse files
Also mess up scale factors
parent
bc5fd690
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/partial_sim.c
View file @
6b56bc8d
...
...
@@ -279,6 +279,14 @@ int main(int argc, char *argv[])
for
(
i
=
0
;
i
<
n
;
i
++
)
{
double
osf
;
if
(
random
()
>
RAND_MAX
/
2
)
{
osf
=
1
.
0
;
}
else
{
osf
=
2
.
0
;
}
/* Set up a random orientation */
orientation
=
random_quaternion
();
image
.
indexed_cell
=
cell_rotate
(
cell
,
orientation
);
...
...
@@ -286,7 +294,7 @@ int main(int argc, char *argv[])
snprintf
(
image
.
filename
,
255
,
"(simulated %i)"
,
i
);
image
.
reflections
=
find_intersections
(
&
image
,
image
.
indexed_cell
,
0
);
calculate_partials
(
image
.
reflections
,
1
.
0
,
full
,
sym
);
calculate_partials
(
image
.
reflections
,
osf
,
full
,
sym
);
/* Give a slightly incorrect cell in the stream */
mess_up_cell
(
image
.
indexed_cell
);
...
...
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