diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -30,7 +30,7 @@ #include "qdrp.h" #include "ipr.h" #include "cache.h" -#include "structure.h" +#include "mapping.h" static gint main_method_window_response(GtkWidget *method_window, gint response, ControlContext *ctx) { @@ -56,6 +56,7 @@ static gint main_method_window_response(GtkWidget *method_window, gint response, gtk_widget_destroy(method_window); while ( gtk_events_pending() ) gtk_main_iteration(); + /* Load the input */ if ( ctx->inputfiletype == INPUT_QDRP ) { val = qdrp_read(ctx); } else if ( ctx->inputfiletype == INPUT_MRC ) { @@ -65,16 +66,18 @@ static gint main_method_window_response(GtkWidget *method_window, gint response, val=0; } + if ( ctx->inputfiletype != INPUT_CACHE ) { + mapping_create(ctx); + } + if ( (ctx->inputfiletype != INPUT_CACHE) && !val && (ctx->reflectionctx) ) { cache_save(ctx->filename, ctx->reflectionctx); } if ( !val && (ctx->rmode == RECONSTRUCTION_PREDICTION) && (ctx->reflectionctx) ) { - val = ipr_reduce(ctx); + val = ipr_refine(ctx); } - //dump_histogram(ctx->reflectionctx); - if ( !val && (ctx->reflectionctx) ) { displaywindow_open(ctx); } else { @@ -222,3 +225,4 @@ int main(int argc, char *argv[]) { return 0; } + |