Nek5000
SEM for Incompressible NS
|
Go to the source code of this file.
Classes | |
struct | hash_data |
struct | findpts_local_data |
Macros | |
#define | obbox TOKEN_PASTE(obbox_ ,D) |
#define | obbox_calc TOKEN_PASTE(PREFIXED_NAME(obbox_calc_),D) |
#define | obbox_test TOKEN_PASTE(obbox_test_ ,D) |
#define | hash_data TOKEN_PASTE(findpts_local_hash_data_,D) |
#define | hash_index TOKEN_PASTE(hash_index_ ,D) |
#define | hash_setfac TOKEN_PASTE(hash_setfac_ ,D) |
#define | hash_range TOKEN_PASTE(hash_range_ ,D) |
#define | hash_count TOKEN_PASTE(hash_count_ ,D) |
#define | hash_opt_size TOKEN_PASTE(hash_opt_size_ ,D) |
#define | hash_bb TOKEN_PASTE(hash_bb_ ,D) |
#define | hash_build TOKEN_PASTE(hash_build_ ,D) |
#define | hash_free TOKEN_PASTE(hash_free_ ,D) |
#define | findpts_el_data TOKEN_PASTE(findpts_el_data_ ,D) |
#define | findpts_el_pt TOKEN_PASTE(findpts_el_pt_ ,D) |
#define | findpts_el_setup TOKEN_PASTE(PREFIXED_NAME(findpts_el_setup_),D) |
#define | findpts_el_free TOKEN_PASTE(PREFIXED_NAME(findpts_el_free_ ),D) |
#define | findpts_el TOKEN_PASTE(PREFIXED_NAME(findpts_el_ ),D) |
#define | findpts_el_eval TOKEN_PASTE(PREFIXED_NAME(findpts_el_eval_ ),D) |
#define | findpts_el_start TOKEN_PASTE(findpts_el_start_ ,D) |
#define | findpts_el_points TOKEN_PASTE(findpts_el_points_ ,D) |
#define | findpts_local_data TOKEN_PASTE(findpts_local_data_,D) |
#define | map_points_to_els TOKEN_PASTE(map_points_to_els_ ,D) |
#define | findpts_local_setup TOKEN_PASTE(PREFIXED_NAME(findpts_local_setup_),D) |
#define | findpts_local_free TOKEN_PASTE(PREFIXED_NAME(findpts_local_free_ ),D) |
#define | findpts_local TOKEN_PASTE(PREFIXED_NAME(findpts_local_ ),D) |
#define | findpts_local_eval TOKEN_PASTE(PREFIXED_NAME(findpts_local_eval_ ),D) |
#define | FOR_LOOP() |
#define | FOR_LOOP() |
#define | AT(T, var, i) (T*)( (char*)var##_base +(i)*var##_stride ) |
#define | CAT(T, var, i) (const T*)((const char*)var##_base +(i)*var##_stride ) |
#define | CATD(T, var, i, d) (const T*)((const char*)var##_base[d]+(i)*var##_stride[d]) |
Functions | |
static uint | hash_index (const struct hash_data *p, const double x[D]) |
static void | hash_setfac (struct hash_data *p, const uint n) |
static struct uint_range | hash_range (const struct hash_data *p, unsigned d, const struct dbl_range r) |
static uint | hash_count (struct hash_data *p, const struct obbox *const obb, const uint nel, const uint n) |
static uint | hash_opt_size (struct hash_data *p, const struct obbox *const obb, const uint nel, const uint max_size) |
static void | hash_bb (struct hash_data *p, const struct obbox *const obb, const uint nel) |
static void | hash_build (struct hash_data *p, const struct obbox *const obb, const uint nel, const uint max_size) |
static void | hash_free (struct hash_data *p) |
void | findpts_local_setup (struct findpts_local_data *const fd, const double *const elx[D], const unsigned n[D], const uint nel, const unsigned m[D], const double bbox_tol, const uint max_hash_size, const unsigned npt_max, const double newt_tol) |
void | findpts_local_free (struct findpts_local_data *const fd) |
static void | map_points_to_els (struct array *const map, uint *const code_base, const unsigned code_stride, const double *const x_base[D], const unsigned x_stride[D], const uint npt, const struct findpts_local_data *const fd, buffer *buf) |
void | findpts_local (uint *const code_base, const unsigned code_stride, uint *const el_base, const unsigned el_stride, double *const r_base, const unsigned r_stride, double *const dist2_base, const unsigned dist2_stride, const double *const x_base[D], const unsigned x_stride[D], const uint npt, struct findpts_local_data *const fd, buffer *buf) |
void | findpts_local_eval (double *const out_base, const unsigned out_stride, const uint *const el_base, const unsigned el_stride, const double *const r_base, const unsigned r_stride, const uint npt, const double *const in, struct findpts_local_data *const fd) |
Definition at line 271 of file findpts_local_imp.h.
Referenced by findpts_local(), and findpts_local_eval().
Definition at line 273 of file findpts_local_imp.h.
Referenced by findpts_local_eval().
Definition at line 275 of file findpts_local_imp.h.
Referenced by findpts_local().
#define findpts_el TOKEN_PASTE(PREFIXED_NAME(findpts_el_ ),D) |
Definition at line 18 of file findpts_local_imp.h.
Referenced by findpts_local().
#define findpts_el_data TOKEN_PASTE(findpts_el_data_ ,D) |
Definition at line 14 of file findpts_local_imp.h.
Referenced by findpts_local(), and findpts_local_eval().
#define findpts_el_eval TOKEN_PASTE(PREFIXED_NAME(findpts_el_eval_ ),D) |
Definition at line 19 of file findpts_local_imp.h.
Referenced by findpts_local_eval().
#define findpts_el_free TOKEN_PASTE(PREFIXED_NAME(findpts_el_free_ ),D) |
Definition at line 17 of file findpts_local_imp.h.
Referenced by findpts_local_free().
#define findpts_el_points TOKEN_PASTE(findpts_el_points_ ,D) |
Definition at line 21 of file findpts_local_imp.h.
Referenced by findpts_local().
#define findpts_el_pt TOKEN_PASTE(findpts_el_pt_ ,D) |
Definition at line 15 of file findpts_local_imp.h.
Referenced by findpts_local().
#define findpts_el_setup TOKEN_PASTE(PREFIXED_NAME(findpts_el_setup_),D) |
Definition at line 16 of file findpts_local_imp.h.
Referenced by findpts_local_setup().
#define findpts_el_start TOKEN_PASTE(findpts_el_start_ ,D) |
Definition at line 20 of file findpts_local_imp.h.
Referenced by findpts_local().
#define findpts_local TOKEN_PASTE(PREFIXED_NAME(findpts_local_ ),D) |
Definition at line 26 of file findpts_local_imp.h.
#define findpts_local_data TOKEN_PASTE(findpts_local_data_,D) |
Definition at line 22 of file findpts_local_imp.h.
#define findpts_local_eval TOKEN_PASTE(PREFIXED_NAME(findpts_local_eval_ ),D) |
Definition at line 27 of file findpts_local_imp.h.
#define findpts_local_free TOKEN_PASTE(PREFIXED_NAME(findpts_local_free_ ),D) |
Definition at line 25 of file findpts_local_imp.h.
#define findpts_local_setup TOKEN_PASTE(PREFIXED_NAME(findpts_local_setup_),D) |
Definition at line 24 of file findpts_local_imp.h.
#define FOR_LOOP | ( | ) |
Referenced by hash_build().
#define FOR_LOOP | ( | ) |
#define hash_bb TOKEN_PASTE(hash_bb_ ,D) |
Definition at line 11 of file findpts_local_imp.h.
Referenced by hash_build().
#define hash_build TOKEN_PASTE(hash_build_ ,D) |
Definition at line 12 of file findpts_local_imp.h.
Referenced by findpts_local_setup().
#define hash_count TOKEN_PASTE(hash_count_ ,D) |
Definition at line 9 of file findpts_local_imp.h.
Referenced by hash_opt_size().
#define hash_data TOKEN_PASTE(findpts_local_hash_data_,D) |
Definition at line 5 of file findpts_local_imp.h.
#define hash_free TOKEN_PASTE(hash_free_ ,D) |
Definition at line 13 of file findpts_local_imp.h.
Referenced by findpts_local_free().
#define hash_index TOKEN_PASTE(hash_index_ ,D) |
Definition at line 6 of file findpts_local_imp.h.
Referenced by map_points_to_els().
#define hash_opt_size TOKEN_PASTE(hash_opt_size_ ,D) |
Definition at line 10 of file findpts_local_imp.h.
Referenced by hash_build().
#define hash_range TOKEN_PASTE(hash_range_ ,D) |
Definition at line 8 of file findpts_local_imp.h.
Referenced by hash_build(), and hash_count().
#define hash_setfac TOKEN_PASTE(hash_setfac_ ,D) |
Definition at line 7 of file findpts_local_imp.h.
Referenced by hash_count(), and hash_opt_size().
#define map_points_to_els TOKEN_PASTE(map_points_to_els_ ,D) |
Definition at line 23 of file findpts_local_imp.h.
Referenced by findpts_local().
#define obbox TOKEN_PASTE(obbox_ ,D) |
Definition at line 2 of file findpts_local_imp.h.
Referenced by findpts_local_setup().
#define obbox_calc TOKEN_PASTE(PREFIXED_NAME(obbox_calc_),D) |
Definition at line 3 of file findpts_local_imp.h.
Referenced by findpts_local_setup().
#define obbox_test TOKEN_PASTE(obbox_test_ ,D) |
Definition at line 4 of file findpts_local_imp.h.
Referenced by map_points_to_els().
void findpts_local | ( | uint *const | code_base, |
const unsigned | code_stride, | ||
uint *const | el_base, | ||
const unsigned | el_stride, | ||
double *const | r_base, | ||
const unsigned | r_stride, | ||
double *const | dist2_base, | ||
const unsigned | dist2_stride, | ||
const double *const | x_base[D], | ||
const unsigned | x_stride[D], | ||
const uint | npt, | ||
struct findpts_local_data *const | fd, | ||
buffer * | buf | ||
) |
Definition at line 278 of file findpts_local_imp.h.
References array_free, AT, CATD, CODE_BORDER, CODE_INTERNAL, CODE_NOT_FOUND, D, index_el::el, elx, findpts_local_data::elx, findpts_local_data::fed, findpts_el, findpts_el_data, findpts_el_points, findpts_el_pt, findpts_el_start, i, index_el::index, map_points_to_els, array::n, findpts_local_data::ntot, p, array::ptr, findpts_local_data::tol, uint, and x.
void findpts_local_eval | ( | double *const | out_base, |
const unsigned | out_stride, | ||
const uint *const | el_base, | ||
const unsigned | el_stride, | ||
const double *const | r_base, | ||
const unsigned | r_stride, | ||
const uint | npt, | ||
const double *const | in, | ||
struct findpts_local_data *const | fd | ||
) |
Definition at line 335 of file findpts_local_imp.h.
References AT, CAT, findpts_local_data::fed, findpts_el_data, findpts_el_eval, i, findpts_local_data::ntot, out, p, and uint.
void findpts_local_free | ( | struct findpts_local_data *const | fd | ) |
Definition at line 222 of file findpts_local_imp.h.
References findpts_local_data::fed, findpts_el_free, hash_free, findpts_local_data::hd, and findpts_local_data::obb.
void findpts_local_setup | ( | struct findpts_local_data *const | fd, |
const double *const | elx[D], | ||
const unsigned | n[D], | ||
const uint | nel, | ||
const unsigned | m[D], | ||
const double | bbox_tol, | ||
const uint | max_hash_size, | ||
const unsigned | npt_max, | ||
const double | newt_tol | ||
) |
Definition at line 204 of file findpts_local_imp.h.
References D, elx, findpts_local_data::elx, findpts_local_data::fed, findpts_el_setup, hash_build, findpts_local_data::hd, n, findpts_local_data::ntot, findpts_local_data::obb, obbox, obbox_calc, tmalloc, and findpts_local_data::tol.
Definition at line 128 of file findpts_local_imp.h.
References hash_data::bnd, D, dbl_range_merge(), dbl_range::max, dbl_range::min, uint, and x.
|
static |
Definition at line 144 of file findpts_local_imp.h.
References D, FOR_LOOP, hash_bb, hash_data::hash_n, hash_opt_size, hash_range, i, uint_range::max, dbl_range::max, hash_data::max, hash_data::offset, sum(), tcalloc, tmalloc, uint, WHEN_3D, and x.
|
static |
Definition at line 96 of file findpts_local_imp.h.
References D, hash_range, hash_setfac, i, uint_range::max, uint_range::min, uint, and x.
|
static |
Definition at line 193 of file findpts_local_imp.h.
References hash_data::offset.
Definition at line 69 of file findpts_local_imp.h.
References hash_data::bnd, hash_data::fac, hash_index_aux(), hash_data::hash_n, dbl_range::min, n, uint, WHEN_3D, and x.
|
static |
Definition at line 112 of file findpts_local_imp.h.
References D, hash_count, hash_setfac, uint, and WHEN_3D.
|
static |
Definition at line 84 of file findpts_local_imp.h.
References iceil(), ifloor(), uint_range::max, uint_range::min, sint, and uint.
Definition at line 77 of file findpts_local_imp.h.
References hash_data::bnd, D, hash_data::fac, hash_data::hash_n, dbl_range::max, dbl_range::min, and n.
|
static |
Definition at line 229 of file findpts_local_imp.h.
References array_init, array_reserve, CODE_NOT_FOUND, D, index_el::el, hash_index, findpts_local_data::hd, index_el::index, array::n, findpts_local_data::obb, obbox_test, hash_data::offset, array::ptr, sarray_sort, uint, and x.