ticket-1094-headless
Last change
on this file since 7f5aa4f was
54b0650,
checked in by Paul Kienzle <pkienzle@…>, 7 years ago
|
fix C interface to sldi after py3 conversion
|
-
Property mode set to
100644
|
File size:
787 bytes
|
Rev | Line | |
---|
[0957bb3a] | 1 | /** |
---|
| 2 | Computes the (magnetic) scattering form sld (n and m) profile |
---|
| 3 | */ |
---|
| 4 | #ifndef SLD2I_CLASS_H |
---|
| 5 | #define SLD2I_CLASS_H |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | * Base class |
---|
| 9 | */ |
---|
| 10 | typedef struct { |
---|
| 11 | // vectors |
---|
[54b0650] | 12 | int is_avg; |
---|
[0957bb3a] | 13 | int n_pix; |
---|
| 14 | double* x_val; |
---|
| 15 | double* y_val; |
---|
| 16 | double* z_val; |
---|
| 17 | double* sldn_val; |
---|
| 18 | double* mx_val; |
---|
| 19 | double* my_val; |
---|
| 20 | double* mz_val; |
---|
| 21 | double* vol_pix; |
---|
| 22 | // spin ratios |
---|
| 23 | double inspin; |
---|
| 24 | double outspin; |
---|
| 25 | double stheta; |
---|
| 26 | } GenI; |
---|
| 27 | |
---|
| 28 | // Constructor |
---|
[54b0650] | 29 | void initGenI(GenI*, int is_avg, int npix, double* x, double* y, double* z, |
---|
| 30 | double* sldn, double* mx, double* my, double* mz, double* voli, |
---|
[0957bb3a] | 31 | double in_spin, double out_spin, |
---|
| 32 | double s_theta); |
---|
| 33 | // compute function |
---|
| 34 | void genicomXY(GenI*, int npoints, double* qx, double* qy, double *I_out); |
---|
| 35 | void genicom(GenI*, int npoints, double* q, double *I_out); |
---|
| 36 | |
---|
| 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.