diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/diffraction.c | 3 | ||||
-rw-r--r-- | src/pattern_sim.c | 12 |
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(); |