Changeset ef85a09 in sasmodels
- Timestamp:
- Dec 14, 2017 4:07:26 PM (7 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- b85227d
- Parents:
- 108e70e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/guide/plugin.rst
r108e70e ref85a09 499 499 **source=['fn.c', ...]** includes the listed C source files in the 500 500 program before *Iq* and *form_volume* are defined. This allows you to 501 extend the library of C functions available to your model. Note that 501 extend the library of C functions available to your model. 502 503 *c_code* includes arbitrary C code into your kernel, which can be 504 handy for defining helper functions for *Iq* and *form_volume*. Note that 502 505 you can put the full function definition for *Iq* and *form_volume* 503 (include function declaration) into an external C file and add it to the list504 of sources instead of defining it within the python model file.506 (include function declaration) into *c_code* as well, or put them into an 507 external C file and add that file to the list of sources. 505 508 506 509 Models are defined using double precision declarations for the … … 526 529 527 530 #define INVALID(v) (v.bell_radius < v.radius) 531 532 The INVALID define can go into *Iq*, or *c_code*, or an external C file 533 listed in *source*. 528 534 529 535 Oriented Shapes
Note: See TracChangeset
for help on using the changeset viewer.