From 22af0f09eb410c397d0fee3af72710765efb2f3b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 15 Aug 2011 14:17:25 +0200 Subject: Comment out alignment stuff --- src/reax.c | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src') diff --git a/src/reax.c b/src/reax.c index a6b53c30..ff1ea582 100644 --- a/src/reax.c +++ b/src/reax.c @@ -429,32 +429,32 @@ static void refine_rigid_group(struct image *image, UnitCell *cell, fftw_execute_dft(pr->r_plan, r_fft_in, r_fft_out); - max = 0.0; - FILE *fh = fopen("centering.dat", "w"); - for ( i=0; icw; i++ ) { - for ( j=0; jch; j++ ) { - - double re, im, am, ph; - - re = r_fft_out[i + pr->cw*j][0]; - im = r_fft_out[i + pr->cw*j][1]; - am = sqrt(re*re + im*im); - ph = atan2(im, re); - - if ( am > max ) { - max = am; - max_i = i; - max_j = j; - } - - fprintf(fh, "%f ", am); - - } - fprintf(fh, "\n"); - } +// max = 0.0; +// FILE *fh = fopen("centering.dat", "w"); +// for ( i=0; icw; i++ ) { +// for ( j=0; jch; j++ ) { +// +// double re, im, am, ph; +// +// re = r_fft_out[i + pr->cw*j][0]; +// im = r_fft_out[i + pr->cw*j][1]; +// am = sqrt(re*re + im*im); +// ph = atan2(im, re); +// +// if ( am > max ) { +// max = am; +// max_i = i; +// max_j = j; +// } +// +// fprintf(fh, "%f ", am); +// +// } +// fprintf(fh, "\n"); +// } // STATUS("Max at %i, %i\n", max_i, max_j); - fclose(fh); - exit(1); +// fclose(fh); +// exit(1); // STATUS("Offsets for '%s': %.2f, %.2f pixels\n", rg, dx, dy); } -- cgit v1.2.3