From efd6562f9156ddff2fe073c97b2ddbf25c45688e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 4 Jul 2011 17:50:56 +0200 Subject: Separate "refinable" and "scalable" concepts --- src/reflist.c | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) (limited to 'src/reflist.c') 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) @@ -381,6 +384,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) @@ -533,6 +548,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 -- cgit v1.2.3