Changeset e1bdc7e in sasmodels


Ignore:
Timestamp:
Mar 21, 2016 2:23:39 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
7ff3cf3, 3a45c2c
Parents:
4a72d1a
Message:

add some debugging statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_iq.c

    r303d8d6 re1bdc7e  
    5050    ) 
    5151{ 
    52 printf("hello\n"); 
     52printf("aliasing\n"); 
    5353  // Storage for the current parameter values.  These will be updated as we 
    5454  // walk the polydispersity cube. 
     
    5656  double *pvec = (double *)(&local_pars);  // Alias named parameters with a vector 
    5757 
     58printf("allocating\n"); 
    5859  local int offset[NPARS-2]; 
    5960 
    60 #if defined(USE_SHORTCUT_OPTIMIZATION) 
    61   if (pd_length[0] == 1) { 
     61#if 1 // defined(USE_SHORTCUT_OPTIMIZATION) 
     62printf("dereferencing %p as %d\n", problem, problem->pd_length[0]); 
     63  if (problem->pd_length[0] == 1) { 
    6264    // Shouldn't need to copy!! 
     65    printf("copying\n"); 
    6366    for (int k=0; k < NPARS; k++) { 
    6467      pvec[k] = pars[k+2];  // skip scale and background 
    6568    } 
     69    printf("calculating\n"); 
    6670 
    6771    #ifdef USE_OPENMP 
     
    6973    #endif 
    7074    for (int i=0; i < nq; i++) { 
    71     { 
    7275      const double scattering = CALL_IQ(q, i, local_pars); 
    7376      result[i] += pars[0]*scattering + pars[1]; 
    7477    } 
     78    printf("returning\n"); 
    7579    return; 
    7680  } 
     81  printf("falling through\n"); 
    7782#endif 
    7883 
Note: See TracChangeset for help on using the changeset viewer.