Exemple #1
0
fcs_float ifcs_p2nfft_compute_self_potential(
    const void* param
    )
{
  ifcs_p2nfft_data_struct *d = (ifcs_p2nfft_data_struct*) param;
  
  if (d->reg_kernel == FCS_P2NFFT_REG_KERNEL_EWALD)
    return compute_self_potential_periodic(param);
  else /* d->reg_kernel == FCS_P2NFFT_REG_KERNEL_OTHER */
    return compute_self_potential_nonperiodic(param);
}
Exemple #2
0
fcs_float ifcs_p2nfft_compute_self_potential(
    const void* param
    )
{
  ifcs_p2nfft_data_struct *d = (ifcs_p2nfft_data_struct*) param;
  
  if(d->num_periodic_dims == 0)
    return compute_self_potential_nonperiodic(param);
  else
    return compute_self_potential_periodic(param);
}