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
701693dd
Commit
701693dd
authored
Dec 02, 2009
by
Thomas White
Browse files
Add --stop-after option
parent
e9fa5161
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/process_hkl.c
View file @
701693dd
...
...
@@ -45,7 +45,9 @@ static void show_help(const char *s)
" measurements.
\n
"
" -e, --output-every=<n> Analyse figures of merit after every n patterns.
\n
"
" -r, --rvsq Output lists of R vs |q| (
\"
Luzzatti plots
\"
) when
\n
"
" analysing figures of merit.
\n
"
);
" analysing figures of merit.
\n
"
" --stop-after=<n> Stop after processing n patterns (zero means)
\n
"
" never stop).
\n
"
);
}
...
...
@@ -211,6 +213,7 @@ int main(int argc, char *argv[])
int
config_maxonly
=
0
;
int
config_every
=
1000
;
int
config_rvsq
=
0
;
int
config_stopafter
=
0
;
/* Long options */
const
struct
option
longopts
[]
=
{
...
...
@@ -219,6 +222,7 @@ int main(int argc, char *argv[])
{
"max-only"
,
0
,
&
config_maxonly
,
1
},
{
"output-every"
,
1
,
NULL
,
'e'
},
{
"rvsq"
,
0
,
NULL
,
'r'
},
{
"stop-after"
,
1
,
NULL
,
's'
},
{
0
,
0
,
NULL
,
0
}
};
...
...
@@ -246,6 +250,11 @@ int main(int argc, char *argv[])
break
;
}
case
's'
:
{
config_stopafter
=
atoi
(
optarg
);
break
;
}
case
0
:
{
break
;
}
...
...
@@ -300,6 +309,9 @@ int main(int argc, char *argv[])
n_patterns
,
mol
->
cell
,
config_rvsq
);
}
if
(
n_patterns
==
config_stopafter
)
break
;
}
r
=
sscanf
(
line
,
"%i %i %i %i"
,
&
h
,
&
k
,
&
l
,
&
intensity
);
...
...
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