19 #include "ObjCryst/CrystVector/CrystVector.h"
20 #ifdef __VFN_GEOM_STRUCT_FACTOR_USE_POINTERS
27 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT const REAL *h,*k,*l; REAL*sf;\
28 h=hh.data();k=kk.data();l=ll.data();sf=sfsf.data(); for(long i=0;i<hh.numElements();i++){
29 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_END h++ ; k++ ; l++ ; sf++; };
38 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
39 #define __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
49 const CrystVector_REAL&hh,
50 const CrystVector_REAL&kk,
51 const CrystVector_REAL&ll,
52 CrystVector_REAL& sfsf)
54 __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
56 SF+=16*cos((H+K+L)/4)*(cos(H*x+L/4)*cos(K*y+H/4)*cos(L*z+K/4)
57 +cos(K*x+H/4)*cos(L*y+K/4)*cos(H*z+L/4)+cos(L*x+K/4)*cos(H*y+L/4)*cos(K*z+H/4)
58 +cos((H+K+L)/4)*(cos(K*x+L/4)*cos(H*y+K/4)*cos(L*z+H/4)
59 +cos(L*x+H/4)*cos(K*y+L/4)*cos(H*z+K/4)+cos(H*x+K/4)*cos(L*y+H/4)*cos(K*z+L/4)));
61 __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
74 #undef __VFN_GEOM_STRUCT_FACTOR_POINTERS_INIT
75 #undef __VFN_GEOM_STRUCT_FACTOR_POINTERS_END
77 #undef __VFN_GEOM_STRUCT_FACTOR_USE_POINTERS
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++.
void RealGeomStructFactor_230(const REAL x, const REAL y, const REAL z, const CrystVector_REAL &h, const CrystVector_REAL &k, const CrystVector_REAL &l, CrystVector_REAL &rsf)