예제 #1
0
파일: nearfield.c 프로젝트: fweik/scafacos
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);
}
예제 #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);
}