aboutsummaryrefslogtreecommitdiff
path: root/src/reflist.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-04 17:50:56 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:31 +0100
commitefd6562f9156ddff2fe073c97b2ddbf25c45688e (patch)
tree1d0320634e5cacf9130900b6a013010503a34f41 /src/reflist.c
parentb67429762f02d906fdc3ab14da4577c958937679 (diff)
Separate "refinable" and "scalable" concepts
Diffstat (limited to 'src/reflist.c')
-rw-r--r--src/reflist.c35
1 files changed, 31 insertions, 4 deletions
diff --git a/src/reflist.c b/src/reflist.c
index a8bfb4f6..19d5b1a4 100644
--- a/src/reflist.c
+++ b/src/reflist.c
@@ -67,6 +67,10 @@ struct _refldata {
/* Non-zero if this reflection can be used for scaling */
int scalable;
+ /* Non-zero if this reflection should be used as a "guide star" for
+ * post refinement */
+ int refinable;
+
/* Intensity */
double intensity;
double esd_i;
@@ -371,8 +375,7 @@ void get_partial(const Reflection *refl, double *r1, double *r2, double *p,
* get_scalable:
* @refl: A %Reflection
*
- * Returns: non-zero if this reflection was marked as useful for scaling and
- * post refinement.
+ * Returns: non-zero if this reflection can be scaled.
*
**/
int get_scalable(const Reflection *refl)
@@ -382,6 +385,19 @@ int get_scalable(const Reflection *refl)
/**
+ * get_refinable:
+ * @refl: A %Reflection
+ *
+ * Returns: non-zero if this reflection can be used for post refinement.
+ *
+ **/
+int get_refinable(const Reflection *refl)
+{
+ return refl->data.refinable;
+}
+
+
+/**
* get_redundancy:
* @refl: A %Reflection
*
@@ -523,8 +539,7 @@ void set_int(Reflection *refl, double intensity)
/**
* set_scalable:
* @refl: A %Reflection
- * @scalable: Non-zero if this reflection was marked as useful for scaling and
- * post refinement.
+ * @scalable: Non-zero if this reflection should be scaled.
*
**/
void set_scalable(Reflection *refl, int scalable)
@@ -534,6 +549,18 @@ void set_scalable(Reflection *refl, int scalable)
/**
+ * set_refinable:
+ * @refl: A %Reflection
+ * @scalable: Non-zero if this reflection can be used for post refinement.
+ *
+ **/
+void set_refinable(Reflection *refl, int refinable)
+{
+ refl->data.refinable = refinable;
+}
+
+
+/**
* set_redundancy:
* @refl: A %Reflection
* @red: New redundancy for the reflection