#include <stdlib.h>#include <stdio.h>#include <string.h>#include <math.h>#include "msmpot.h"Go to the source code of this file.
Definition at line 387 of file msmpot_internal.h.
Referenced by anterpolation, interpolation, latticecutoff, Msmpot_compute_shortrng_bin_hashing, setup_bins, setup_domain, setup_hierarchy, setup_mapinterp, and setup_mapinterpcoef_1d.
Definition at line 129 of file msmpot_internal.h.
Referenced by linklist_evaluation, linklist_hashing, and Msmpot_compute_shortrng_bin_hashing.
Definition at line 124 of file msmpot_internal.h.
Referenced by bin_evaluation, Msmpot_compute_shortrng_bin_hashing, and setup_bins.
Definition at line 126 of file msmpot_internal.h.
Referenced by linklist_evaluation, linklist_hashing, Msmpot_compute_shortrng_bin_hashing, and setup_domain.
Definition at line 127 of file msmpot_internal.h.
Referenced by linklist_evaluation, linklist_hashing, Msmpot_compute_shortrng_bin_hashing, and setup_domain.
Definition at line 128 of file msmpot_internal.h.
Referenced by linklist_evaluation, linklist_hashing, Msmpot_compute_shortrng_bin_hashing, and setup_domain.
Definition at line 117 of file msmpot_internal.h.
Referenced by Msmpot_configure, and Msmpot_set_defaults.
Definition at line 114 of file msmpot_internal.h.
Definition at line 110 of file msmpot_internal.h.
Referenced by Msmpot_configure, and Msmpot_set_defaults.
Definition at line 118 of file msmpot_internal.h.
Referenced by Msmpot_configure, and Msmpot_set_defaults.
Definition at line 122 of file msmpot_internal.h.
Referenced by Msmpot_configure, and Msmpot_set_defaults.
Definition at line 109 of file msmpot_internal.h.
Referenced by Msmpot_configure, and Msmpot_set_defaults.
Definition at line 376 of file msmpot_internal.h.
Referenced by Msmpot_check_params, Msmpot_compute_longrng, Msmpot_cuda_setup, Msmpot_use_cuda, setup_mapinterp, setup_mapinterpcoef_1d, and setup_periodic_hlevelparams_1d.
Definition at line 375 of file msmpot_internal.h.
Referenced by Msmpot_compute, Msmpot_compute_longrng, Msmpot_compute_longrng_cubic, Msmpot_compute_shortrng_bin_hashing, Msmpot_compute_shortrng_bin_neighborhood, Msmpot_compute_shortrng_bins, Msmpot_compute_shortrng_linklist, Msmpot_configure, Msmpot_cuda_compute_latcut, Msmpot_cuda_compute_shortrng, Msmpot_cuda_setup, Msmpot_cuda_setup_latcut, Msmpot_cuda_setup_shortrng, Msmpot_setup, Msmpot_use_cuda, set_device, setup_bins, setup_hierarchy, setup_mapinterp, and setup_mapinterpcoef_1d.
Definition at line 61 of file msmpot_internal.h.
Referenced by anterpolation, interpolation, latticecutoff, and setup_hierarchy.
Definition at line 104 of file msmpot_internal.h.
Referenced by anterpolation, interpolation, latticecutoff, and setup_hierarchy.
Value:
((a)->buffer=NULL, (a)->data=NULL, (a)->numbytes=0, (a)->maxbytes=0, \ (a)->i0=0, (a)->j0=0, (a)->k0=0, (a)->ni=0, (a)->nj=0, (a)->nk=0)
Definition at line 52 of file msmpot_internal.h.
Referenced by setup_hierarchy.
Definition at line 65 of file msmpot_internal.h.
Value:
do { \
int _i0=(__i0), _ni=(__ni); \
int _j0=(__j0), _nj=(__nj); \
int _k0=(__k0), _nk=(__nk); \
size_t _numbytes = (_nk * _nj) * (size_t) _ni * sizeof((a)->buffer[0]); \
if ((a)->maxbytes < _numbytes) { \
void *_t = realloc((a)->buffer, _numbytes); \
if (NULL == _t) return ERROR(MSMPOT_ERROR_MALLOC); \
(a)->buffer = (float *) _t; \
(a)->maxbytes = _numbytes; \
} \
(a)->numbytes = _numbytes; \
(a)->i0 = _i0, (a)->ni = _ni; \
(a)->j0 = _j0, (a)->nj = _nj; \
(a)->k0 = _k0, (a)->nk = _nk; \
(a)->data = (a)->buffer + GRID_INDEX((a), -_i0, -_j0, -_k0); \
} while (0)Definition at line 71 of file msmpot_internal.h.
Referenced by setup_hierarchy.
Value:
typedef struct TYPE##Grid_t { \
TYPE *buffer; \
TYPE *data; \
size_t numbytes; \
size_t maxbytes; \
int i0, j0, k0; \
int ni, nj, nk; \
} TYPE##GridDefinition at line 41 of file msmpot_internal.h.
Definition at line 138 of file msmpot_internal.h.
Definition at line 137 of file msmpot_internal.h.
Referenced by anterpolation, interpolation, and setup_hierarchy.
Definition at line 134 of file msmpot_internal.h.
Referenced by bin_evaluation, cuda_shortrange, interpolation_factored, latticecutoff, linklist_evaluation, linklist_hashing, Msmpot_compute_shortrng_bin_hashing, Msmpot_cuda_condense_qgrids, prolongation, restriction, setup_domain, setup_hierarchy, and setup_origin.
Definition at line 135 of file msmpot_internal.h.
Referenced by bin_evaluation, cuda_shortrange, interpolation_factored, latticecutoff, linklist_evaluation, linklist_hashing, Msmpot_compute_shortrng_bin_hashing, Msmpot_cuda_condense_qgrids, prolongation, restriction, setup_domain, setup_hierarchy, and setup_origin.
Definition at line 136 of file msmpot_internal.h.
Referenced by bin_evaluation, cuda_shortrange, interpolation_factored, latticecutoff, linklist_evaluation, linklist_hashing, Msmpot_compute_shortrng_bin_hashing, Msmpot_cuda_condense_qgrids, prolongation, restriction, setup_domain, setup_hierarchy, and setup_origin.
Definition at line 407 of file msmpot_internal.h.
Referenced by Msmpot_compute, Msmpot_compute_longrng_cubic, Msmpot_compute_shortrng_bins, Msmpot_compute_shortrng_linklist, Msmpot_cuda_cleanup, Msmpot_cuda_compute_shortrng, Msmpot_cuda_setup, Msmpot_cuda_setup_shortrng, and Msmpot_setup.
Value:
do { \
float _s = s; \
float _g = 0; \
ASSERT(0 <= _s && _s <= 1); \
switch (split) { \
case MSMPOT_SPLIT_TAYLOR2: \
_g = 1 + (_s-1)*(-1.f/2 + (_s-1)*(3.f/8)); \
break; \
case MSMPOT_SPLIT_TAYLOR3: \
_g = 1 + (_s-1)*(-1.f/2 + (_s-1)*(3.f/8 + (_s-1)*(-5.f/16))); \
break; \
case MSMPOT_SPLIT_TAYLOR4: \
_g = 1 + (_s-1)*(-1.f/2 + (_s-1)*(3.f/8 + (_s-1)*(-5.f/16 \
+ (_s-1)*(35.f/128)))); \
break; \
default: \
return ERRMSG(MSMPOT_ERROR_SUPPORT, \
"splitting function not implemented"); \
} \
*(pg) = _g; \
} while (0)Definition at line 420 of file msmpot_internal.h.
Referenced by bin_evaluation, linklist_evaluation, Msmpot_cuda_setup_latcut, and setup_hierarchy.
Definition at line 36 of file msmpot_internal.h.
Definition at line 21 of file msmpot_setup.c.
Definition at line 132 of file msmpot_setup.c.
Definition at line 351 of file msmpot_compute.c.
Referenced by Msmpot_compute_shortrng_bins, and Msmpot_cuda_compute_shortrng.
Definition at line 218 of file msmpot_compute.c.
Referenced by Msmpot_compute_shortrng_bins, and Msmpot_cuda_setup_shortrng.
Definition at line 167 of file msmpot_compute.c.
References Msmpot_t::dx, Msmpot_t::dy, and Msmpot_t::dz.
Referenced by Msmpot_compute.
Definition at line 608 of file msmpot_compute.c.
Referenced by Msmpot_compute, Msmpot_compute_shortrng_bins, and Msmpot_cuda_compute_shortrng.
Definition at line 56 of file msmpot_setup.c.