diff options
author | Tom White <weiss@jade.(none)> | 2008-09-23 17:12:30 +0100 |
---|---|---|
committer | Thomas White <taw27@cam.ac.uk> | 2008-10-02 17:54:49 +0100 |
commit | 2eee6640aeb692a4491febddb2cdad22d9500cbf (patch) | |
tree | 9e3d6e5e0b9b095b8e1b84511caa284dc8f9064b | |
parent | 6b8a65614fc6b13feac6355012517885828549e5 (diff) |
Better monitoring of deviation during iteration
-rw-r--r-- | src/refine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/refine.c b/src/refine.c index 5f590bb..ca6f3cc 100644 --- a/src/refine.c +++ b/src/refine.c @@ -242,7 +242,7 @@ double refine_do_cell(ControlContext *ctx) { /* Determine direction of steepest gradient */ devcell_try = malloc(sizeof(Basis)); devcell_try_best = malloc(sizeof(Basis)); - for ( it=0; it<100000; it++ ) { + for ( it=1; it<=2000; it++ ) { for ( comp=0; comp<18; comp++ ) { memcpy(devcell_try, devcell, sizeof(Basis)); switch ( comp ) { @@ -272,7 +272,7 @@ double refine_do_cell(ControlContext *ctx) { } } memcpy(devcell, devcell_try_best, sizeof(Basis)); - printf("Improved deviation to %13.8f nm^1\n", mean_dev/DISPFACTOR); + if ( !(it % 20) ) printf("After %5i iterations: mean dev = %13.8f nm^1\n", it, mean_dev/DISPFACTOR); } free(devcell_try); free(devcell_try_best); |