source: sasmodels/sasmodels/models/core_shell_sphere.c @ d42dd4a

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since d42dd4a was d42dd4a, checked in by pkienzle, 14 months ago

fix compiler warnings for CUDA

  • Property mode set to 100644
File size: 776 bytes
Line 
1static double
2form_volume(double radius, double thickness)
3{
4    return M_4PI_3 * cube(radius + thickness);
5}
6
7static double
8effective_radius(int mode, double radius, double thickness)
9{
10    switch (mode) {
11    default:
12    case 1: // outer radius
13        return radius + thickness;
14    case 2: // core radius
15        return radius;
16    }
17}
18
19static void
20Fq(double q, double *F1, double *F2, double radius,
21   double thickness, double core_sld, double shell_sld, double solvent_sld) {
22    double form = core_shell_fq(q,
23                              radius,
24                              thickness,
25                              core_sld,
26                              shell_sld,
27                              solvent_sld);
28    *F1 = 1.0e-2*form;
29    *F2 = 1.0e-4*form*form;
30}
Note: See TracBrowser for help on using the repository browser.