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
60d4d538
Commit
60d4d538
authored
Aug 15, 2011
by
Thomas White
Browse files
Formatting
parent
d475475b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/get_hkl.c
View file @
60d4d538
...
...
@@ -416,10 +416,10 @@ int main(int argc, char *argv[])
}
input
=
read_reflections
(
input_file
);
if
(
input
==
NULL
)
{
ERROR
(
"Problem reading input file %s
\n
"
,
input_file
);
return
1
;
}
if
(
input
==
NULL
)
{
ERROR
(
"Problem reading input file %s
\n
"
,
input_file
);
return
1
;
}
free
(
input_file
);
if
(
check_list_symmetry
(
input
,
mero
)
)
{
ERROR
(
"The input reflection list does not appear to"
...
...
src/pattern_sim.c
View file @
60d4d538
...
...
@@ -416,10 +416,10 @@ int main(int argc, char *argv[])
RefList
*
reflections
;
reflections
=
read_reflections
(
intfile
);
if
(
reflections
==
NULL
)
{
ERROR
(
"Problem reading input file %s
\n
"
,
intfile
);
return
1
;
}
if
(
reflections
==
NULL
)
{
ERROR
(
"Problem reading input file %s
\n
"
,
intfile
);
return
1
;
}
free
(
intfile
);
if
(
grad
==
GRADIENT_PHASED
)
{
...
...
src/powder_plot.c
View file @
60d4d538
...
...
@@ -992,7 +992,7 @@ int main(int argc, char *argv[])
if
(
file_type
==
FILE_HKL
)
{
need_geometry
=
0
;
need_beam
=
0
;
}
}
/* Get geometry, beam and pdb files and parameters as needed */
if
(
need_geometry
)
{
...
...
@@ -1058,15 +1058,15 @@ int main(int argc, char *argv[])
/* Set up histogram info*/
if
(
file_type
==
FILE_HKL
)
{
/* get q range from Miller indices in hkl
/* get q range from Miller indices in hkl
file. */
resolution_limits
(
image
.
reflections
,
cell
,
&
hist_info
.
q_min
,
&
hist_info
.
q_max
);
&
hist_info
.
q_min
,
&
hist_info
.
q_max
);
}
else
{
if
(
hist_info
.
q_min
<
0
.
0
)
{
if
(
hist_info
.
q_min
<
0
.
0
)
{
hist_info
.
q_min
=
smallest_q
(
&
image
);
}
if
(
hist_info
.
q_max
<
0
.
0
)
{
if
(
hist_info
.
q_max
<
0
.
0
)
{
hist_info
.
q_max
=
largest_q
(
&
image
);
}
}
...
...
@@ -1076,11 +1076,11 @@ int main(int argc, char *argv[])
"is greator then your max q value of: %e
\n
"
,
hist_info
.
q_min
,
hist_info
.
q_max
);
return
1
;
}
if
(
hist_info
.
spacing
==
LINEAR
)
{
}
if
(
hist_info
.
spacing
==
LINEAR
)
{
hist_info
.
q_delta
=
(
hist_info
.
q_max
-
hist_info
.
q_min
)
/
hist_info
.
histsize
;
}
else
if
(
hist_info
.
spacing
==
q2
)
{
}
else
if
(
hist_info
.
spacing
==
q2
)
{
hist_info
.
q_delta
=
(
pow
(
hist_info
.
q_max
,
2
.
0
)
-
pow
(
hist_info
.
q_min
,
2
.
0
))
/
hist_info
.
histsize
;
...
...
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