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
32f0796c
Commit
32f0796c
authored
Feb 05, 2010
by
Thomas White
Browse files
Fix counting again
parent
938bb822
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pattern_sim.c
View file @
32f0796c
...
...
@@ -157,8 +157,9 @@ int main(int argc, char *argv[])
int
config_nonoise
=
0
;
int
config_nobloom
=
0
;
int
config_nosfac
=
0
;
int
number
=
1
;
/* Index for the current image */
int
n_images
=
1
;
/* Generate one image by default */
int
ndone
=
0
;
/* Number of simulations done (images or not) */
int
number
=
1
;
/* Number used for filename of image */
int
n_images
=
1
;
/* Generate one image by default */
int
done
=
0
;
/* Long options */
...
...
@@ -306,9 +307,9 @@ int main(int argc, char *argv[])
free
(
image
.
sfacs
);
free
(
image
.
twotheta
);
n
umber
++
;
n
done
++
;
if
(
n_images
&&
(
n
umber
>
n_images
)
)
done
=
1
;
if
(
n_images
&&
(
n
done
>
n_images
)
)
done
=
1
;
}
while
(
!
done
);
...
...
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