diff options
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 83bb0d0e..d21108fd 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -54,6 +54,34 @@ /* Maximum number of iterations of NLSq to do for each image per macrocycle. */ #define MAX_CYCLES (10) +const char *str_prflag(enum prflag flag) +{ + switch ( flag ) { + + case PRFLAG_OK : + return "OK"; + + case PRFLAG_FEWREFL : + return "not enough reflections"; + + case PRFLAG_SOLVEFAIL : + return "PR solve failed"; + + case PRFLAG_EARLY : + return "early rejection"; + + case PRFLAG_CC : + return "low CC"; + + case PRFLAG_BIGB : + return "B too big"; + + default : + return "Unknown flag"; + } +} + + /* Returns dp(gauss)/dr at "r" */ static double gaussian_fraction_gradient(double r, double R) { |