Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions sasmodels/kernel_iq.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,16 +666,15 @@ After expansion, the loop struction will look like the following:
// ====== construct the loops =======

// Pointers to the start of the dispersity and weight vectors, if needed.
// The variable "step" is the current position in the dispersity loop.
// It will be incremented each time a new point in the mesh is accumulated,
// and used to test whether we have reached pd_stop.
#if MAX_PD>0
pglobal const double *pd_value = values + NUM_VALUES;
pglobal const double *pd_weight = pd_value + details->num_weights;
int step = pd_start;
#endif

// The variable "step" is the current position in the dispersity loop.
// It will be incremented each time a new point in the mesh is accumulated,
// and used to test whether we have reached pd_stop.
int step = pd_start;

// *** define loops for each of 0, 1, 2, ..., modelinfo.MAX_PD-1 ***

// define looping variables
Expand Down Expand Up @@ -805,8 +804,8 @@ PD_OUTERMOST_WEIGHT(MAX_PD)
}
}
// close nested loops
++step;
#if MAX_PD>0
++step;
PD_CLOSE(0)
#endif
#if MAX_PD>1
Expand Down
Loading