diff options
author | Thomas White <taw@physics.org> | 2015-03-05 13:59:57 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-03-05 14:48:33 +0100 |
commit | 7c0f0e9fd834dbde3381cafeabf11a065e6c8de8 (patch) | |
tree | ac0ade51ee057fe34e498f2b206ba803c32aa5f9 /libcrystfel/src/crystal.c | |
parent | 52de34ffed3d331ce4ae8e68ae3fdd3776e6e833 (diff) |
Crystal: add Bfac
Diffstat (limited to 'libcrystfel/src/crystal.c')
-rw-r--r-- | libcrystfel/src/crystal.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/libcrystfel/src/crystal.c b/libcrystfel/src/crystal.c index c6e0a9dd..e1ad5dfe 100644 --- a/libcrystfel/src/crystal.c +++ b/libcrystfel/src/crystal.c @@ -3,11 +3,11 @@ * * A class representing a single crystal * - * Copyright © 2013 Deutsches Elektronen-Synchrotron DESY, - * a research centre of the Helmholtz Association. + * Copyright © 2013-2015 Deutsches Elektronen-Synchrotron DESY, + * a research centre of the Helmholtz Association. * * Authors: - * 2013 Thomas White <taw@physics.org> + * 2013-2015 Thomas White <taw@physics.org> * * This file is part of CrystFEL. * @@ -56,6 +56,7 @@ struct _crystal UnitCell *cell; double m; /* Mosaicity in radians */ double osf; + double Bfac; double profile_radius; int pr_dud; double resolution_limit; @@ -188,6 +189,12 @@ double crystal_get_osf(Crystal *cryst) } +double crystal_get_Bfac(Crystal *cryst) +{ + return cryst->Bfac; +} + + int crystal_get_user_flag(Crystal *cryst) { return cryst->user_flag; @@ -251,6 +258,12 @@ void crystal_set_osf(Crystal *cryst, double osf) } +void crystal_set_Bfac(Crystal *cryst, double Bfac) +{ + cryst->Bfac = Bfac; +} + + void crystal_set_user_flag(Crystal *cryst, int user_flag) { cryst->user_flag = user_flag; |