Skip to content
GitLab
Menu
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
80d7f1b7
Commit
80d7f1b7
authored
Jul 30, 2012
by
Thomas White
Browse files
get_hkl: Trap a few edge cases
parent
0b262aa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/get_hkl.c
View file @
80d7f1b7
...
...
@@ -357,9 +357,9 @@ int main(int argc, char *argv[])
char
*
holo_str
=
NULL
;
char
*
mero_str
=
NULL
;
char
*
expand_str
=
NULL
;
SymOpList
*
holo
;
SymOpList
*
mero
;
SymOpList
*
expand
;
SymOpList
*
holo
=
NULL
;
SymOpList
*
mero
=
NULL
;
SymOpList
*
expand
=
NULL
;
char
*
input_file
=
NULL
;
char
*
template
=
NULL
;
char
*
output
=
NULL
;
...
...
@@ -469,6 +469,13 @@ int main(int argc, char *argv[])
expand
=
NULL
;
}
if
(
(
expand
!=
NULL
)
||
(
holo
!=
NULL
)
||
config_trimc
||
config_multi
)
{
if
(
mero
==
NULL
)
{
ERROR
(
"You must specify the point group with -y.
\n
"
);
}
}
input
=
read_reflections
(
input_file
);
if
(
input
==
NULL
)
{
ERROR
(
"Problem reading input file %s
\n
"
,
input_file
);
...
...
@@ -478,7 +485,9 @@ int main(int argc, char *argv[])
STATUS
(
"%i reflections in input.
\n
"
,
num_reflections
(
input
));
if
(
!
config_trimc
&&
check_list_symmetry
(
input
,
mero
)
)
{
if
(
(
mero
!=
NULL
)
&&
!
config_trimc
&&
check_list_symmetry
(
input
,
mero
)
)
{
ERROR
(
"The input reflection list does not appear to"
" have symmetry %s
\n
"
,
symmetry_name
(
mero
));
return
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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