Changeset 9eb3632 in sasmodels for sasmodels/generate.py
- Timestamp:
- Jul 23, 2016 12:54:17 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 7b7da6b
- Parents:
- 6a0d6aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
rb966a96 r9eb3632 576 576 source.append("#define MAX_PD %s"%partable.max_pd) 577 577 source.append("#define NPARS %d"%partable.npars) 578 source.append("#define NUM_MAGNETIC %d" % len(magpars)) 578 source.append("#define NUM_MAGNETIC %d" % partable.nmagnetic) 579 source.append("#define NUM_VALUES %d" % partable.nvalues) 579 580 source.append("#define MAGNETIC_PARS %s"%",".join(str(k) for k in magpars)) 580 581 … … 593 594 code = kernel[0] 594 595 path = kernel[1].replace('\\', '\\\\') 595 source= [596 iq = [ 596 597 # define the Iq kernel 597 598 "#define KERNEL_NAME %s_Iq" % name, … … 601 602 "#undef CALL_IQ", 602 603 "#undef KERNEL_NAME", 603 604 ] 605 606 iqxy = [ 604 607 # define the Iqxy kernel from the same source with different #defines 605 608 "#define KERNEL_NAME %s_Iqxy" % name, … … 609 612 "#undef CALL_IQ", 610 613 "#undef KERNEL_NAME", 611 614 ] 615 616 imagnetic = [ 612 617 # define the Imagnetic kernel 613 618 "#define KERNEL_NAME %s_Imagnetic" % name, … … 620 625 "#undef KERNEL_NAME", 621 626 ] 622 return source627 return iq+iqxy+imagnetic 623 628 624 629
Note: See TracChangeset
for help on using the changeset viewer.