aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-12-07 15:21:42 +0100
committerThomas White <taw@physics.org>2009-12-07 15:21:42 +0100
commit64acc8cd7bcade6fd6ed4958c21580bb94c98d04 (patch)
tree781c2403ba7a61b94e7f95366a49852999163244
parent787cafd0d3b8ef2154dcafb37e2331381f4c4c8b (diff)
Typo in help message
-rw-r--r--src/diffraction.c3
-rw-r--r--src/pattern_sim.c12
2 files changed, 13 insertions, 2 deletions
diff --git a/src/diffraction.c b/src/diffraction.c
index 11f82397..9a35d565 100644
--- a/src/diffraction.c
+++ b/src/diffraction.c
@@ -26,7 +26,8 @@
static double lattice_factor(struct threevec q, double ax, double ay, double az,
double bx, double by, double bz,
- double cx, double cy, double cz)
+ double cx, double cy, double cz,
+ int na, int nb, int nc)
{
struct threevec Udotq;
double f1, f2, f3;
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index b8f00647..765b348d 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -32,7 +32,7 @@ static void show_help(const char *s)
{
printf("Syntax: %s [options]\n\n", s);
printf(
-"Simulate diffraction patterns from small crystals probed with femosecond\n"
+"Simulate diffraction patterns from small crystals probed with femtosecond\n"
"pulses of X-rays from a free electron laser.\n"
"\n"
" -h, --help Display this help message.\n"
@@ -223,6 +223,16 @@ int main(int argc, char *argv[])
do {
+ int na, nb, nc;
+
+ //na = 8*random()/RAND_MAX + 4;
+ //nb = 8*random()/RAND_MAX + 4;
+ //nc = 16*random()/RAND_MAX + 30;
+ na = 4;
+ nb = 4;
+ nc = 30;
+ STATUS("Particle size = %i x %i x %i\n", na, nb, nc);
+
/* Read quaternion from stdin */
if ( config_randomquat ) {
image.orientation = random_quaternion();