Changeset 12f4c19 in sasmodels
- Timestamp:
- Oct 26, 2018 11:58:21 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- d42dd4a
- Parents:
- 869fd7b
- Location:
- sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_iq.c
r07646b6 r12f4c19 471 471 #if defined(CALL_FQ) // COMPUTE_F1_F2 is true 472 472 // unoriented 1D returning <F> and <F^2> 473 // Note that F1 and F2 are returned from CALL_FQ by reference, and the 474 // user of the CALL_KERNEL macro below is assuming that F1 and F2 are defined. 473 475 double qk; 474 476 double F1, F2; … … 480 482 #elif defined(CALL_FQ_A) 481 483 // unoriented 2D return <F> and <F^2> 484 // Note that the CALL_FQ_A macro is computing _F1_slot and _F2_slot by 485 // reference then returning _F2_slot. We are calling them _F1_slot and 486 // _F2_slot here so they don't conflict with _F1 and _F2 in the macro 487 // expansion, or with the use of F2 = CALL_KERNEL() when it is used below. 482 488 double qx, qy; 483 double F1, F2;489 double _F1_slot, _F2_slot; 484 490 #define FETCH_Q() do { qx = q[2*q_index]; qy = q[2*q_index+1]; } while (0) 485 491 #define BUILD_ROTATION() do {} while(0) 486 492 #define APPLY_ROTATION() do {} while(0) 487 #define CALL_KERNEL() CALL_FQ_A(sqrt(qx*qx+qy*qy), F1,F2,local_values.table)493 #define CALL_KERNEL() CALL_FQ_A(sqrt(qx*qx+qy*qy),_F1_slot,_F2_slot,local_values.table) 488 494 489 495 #elif defined(CALL_IQ) -
sasmodels/models/vesicle.c
re44432d r12f4c19 36 36 37 37 { 38 double vol,contrast,f ,f2;38 double vol,contrast,f; 39 39 40 40 // core first, then add in shell
Note: See TracChangeset
for help on using the changeset viewer.