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
e9254176
Commit
e9254176
authored
May 10, 2011
by
Thomas White
Browse files
Add some sanity checks
parent
8914bbac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/partialator.c
View file @
e9254176
...
...
@@ -347,6 +347,39 @@ int main(int argc, char *argv[])
full
=
scale_intensities
(
images
,
n_usable_patterns
,
sym
,
scalable
,
cref
);
for
(
i
=
0
;
i
<
num_items
(
scalable
);
i
++
)
{
Reflection
*
f
;
struct
refl_item
*
it
=
get_item
(
scalable
,
i
);
f
=
find_refl
(
full
,
it
->
h
,
it
->
k
,
it
->
l
);
if
(
f
==
NULL
)
{
ERROR
(
"%3i %3i %3i was designated scalable, but no"
" full intensity was recorded.
\n
"
,
it
->
h
,
it
->
k
,
it
->
l
);
}
}
for
(
i
=
0
;
i
<
n_usable_patterns
;
i
++
)
{
Reflection
*
refl
;
RefListIterator
*
iter
;
for
(
refl
=
first_refl
(
images
[
i
].
reflections
,
&
iter
);
refl
!=
NULL
;
refl
=
next_refl
(
refl
,
iter
)
)
{
signed
int
h
,
k
,
l
;
if
(
!
get_scalable
(
refl
)
)
continue
;
get_indices
(
refl
,
&
h
,
&
k
,
&
l
);
if
(
find_item
(
scalable
,
h
,
k
,
l
)
==
0
)
{
ERROR
(
"%3i %3i %3i in image %i is scalable"
" but is not in the list of scalable"
" reflections.
\n
"
,
h
,
k
,
l
,
i
);
}
}
}
/* Iterate */
for
(
i
=
0
;
i
<
n_iter
;
i
++
)
{
...
...
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