From 13291c9a4e6caf561ddaacac1599e20ae697043d Mon Sep 17 00:00:00 2001 From: Pilar Cossio Date: Thu, 24 Apr 2014 09:19:20 +0200 Subject: [PATCH] Checks for command line input --- bioem.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bioem.cpp b/bioem.cpp index 79625bb..370a376 100644 --- a/bioem.cpp +++ b/bioem.cpp @@ -161,7 +161,11 @@ int bioem::configure(int ac, char* av[]) cout << e.what() << "\n"; return 1; } - + //check for consitency in multiple MRCs + if( RefMap.readMultMRC && not(RefMap.readMRC) ){ + cout << "For Multiple MRCs command --ReadMRC is necesary too"; + exit(1); + } // ********************* Reading Parameter Input *************************** // copying inputfile to param class param.fileinput = infile.c_str(); @@ -273,7 +277,7 @@ int bioem::run() HighResTimer timer; printf("\tMain Loop (GridAngles %d, CTFs %d, RefMaps %d, Shifts (%d/%d)²), Pixels %d²\n", param.nTotGridAngles, param.nTotCTFs, RefMap.ntotRefMap, 2 * param.param_device.maxDisplaceCenter + param.param_device.GridSpaceCenter, param.param_device.GridSpaceCenter, param.param_device.NumberPixels); - printf("\tInner Loop Count (%d %d %d) %lld\n", param.param_device.maxDisplaceCenter, param.param_device.GridSpaceCenter, param.param_device.NumberPixels, (long long int) (param.param_device.NumberPixels * param.param_device.NumberPixels * (2 * param.param_device.maxDisplaceCenter / param.param_device.GridSpaceCenter + 1) * (2 * param.param_device.maxDisplaceCenter / param.param_device.GridSpaceCenter + 1))); +// printf("\tInner Loop Count (%d %d %d) %lld\n", param.param_device.maxDisplaceCenter, param.param_device.GridSpaceCenter, param.param_device.NumberPixels, (long long int) (param.param_device.NumberPixels * param.param_device.NumberPixels * (2 * param.param_device.maxDisplaceCenter / param.param_device.GridSpaceCenter + 1) * (2 * param.param_device.maxDisplaceCenter / param.param_device.GridSpaceCenter + 1))); for (int iOrient = 0; iOrient < param.nTotGridAngles; iOrient++) { // *************************************************************************************** -- GitLab