#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <math.h>
#include <float.h>
#include <string.h>
#include "moab/FindPtFuncs.h"
Go to the source code of this file.
Classes | |
struct | lob_bnd_base |
struct | lob_bnd_ext |
struct | obbox_data_2 |
struct | obbox_data_3 |
Macros | |
#define | DIAGNOSTICS 0 |
#define | DIAGNOSTICS 0 |
#define | DIAGNOSTICS 0 |
Functions | |
static void | lob_bnd_base_alloc (lob_bnd_base *p, unsigned n, unsigned m) |
static void | lob_bnd_base_free (lob_bnd_base *p) |
static void | lob_bnd_ext_alloc (lob_bnd_ext *p, unsigned n, unsigned m) |
static void | lob_bnd_ext_free (lob_bnd_ext *p) |
static void | lob_bnd_base_setup (lob_bnd_base *p, const realType *z, const realType *w) |
static void | lob_bnd_ext_setup (lob_bnd_ext *p, const realType *z, const realType *w) |
static void | lob_bnd_lines (const lob_bnd_base *p, const realType *u, realType *a, realType *b) |
static void | lob_bnd_1 (const lob_bnd_base *p, const realType *u, realType bnd[2], realType *work) |
static void | lob_bnd_2 (const lob_bnd_base *pr, const lob_bnd_ext *ps, const realType *u, realType bnd[2], realType *work) |
static void | mat_inv_2 (const realType A[4], realType inv[4]) |
static void | mat_inv_3 (const realType A[9], realType inv[9]) |
static void | mat_app_2r (realType y[2], const realType A[4], const realType x[2]) |
static void | mat_app_2c (realType y[2], const realType A[4], const realType x[2]) |
static void | mat_app_3r (realType y[3], const realType A[9], const realType x[3]) |
static void | mat_app_3c (realType y[3], const realType A[9], const realType x[3]) |
static void | tinyla_solve_2 (realType x[2], const realType A[4], const realType b[2]) |
static void | tinyla_solve_3 (realType x[3], const realType A[9], const realType b[3]) |
static void | tinyla_solve_sym_2 (realType *x0, realType *x1, const realType A[3], realType b0, realType b1) |
static void | obbox_data_alloc_2 (obbox_data_2 *p, const unsigned n[2], const unsigned m[2]) |
static void | obbox_data_free_2 (obbox_data_2 *p) |
static void | obbox_data_alloc_3 (obbox_data_3 *p, const unsigned n[3], const unsigned m[3]) |
static void | obbox_data_free_3 (obbox_data_3 *p) |
static obbox_data_2 * | obbox_setup_2 (const realType *const z[2], const realType *const w[2], const unsigned n[2], const unsigned m[2]) |
static obbox_data_3 * | obbox_setup_3 (const realType *const z[3], const realType *const w[3], const unsigned n[3], const unsigned m[3]) |
static void | obbox_free_2 (obbox_data_2 *p) |
static void | obbox_free_3 (obbox_data_3 *p) |
int | obbox_axis_test_2 (const obbox_2 *p, const realType x[2]) |
int | obbox_axis_test_3 (const obbox_3 *p, const realType x[3]) |
int | obbox_test_2 (const obbox_2 *p, const realType x[2], realType r[2]) |
int | obbox_test_3 (const obbox_3 *p, const realType x[3], realType r[3]) |
void | obbox_calc_tfm_2 (const realType *x, const realType *y, unsigned n, unsigned s, const realType c0[2], const realType A[4], realType *u) |
void | obbox_calc_tfm_3 (const realType *x, const realType *y, const realType *z, unsigned nr, unsigned sr, unsigned ns, unsigned ss, const realType c0[3], const realType A[9], realType *u) |
void | obbox_merge_2 (realType *b, const realType *ob) |
void | obbox_merge_3 (realType *b, const realType *ob) |
void | obbox_side_2 (const realType *x, const realType *y, unsigned n, unsigned s, const realType c0[2], const realType A[4], realType *work, const lob_bnd_base *lbd, realType bnd[4]) |
void | obbox_side_3 (const realType *x, const realType *y, const realType *z, unsigned nr, unsigned sr, unsigned ns, unsigned ss, const realType c0[3], const realType A[9], realType *work, const lob_bnd_base *dr, const lob_bnd_ext *ds, realType bnd[6]) |
void | obbox_bnd_2 (const obbox_data_2 *p, const realType *x, const realType *y, const realType c0[2], const realType A[4], realType bnd[4]) |
void | obbox_bnd_3 (const obbox_data_3 *p, const realType *x, const realType *y, const realType *z, const realType c0[3], const realType A[9], realType bnd[6]) |
void | obbox_calc_2 (const obbox_data_2 *p, realType tol, const realType *x, const realType *y, obbox_2 *b) |
void | obbox_calc_3 (const obbox_data_3 *p, realType tol, const realType *x, const realType *y, const realType *z, obbox_3 *b) |
static int | ifloor (realType x) |
static int | iceil (realType x) |
static unsigned | hash_index_helper (realType low, realType fac, unsigned n, realType x) |
static uint | hash_index_2 (const hash_data_2 *p, const realType x[2]) |
static uint | hash_index_3 (const hash_data_3 *p, const realType x[3]) |
static void | hash_setfac_2 (hash_data_2 *p, unsigned n) |
static void | hash_setfac_3 (hash_data_3 *p, unsigned n) |
static void | hash_range_2 (const hash_data_2 *p, uint i, unsigned d, unsigned *ia, unsigned *ib) |
static void | hash_range_3 (const hash_data_3 *p, uint i, unsigned d, unsigned *ia, unsigned *ib) |
static uint | hash_count_2 (hash_data_2 *p, uint nel, unsigned n) |
static uint | hash_count_3 (hash_data_3 *p, uint nel, unsigned n) |
static uint | hash_opt_size_2 (hash_data_2 *p, uint nel, uint max_size) |
static uint | hash_opt_size_3 (hash_data_3 *p, uint nel, uint max_size) |
static void | hash_getbb_2 (hash_data_2 *p, const realType *const elx[2], const unsigned n[2], uint nel, realType tol) |
static void | hash_getbb_3 (hash_data_3 *p, const realType *const elx[3], const unsigned n[3], uint nel, realType tol) |
static void | hash_build_2 (hash_data_2 *p, const realType *const x[2], const unsigned n[2], uint nel, uint max_hash_size, realType tol) |
static void | hash_build_3 (hash_data_3 *p, const realType *const x[3], const unsigned n[3], uint nel, uint max_hash_size, realType tol) |
static void | hash_free_2 (hash_data_2 *p) |
static void | hash_free_3 (hash_data_3 *p) |
static unsigned | opt_constr (unsigned constraints, unsigned d) |
static void | opt_constr_unpack_2 (unsigned constraints, unsigned *c) |
static void | opt_constr_unpack_3 (unsigned constraints, unsigned *c) |
static unsigned | opt_constr_pack_2 (const unsigned *c) |
static unsigned | opt_constr_pack_3 (const unsigned *c) |
void | opt_alloc_3 (opt_data_3 *p, lagrange_data *ld) |
void | opt_free_3 (opt_data_3 *p) |
static void | opt_vol_set_3 (opt_data_3 *p, const realType r[3]) |
static void | opt_vol_intp_3 (opt_data_3 *p) |
void | opt_vol_set_intp_3 (opt_data_3 *p, const realType r[3]) |
static void | opt_face_proj_3 (opt_data_3 *p) |
static void | opt_face_set_3 (opt_data_3 *p, const realType r[3], unsigned constr) |
static void | opt_face_intp_3 (opt_data_3 *p) |
static void | opt_face_set_intp_3 (opt_data_3 *p, const realType r[3], unsigned constr) |
static void | opt_face_hess_3 (opt_data_3 *p, realType hess[9]) |
static void | opt_edge_proj_3 (opt_data_3 *p) |
static void | opt_edge_set_3 (opt_data_3 *p, const realType r[3], unsigned constr) |
static void | opt_edge_intp_3 (opt_data_3 *p) |
static void | opt_edge_set_intp_3 (opt_data_3 *p, const realType r[3], unsigned constr) |
static void | opt_edge_hess_3 (opt_data_3 *p, realType hess[3]) |
static void | opt_point_proj_3 (opt_data_3 *p) |
static void | opt_point_set_3 (opt_data_3 *p, unsigned constr) |
static void | opt_point_intp_3 (opt_data_3 *p) |
static void | opt_point_set_intp_3 (opt_data_3 *p, unsigned constr) |
double | opt_findpt_3 (opt_data_3 *p, const realType *const elx[3], const realType xstar[3], realType r[3], unsigned *constr) |
void | opt_alloc_2 (opt_data_2 *p, lagrange_data *ld) |
void | opt_free_2 (opt_data_2 *p) |
static void | opt_area_set_2 (opt_data_2 *p, const realType r[2]) |
static void | opt_area_intp_2 (opt_data_2 *p) |
static void | opt_area_set_intp_2 (opt_data_2 *p, const realType r[2]) |
static void | opt_edge_proj_2 (opt_data_2 *p) |
static void | opt_edge_set_2 (opt_data_2 *p, const realType r[2], unsigned constr) |
static void | opt_edge_intp_2 (opt_data_2 *p) |
static void | opt_edge_set_intp_2 (opt_data_2 *p, const realType r[2], unsigned constr) |
static void | opt_edge_hess_2 (opt_data_2 *p, realType hess[2]) |
static void | opt_point_proj_2 (opt_data_2 *p) |
static void | opt_point_set_2 (opt_data_2 *p, unsigned constr) |
static void | opt_point_intp_2 (opt_data_2 *p) |
static void | opt_point_set_intp_2 (opt_data_2 *p, unsigned constr) |
double | opt_findpt_2 (opt_data_2 *p, const realType *const elx[2], const realType xstar[2], realType r[2], unsigned *constr) |
static void | findpt_list_sort (findpt_listel **A, unsigned n) |
findpt_data_2 * | findpt_setup_2 (const realType *const xw[2], const unsigned n[2], uint nel, uint max_hash_size, realType bbox_tol) |
findpt_data_3 * | findpt_setup_3 (const realType *const xw[3], const unsigned n[3], uint nel, uint max_hash_size, realType bbox_tol) |
void | findpt_free_2 (findpt_data_2 *p) |
void | findpt_free_3 (findpt_data_3 *p) |
const realType * | findpt_allbnd_2 (const findpt_data_2 *p) |
const realType * | findpt_allbnd_3 (const findpt_data_3 *p) |
static void | findpt_hash_2 (findpt_data_2 *p, const realType x[2]) |
static void | findpt_hash_3 (findpt_data_3 *p, const realType x[3]) |
static int | findpt_guess_2 (findpt_data_2 *p, const realType x[2], uint el, realType r[2], realType *dist) |
static int | findpt_guess_3 (findpt_data_3 *p, const realType x[3], uint el, realType r[3], realType *dist) |
static int | findpt_pass_2 (findpt_data_2 *p, const realType x[2], uint *el, realType r[2], realType *dist_min) |
static int | findpt_pass_3 (findpt_data_3 *p, const realType x[3], uint *el, realType r[3], realType *dist_min) |
int | findpt_2 (findpt_data_2 *p, const realType x[2], int guess, uint *el, realType r[2], realType *dist) |
int | findpt_3 (findpt_data_3 *p, const realType x[3], int guess, uint *el, realType r[3], realType *dist) |
void | findpt_weights_2 (findpt_data_2 *p, const realType r[2]) |
void | findpt_weights_3 (findpt_data_3 *p, const realType r[3]) |
double | findpt_eval_2 (findpt_data_2 *p, const realType *u) |
double | findpt_eval_3 (findpt_data_3 *p, const realType *u) |
Variables | |
const unsigned | opt_no_constraints_2 = 3 + 1 |
const unsigned | opt_no_constraints_3 = 9 + 3 + 1 |
static const char | opt_constr_num_2 [9] = { 2, 1, 2, 1, 0, 1, 2, 1, 2 } |
static const char | opt_constr_num_3 [27] |
static const char | opt_constr_dir_3 [27] |
static const char | opt_constr_not [27] |
static const char | opt_constr_wide [27] |
static const unsigned | opt_other1_3 [3] = { 1, 0, 0 } |
static const unsigned | opt_other2_3 [3] = { 2, 2, 1 } |
int findpt_2 | ( | findpt_data_2 * | p, |
const realType | x[2], | ||
int | guess, | ||
uint * | el, | ||
realType | r[2], | ||
realType * | dist | ||
) |
Definition at line 2251 of file findpt.c.
References findpt_data_2::end, findpt_guess_2(), findpt_hash_2(), findpt_pass_2(), and findpt_data_2::sorted.
int findpt_3 | ( | findpt_data_3 * | p, |
const realType | x[3], | ||
int | guess, | ||
uint * | el, | ||
realType | r[3], | ||
realType * | dist | ||
) |
Definition at line 2259 of file findpt.c.
References findpt_data_3::end, findpt_guess_3(), findpt_hash_3(), findpt_pass_3(), and findpt_data_3::sorted.
const realType* findpt_allbnd_2 | ( | const findpt_data_2 * | p | ) |
Definition at line 2107 of file findpt.c.
References hash_data_2::bnd, and findpt_data_2::hash.
const realType* findpt_allbnd_3 | ( | const findpt_data_3 * | p | ) |
Definition at line 2112 of file findpt.c.
References hash_data_3::bnd, and findpt_data_3::hash.
double findpt_eval_2 | ( | findpt_data_2 * | p, |
const realType * | u | ||
) |
Definition at line 2283 of file findpt.c.
References lagrange_data::J, findpt_data_2::ld, lagrange_data::n, findpt_data_2::od_work, and tensor_i2().
double findpt_eval_3 | ( | findpt_data_3 * | p, |
const realType * | u | ||
) |
Definition at line 2288 of file findpt.c.
References lagrange_data::J, findpt_data_3::ld, lagrange_data::n, findpt_data_3::od_work, and tensor_i3().
void findpt_free_2 | ( | findpt_data_2 * | p | ) |
Definition at line 2079 of file findpt.c.
References findpt_data_2::hash, hash_free_2(), findpt_data_2::list, findpt_data_2::od, opt_free_2(), findpt_data_2::sorted, and findpt_data_2::z.
void findpt_free_3 | ( | findpt_data_3 * | p | ) |
Definition at line 2093 of file findpt.c.
References findpt_data_3::hash, hash_free_3(), findpt_data_3::list, findpt_data_3::od, opt_free_3(), findpt_data_3::sorted, and findpt_data_3::z.
|
static |
Definition at line 2161 of file findpt.c.
References findpt_data_2::hash, findpt_data_2::nptel, hash_data_2::obb, obbox_axis_test_2(), obbox_test_2(), findpt_data_2::od, opt_findpt_2(), opt_no_constraints_2, and findpt_data_2::xw.
Referenced by findpt_2().
|
static |
Definition at line 2175 of file findpt.c.
References findpt_data_3::hash, findpt_data_3::nptel, hash_data_3::obb, obbox_axis_test_3(), obbox_test_3(), findpt_data_3::od, opt_findpt_3(), opt_no_constraints_3, and findpt_data_3::xw.
Referenced by findpt_3().
|
static |
Definition at line 2117 of file findpt.c.
References findpt_listel::dist, findpt_listel::el, findpt_data_2::end, findpt_list_sort(), findpt_data_2::hash, hash_index_2(), findpt_data_2::list, hash_data_2::obb, obbox_axis_test_2(), obbox_test_2(), hash_data_2::offset, findpt_listel::r, r1norm_2(), and findpt_data_2::sorted.
Referenced by findpt_2().
|
static |
Definition at line 2139 of file findpt.c.
References findpt_listel::dist, findpt_listel::el, findpt_data_3::end, findpt_list_sort(), findpt_data_3::hash, hash_index_3(), findpt_data_3::list, hash_data_3::obb, obbox_axis_test_3(), obbox_test_3(), hash_data_3::offset, findpt_listel::r, r1norm_3(), and findpt_data_3::sorted.
Referenced by findpt_3().
|
static |
Definition at line 1975 of file findpt.c.
References findpt_listel::dist.
Referenced by findpt_hash_2(), and findpt_hash_3().
|
static |
Definition at line 2192 of file findpt.c.
References obbox_2::axis_bnd, findpt_listel::el, findpt_data_2::end, findpt_data_2::hash, findpt_data_2::nptel, hash_data_2::obb, findpt_data_2::od, opt_findpt_2(), opt_no_constraints_2, findpt_listel::r, r2norm_2(), findpt_data_2::sorted, and findpt_data_2::xw.
Referenced by findpt_2().
|
static |
Definition at line 2218 of file findpt.c.
References obbox_3::axis_bnd, findpt_listel::el, findpt_data_3::end, findpt_data_3::hash, findpt_data_3::nptel, hash_data_3::obb, findpt_data_3::od, opt_findpt_3(), opt_no_constraints_3, findpt_listel::r, r2norm_3(), findpt_data_3::sorted, and findpt_data_3::xw.
Referenced by findpt_3().
findpt_data_2* findpt_setup_2 | ( | const realType *const | xw[2], |
const unsigned | n[2], | ||
uint | nel, | ||
uint | max_hash_size, | ||
realType | bbox_tol | ||
) |
Definition at line 2011 of file findpt.c.
References findpt_data_2::hash, hash_build_2(), lagrange_setup(), findpt_data_2::ld, findpt_data_2::list, lobatto_nodes(), hash_data_2::max, findpt_data_2::nptel, findpt_data_2::od, findpt_data_2::od_work, opt_alloc_2(), findpt_data_2::sorted, tmalloc, opt_data_2::work, findpt_data_2::xw, and findpt_data_2::z.
findpt_data_3* findpt_setup_3 | ( | const realType *const | xw[3], |
const unsigned | n[3], | ||
uint | nel, | ||
uint | max_hash_size, | ||
realType | bbox_tol | ||
) |
Definition at line 2045 of file findpt.c.
References findpt_data_3::hash, hash_build_3(), lagrange_setup(), findpt_data_3::ld, findpt_data_3::list, lobatto_nodes(), hash_data_3::max, findpt_data_3::nptel, findpt_data_3::od, findpt_data_3::od_work, opt_alloc_3(), findpt_data_3::sorted, tmalloc, opt_data_3::work, findpt_data_3::xw, and findpt_data_3::z.
void findpt_weights_2 | ( | findpt_data_2 * | p, |
const realType | r[2] | ||
) |
Definition at line 2270 of file findpt.c.
References lagrange_0(), and findpt_data_2::ld.
void findpt_weights_3 | ( | findpt_data_3 * | p, |
const realType | r[3] | ||
) |
|
static |
Definition at line 1016 of file findpt.c.
References hash_getbb_2(), hash_data_2::hash_n, hash_opt_size_2(), hash_range_2(), hash_data_2::max, hash_data_2::obb, hash_data_2::offset, size, moab::sum(), tcalloc, tmalloc, and uint.
Referenced by findpt_setup_2().
|
static |
Definition at line 1066 of file findpt.c.
References hash_getbb_3(), hash_data_3::hash_n, hash_opt_size_3(), hash_range_3(), hash_data_3::max, hash_data_3::obb, hash_data_3::offset, size, moab::sum(), tcalloc, tmalloc, and uint.
Referenced by findpt_setup_3().
|
static |
Definition at line 879 of file findpt.c.
References hash_range_2(), and hash_setfac_2().
Referenced by hash_opt_size_2().
|
static |
Definition at line 896 of file findpt.c.
References hash_range_3(), and hash_setfac_3().
Referenced by hash_opt_size_3().
|
static |
Definition at line 1120 of file findpt.c.
References hash_data_2::obb, and hash_data_2::offset.
Referenced by findpt_free_2().
|
static |
Definition at line 1126 of file findpt.c.
References hash_data_3::obb, and hash_data_3::offset.
Referenced by findpt_free_3().
|
static |
Definition at line 949 of file findpt.c.
References obbox_2::axis_bnd, hash_data_2::bnd, lobatto_nodes(), lobatto_weights(), hash_data_2::obb, obbox_calc_2(), obbox_free_2(), obbox_merge_2(), obbox_setup_2(), and tmalloc.
Referenced by hash_build_2().
|
static |
Definition at line 982 of file findpt.c.
References obbox_3::axis_bnd, hash_data_3::bnd, lobatto_nodes(), lobatto_weights(), hash_data_3::obb, obbox_calc_3(), obbox_free_3(), obbox_merge_3(), obbox_setup_3(), and tmalloc.
Referenced by hash_build_3().
|
static |
Definition at line 826 of file findpt.c.
References hash_data_2::bnd, hash_data_2::fac, hash_index_helper(), and hash_data_2::hash_n.
Referenced by findpt_hash_2().
|
static |
Definition at line 833 of file findpt.c.
References hash_data_3::bnd, hash_data_3::fac, hash_index_helper(), and hash_data_3::hash_n.
Referenced by findpt_hash_3().
Definition at line 819 of file findpt.c.
References ifloor().
Referenced by hash_index_2(), and hash_index_3().
|
static |
Definition at line 915 of file findpt.c.
References hash_count_2(), hash_setfac_2(), nl, size, and uint.
Referenced by hash_build_2().
|
static |
Definition at line 932 of file findpt.c.
References hash_count_3(), hash_setfac_3(), nl, size, and uint.
Referenced by hash_build_3().
|
static |
Definition at line 857 of file findpt.c.
References obbox_2::axis_bnd, hash_data_2::bnd, hash_data_2::fac, hash_data_2::hash_n, iceil(), ifloor(), and hash_data_2::obb.
Referenced by hash_build_2(), and hash_count_2().
|
static |
Definition at line 868 of file findpt.c.
References obbox_3::axis_bnd, hash_data_3::bnd, hash_data_3::fac, hash_data_3::hash_n, iceil(), ifloor(), and hash_data_3::obb.
Referenced by hash_build_3(), and hash_count_3().
|
static |
Definition at line 842 of file findpt.c.
References hash_data_2::bnd, hash_data_2::fac, and hash_data_2::hash_n.
Referenced by hash_count_2(), and hash_opt_size_2().
|
static |
Definition at line 849 of file findpt.c.
References hash_data_3::bnd, hash_data_3::fac, and hash_data_3::hash_n.
Referenced by hash_count_3(), and hash_opt_size_3().
|
static |
Definition at line 810 of file findpt.c.
References mbceil.
Referenced by hash_range_2(), and hash_range_3().
|
static |
Definition at line 801 of file findpt.c.
References mbfloor.
Referenced by hash_index_helper(), hash_range_2(), and hash_range_3().
|
static |
Definition at line 186 of file findpt.c.
References lob_bnd_lines(), and lob_bnd_base::m.
Referenced by obbox_side_2().
|
static |
Definition at line 200 of file findpt.c.
References lob_bnd_ext::b, lob_bnd_base::h, lob_bnd_lines(), lob_bnd_base::m, lob_bnd_base::n, nr, lob_bnd_ext::ovn, lob_bnd_ext::ovp, lob_bnd_base::Q0, lob_bnd_base::Q1, lob_bnd_ext::uvn, lob_bnd_ext::uvp, and lob_bnd_base::z.
Referenced by obbox_side_3().
|
static |
Definition at line 80 of file findpt.c.
References lob_bnd_base::h, lob_bnd_base::m, lob_bnd_base::n, lob_bnd_base::ov, lob_bnd_base::Q0, lob_bnd_base::Q1, tmalloc, and lob_bnd_base::uv.
Referenced by obbox_data_alloc_2(), and obbox_data_alloc_3().
|
static |
Definition at line 90 of file findpt.c.
References lob_bnd_base::Q0.
Referenced by obbox_data_free_2(), and obbox_data_free_3().
|
static |
Definition at line 114 of file findpt.c.
References lob_bnd_base::h, lagrange_weights_deriv(), lob_bnd_base::m, mbcos, MOAB_POLY_PI, lob_bnd_base::n, lob_bnd_base::ov, lob_bnd_base::Q0, lob_bnd_base::Q1, tmalloc, lob_bnd_base::uv, and lob_bnd_base::z.
Referenced by lob_bnd_ext_setup(), obbox_setup_2(), and obbox_setup_3().
|
static |
Definition at line 95 of file findpt.c.
References lob_bnd_ext::b, lob_bnd_base::h, lob_bnd_base::m, lob_bnd_base::n, lob_bnd_base::ov, lob_bnd_ext::ovn, lob_bnd_ext::ovp, lob_bnd_base::Q0, lob_bnd_base::Q1, tmalloc, lob_bnd_base::uv, lob_bnd_ext::uvn, and lob_bnd_ext::uvp.
Referenced by obbox_data_alloc_3().
|
static |
Definition at line 109 of file findpt.c.
References lob_bnd_ext::b, and lob_bnd_base::Q0.
Referenced by obbox_data_free_3().
|
static |
Definition at line 145 of file findpt.c.
References lob_bnd_ext::b, lob_bnd_base_setup(), lob_bnd_base::m, lob_bnd_base::n, lob_bnd_base::ov, lob_bnd_ext::ovn, lob_bnd_ext::ovp, lob_bnd_base::uv, lob_bnd_ext::uvn, and lob_bnd_ext::uvp.
Referenced by obbox_setup_3().
|
static |
Definition at line 164 of file findpt.c.
References lob_bnd_base::h, lob_bnd_base::m, lob_bnd_base::n, lob_bnd_base::ov, lob_bnd_base::Q0, lob_bnd_base::Q1, lob_bnd_base::uv, and lob_bnd_base::z.
Referenced by lob_bnd_1(), and lob_bnd_2().
Definition at line 294 of file findpt.c.
Referenced by opt_findpt_2().
Definition at line 288 of file findpt.c.
Referenced by tinyla_solve_2().
Definition at line 273 of file findpt.c.
Referenced by obbox_calc_3(), and tinyla_solve_3().
Definition at line 504 of file findpt.c.
References obbox_2::axis_bnd.
Referenced by findpt_guess_2(), and findpt_hash_2().
Definition at line 509 of file findpt.c.
References obbox_3::axis_bnd.
Referenced by findpt_guess_3(), and findpt_hash_3().
void obbox_bnd_2 | ( | const obbox_data_2 * | p, |
const realType * | x, | ||
const realType * | y, | ||
const realType | c0[2], | ||
const realType | A[4], | ||
realType | bnd[4] | ||
) |
Definition at line 641 of file findpt.c.
References obbox_data_2::dr, obbox_data_2::ds, lob_bnd_base::n, nr, obbox_merge_2(), obbox_side_2(), and obbox_data_2::work.
Referenced by obbox_calc_2().
void obbox_bnd_3 | ( | const obbox_data_3 * | p, |
const realType * | x, | ||
const realType * | y, | ||
const realType * | z, | ||
const realType | c0[3], | ||
const realType | A[9], | ||
realType | bnd[6] | ||
) |
Definition at line 667 of file findpt.c.
References lob_bnd_ext::b, obbox_data_3::dr, obbox_data_3::ds, obbox_data_3::dt, lob_bnd_base::n, nr, obbox_merge_3(), obbox_side_3(), and obbox_data_3::work.
Referenced by obbox_calc_3().
void obbox_calc_2 | ( | const obbox_data_2 * | p, |
realType | tol, | ||
const realType * | x, | ||
const realType * | y, | ||
obbox_2 * | b | ||
) |
Definition at line 696 of file findpt.c.
References obbox_2::A, obbox_2::axis_bnd, obbox_data_2::dr, obbox_data_2::Dr0, obbox_data_2::ds, obbox_data_2::Ds0, obbox_data_2::Jr0, obbox_data_2::Js0, mat_inv_2(), lob_bnd_base::n, obbox_bnd_2(), tensor_ig2(), obbox_data_2::work, and obbox_2::x.
Referenced by hash_getbb_2().
void obbox_calc_3 | ( | const obbox_data_3 * | p, |
realType | tol, | ||
const realType * | x, | ||
const realType * | y, | ||
const realType * | z, | ||
obbox_3 * | b | ||
) |
Definition at line 723 of file findpt.c.
References obbox_3::A, obbox_3::axis_bnd, lob_bnd_ext::b, obbox_data_3::dr, obbox_data_3::Dr0, obbox_data_3::ds, obbox_data_3::Ds0, obbox_data_3::dt, obbox_data_3::Dt0, obbox_data_3::Jr0, obbox_data_3::Js0, obbox_data_3::Jt0, mat_inv_3(), lob_bnd_base::n, obbox_bnd_3(), tensor_ig3(), obbox_data_3::work, and obbox_3::x.
Referenced by hash_getbb_3().
void obbox_calc_tfm_2 | ( | const realType * | x, |
const realType * | y, | ||
unsigned | n, | ||
unsigned | s, | ||
const realType | c0[2], | ||
const realType | A[4], | ||
realType * | u | ||
) |
void obbox_calc_tfm_3 | ( | const realType * | x, |
const realType * | y, | ||
const realType * | z, | ||
unsigned | nr, | ||
unsigned | sr, | ||
unsigned | ns, | ||
unsigned | ss, | ||
const realType | c0[3], | ||
const realType | A[9], | ||
realType * | u | ||
) |
|
static |
Definition at line 409 of file findpt.c.
References obbox_data_2::dr, obbox_data_2::Dr0, obbox_data_2::ds, obbox_data_2::Ds0, obbox_data_2::Jr0, obbox_data_2::Js0, lob_bnd_base_alloc(), tmalloc, umax_2, and obbox_data_2::work.
Referenced by obbox_setup_2().
|
static |
Definition at line 428 of file findpt.c.
References obbox_data_3::dr, obbox_data_3::Dr0, obbox_data_3::ds, obbox_data_3::Ds0, obbox_data_3::dt, obbox_data_3::Dt0, obbox_data_3::Jr0, obbox_data_3::Js0, obbox_data_3::Jt0, lob_bnd_base_alloc(), lob_bnd_ext_alloc(), tmalloc, and obbox_data_3::work.
Referenced by obbox_setup_3().
|
static |
Definition at line 421 of file findpt.c.
References obbox_data_2::dr, obbox_data_2::ds, obbox_data_2::Jr0, and lob_bnd_base_free().
Referenced by obbox_free_2().
|
static |
Definition at line 446 of file findpt.c.
References obbox_data_3::dr, obbox_data_3::ds, obbox_data_3::dt, obbox_data_3::Jr0, lob_bnd_base_free(), and lob_bnd_ext_free().
Referenced by obbox_free_3().
|
static |
Definition at line 492 of file findpt.c.
References obbox_data_free_2().
Referenced by hash_getbb_2().
|
static |
Definition at line 498 of file findpt.c.
References obbox_data_free_3().
Referenced by hash_getbb_3().
|
static |
Definition at line 454 of file findpt.c.
References obbox_data_2::dr, obbox_data_2::Dr0, obbox_data_2::ds, obbox_data_2::Ds0, obbox_data_2::Jr0, obbox_data_2::Js0, lagrange_weights_deriv(), lob_bnd_base_setup(), obbox_data_alloc_2(), tmalloc, and umax_2.
Referenced by hash_getbb_2().
|
static |
Definition at line 472 of file findpt.c.
References obbox_data_3::dr, obbox_data_3::Dr0, obbox_data_3::ds, obbox_data_3::Ds0, obbox_data_3::dt, obbox_data_3::Dt0, obbox_data_3::Jr0, obbox_data_3::Js0, obbox_data_3::Jt0, lagrange_weights_deriv(), lob_bnd_base_setup(), lob_bnd_ext_setup(), obbox_data_alloc_3(), and tmalloc.
Referenced by hash_getbb_3().
void obbox_side_2 | ( | const realType * | x, |
const realType * | y, | ||
unsigned | n, | ||
unsigned | s, | ||
const realType | c0[2], | ||
const realType | A[4], | ||
realType * | work, | ||
const lob_bnd_base * | lbd, | ||
realType | bnd[4] | ||
) |
Definition at line 602 of file findpt.c.
References lob_bnd_1(), and obbox_calc_tfm_2().
Referenced by obbox_bnd_2().
void obbox_side_3 | ( | const realType * | x, |
const realType * | y, | ||
const realType * | z, | ||
unsigned | nr, | ||
unsigned | sr, | ||
unsigned | ns, | ||
unsigned | ss, | ||
const realType | c0[3], | ||
const realType | A[9], | ||
realType * | work, | ||
const lob_bnd_base * | dr, | ||
const lob_bnd_ext * | ds, | ||
realType | bnd[6] | ||
) |
Definition at line 618 of file findpt.c.
References lob_bnd_2(), nr, and obbox_calc_tfm_3().
Referenced by obbox_bnd_3().
Definition at line 515 of file findpt.c.
References obbox_2::A, mbabs, and obbox_2::x.
Referenced by findpt_guess_2(), and findpt_hash_2().
Definition at line 526 of file findpt.c.
References obbox_3::A, mbabs, and obbox_3::x.
Referenced by findpt_guess_3(), and findpt_hash_3().
void opt_alloc_2 | ( | opt_data_2 * | p, |
lagrange_data * | ld | ||
) |
Definition at line 1662 of file findpt.c.
References opt_data_2::ed, opt_edge_data_2::fd1, opt_data_2::ld, lagrange_data::n, nr, opt_data_2::size, tmalloc, umax_2, opt_data_2::work, and opt_edge_data_2::x.
Referenced by findpt_setup_2(), and moab::Element::SpectralQuad::Init().
void opt_alloc_3 | ( | opt_data_3 * | p, |
lagrange_data * | ld | ||
) |
Definition at line 1251 of file findpt.c.
References opt_data_3::ed, opt_data_3::fd, opt_edge_data_3::fd1, opt_edge_data_3::fd2, opt_face_data_3::fdn, opt_data_3::ld, lagrange_data::n, nr, opt_data_3::size, tmalloc, opt_data_3::work, opt_face_data_3::x, and opt_edge_data_3::x.
Referenced by findpt_setup_3(), moab::ElemUtil::hex_findpt(), moab::Element::SpectralHex::Init(), moab::SpectralHex::initFcn(), and moab::element_utility::Spectral_hex_map< _Matrix >::initialize_spectral_hex().
|
static |
Definition at line 1688 of file findpt.c.
References opt_data_2::elx, opt_data_2::jac, opt_data_2::ld, tensor_ig2(), opt_data_2::work, and opt_data_2::x.
Referenced by opt_area_set_intp_2().
|
static |
Definition at line 1681 of file findpt.c.
References lagrange_1(), and opt_data_2::ld.
Referenced by opt_area_set_intp_2().
|
static |
Definition at line 1698 of file findpt.c.
References opt_area_intp_2(), and opt_area_set_2().
Referenced by opt_findpt_2().
|
static |
Definition at line 1215 of file findpt.c.
References opt_constr_wide.
Referenced by opt_edge_proj_2(), opt_edge_proj_3(), and opt_face_proj_3().
|
static |
Definition at line 1235 of file findpt.c.
Referenced by opt_findpt_2().
|
static |
Definition at line 1240 of file findpt.c.
Referenced by opt_findpt_3().
|
static |
Definition at line 1220 of file findpt.c.
References opt_constr_wide.
Referenced by opt_findpt_2(), and opt_point_proj_2().
|
static |
Definition at line 1227 of file findpt.c.
References opt_constr_wide.
Referenced by opt_findpt_3(), and opt_point_proj_3().
|
static |
Definition at line 1759 of file findpt.c.
References lagrange_data::D2, opt_edge_data_2::de, opt_data_2::ed, lagrange_2u(), opt_data_2::ld, lagrange_data::n, tensor_i1(), and opt_edge_data_2::x.
Referenced by opt_findpt_2().
|
static |
Definition at line 1453 of file findpt.c.
References lagrange_data::D2, opt_edge_data_3::de, opt_data_3::ed, lagrange_2u(), opt_data_3::ld, lagrange_data::n, tensor_i1(), and opt_edge_data_3::x.
Referenced by opt_findpt_3().
|
static |
Definition at line 1741 of file findpt.c.
References lagrange_data::D, opt_edge_data_2::d1, opt_edge_data_2::de, opt_data_2::ed, opt_edge_data_2::fd1, lagrange_data::J, opt_data_2::jac, opt_data_2::ld, lagrange_data::n, tensor_i1(), tensor_ig1(), opt_edge_data_2::x, and opt_data_2::x.
Referenced by opt_edge_set_intp_2().
|
static |
Definition at line 1433 of file findpt.c.
References lagrange_data::D, opt_edge_data_3::d1, opt_edge_data_3::d2, opt_edge_data_3::de, opt_data_3::ed, opt_edge_data_3::fd1, opt_edge_data_3::fd2, lagrange_data::J, opt_data_3::jac, opt_data_3::ld, lagrange_data::n, tensor_i1(), tensor_ig1(), opt_edge_data_3::x, and opt_data_3::x.
Referenced by opt_edge_set_intp_3().
|
static |
Definition at line 1704 of file findpt.c.
References opt_edge_data_2::constraints, opt_edge_data_2::d1, lagrange_data::D_z0, lagrange_data::D_zn, opt_edge_data_2::de, opt_data_2::ed, opt_data_2::elx, opt_edge_data_2::fd1, opt_data_2::ld, lagrange_data::n, opt_constr(), opt_data_2::size, and opt_edge_data_2::x.
Referenced by opt_edge_set_2().
|
static |
Definition at line 1387 of file findpt.c.
References opt_edge_data_3::constraints, opt_edge_data_3::d1, opt_edge_data_3::d2, lagrange_data::D_z0, lagrange_data::D_zn, opt_edge_data_3::de, opt_data_3::ed, opt_data_3::elx, opt_edge_data_3::fd1, opt_edge_data_3::fd2, opt_data_3::ld, lagrange_data::n, opt_constr(), opt_data_3::size, and opt_edge_data_3::x.
Referenced by opt_edge_set_3().
|
static |
Definition at line 1729 of file findpt.c.
References opt_edge_data_2::constraints, opt_edge_data_2::d1, opt_edge_data_2::de, opt_data_2::ed, lagrange_1(), opt_data_2::ld, opt_constr_not, and opt_edge_proj_2().
Referenced by opt_edge_set_intp_2(), and opt_findpt_2().
|
static |
Definition at line 1420 of file findpt.c.
References opt_edge_data_3::constraints, opt_edge_data_3::d1, opt_edge_data_3::d2, opt_edge_data_3::de, opt_data_3::ed, lagrange_1(), opt_data_3::ld, opt_constr_not, opt_edge_proj_3(), opt_other1_3, and opt_other2_3.
Referenced by opt_edge_set_intp_3(), and opt_findpt_3().
|
static |
Definition at line 1753 of file findpt.c.
References opt_edge_intp_2(), and opt_edge_set_2().
Referenced by opt_findpt_2().
|
static |
Definition at line 1447 of file findpt.c.
References opt_edge_intp_3(), and opt_edge_set_3().
Referenced by opt_findpt_3().
|
static |
Definition at line 1368 of file findpt.c.
References lagrange_data::D, opt_face_data_3::d1, lagrange_data::D2, opt_face_data_3::d2, opt_data_3::fd, lagrange_data::J, lagrange_2u(), opt_data_3::ld, lagrange_data::n, tensor_i2(), tensor_ig2(), opt_data_3::work, and opt_face_data_3::x.
Referenced by opt_findpt_3().
|
static |
Definition at line 1346 of file findpt.c.
References lagrange_data::D, opt_face_data_3::d1, opt_face_data_3::d2, opt_face_data_3::dn, opt_data_3::fd, opt_face_data_3::fdn, lagrange_data::J, opt_data_3::jac, opt_data_3::ld, lagrange_data::n, tensor_i2(), tensor_ig2(), opt_data_3::work, opt_face_data_3::x, and opt_data_3::x.
Referenced by opt_face_set_intp_3().
|
static |
Definition at line 1307 of file findpt.c.
References opt_face_data_3::constraints, opt_face_data_3::d1, opt_face_data_3::d2, lagrange_data::D_z0, lagrange_data::D_zn, opt_face_data_3::dn, opt_data_3::elx, opt_data_3::fd, opt_face_data_3::fdn, opt_data_3::ld, lagrange_data::n, opt_constr(), opt_data_3::size, and opt_face_data_3::x.
Referenced by opt_face_set_3().
|
static |
Definition at line 1331 of file findpt.c.
References opt_face_data_3::constraints, opt_face_data_3::d1, opt_face_data_3::d2, opt_face_data_3::dn, opt_data_3::fd, lagrange_1(), opt_data_3::ld, opt_constr_dir_3, opt_face_proj_3(), opt_other1_3, and opt_other2_3.
Referenced by opt_face_set_intp_3(), and opt_findpt_3().
|
static |
Definition at line 1362 of file findpt.c.
References opt_face_intp_3(), and opt_face_set_3().
Referenced by opt_findpt_3().
double opt_findpt_2 | ( | opt_data_2 * | p, |
const realType *const | elx[2], | ||
const realType | xstar[2], | ||
realType | r[2], | ||
unsigned * | constr | ||
) |
Definition at line 1818 of file findpt.c.
References opt_edge_data_2::constraints, opt_point_data_2::constraints, opt_edge_data_2::d1, opt_edge_data_2::de, DIAGNOSTICS, opt_data_2::ed, opt_data_2::elx, opt_data_2::jac, mat_app_2c(), MOAB_POLY_EPS, opt_area_set_intp_2(), opt_constr_num_2, opt_constr_pack_2(), opt_constr_unpack_2(), opt_edge_hess_2(), opt_edge_set_2(), opt_edge_set_intp_2(), opt_no_constraints_2, opt_point_set_2(), opt_point_set_intp_2(), opt_data_2::pd, r1norm_2(), r2norm_2(), tinyla_solve_2(), and opt_data_2::x.
Referenced by findpt_guess_2(), findpt_pass_2(), moab::Element::SpectralQuad::ievaluate(), and moab::SpectralQuad::reverseEvalFcn().
double opt_findpt_3 | ( | opt_data_3 * | p, |
const realType *const | elx[3], | ||
const realType | xstar[3], | ||
realType | r[3], | ||
unsigned * | constr | ||
) |
Definition at line 1512 of file findpt.c.
References opt_face_data_3::constraints, opt_edge_data_3::constraints, opt_point_data_3::constraints, opt_face_data_3::d1, opt_edge_data_3::d1, opt_face_data_3::d2, opt_edge_data_3::d2, opt_edge_data_3::de, DIAGNOSTICS, opt_face_data_3::dn, opt_data_3::ed, opt_data_3::elx, opt_data_3::fd, opt_data_3::jac, mat_app_3c(), MOAB_POLY_EPS, opt_constr_num_3, opt_constr_pack_3(), opt_constr_unpack_3(), opt_edge_hess_3(), opt_edge_set_3(), opt_edge_set_intp_3(), opt_face_hess_3(), opt_face_set_3(), opt_face_set_intp_3(), opt_no_constraints_3, opt_point_set_3(), opt_point_set_intp_3(), opt_vol_set_intp_3(), opt_data_3::pd, r1norm_3(), r2norm_3(), tinyla_solve_3(), tinyla_solve_sym_2(), and opt_data_3::x.
Referenced by findpt_guess_3(), findpt_pass_3(), moab::ElemUtil::hex_findpt(), and moab::Element::SpectralHex::ievaluate().
void opt_free_2 | ( | opt_data_2 * | p | ) |
Definition at line 1676 of file findpt.c.
References opt_data_2::work.
Referenced by findpt_free_2(), and moab::Element::SpectralQuad::freedata().
void opt_free_3 | ( | opt_data_3 * | p | ) |
Definition at line 1278 of file findpt.c.
References opt_data_3::work.
Referenced by findpt_free_3(), moab::element_utility::Spectral_hex_map< _Matrix >::free_data(), moab::Element::SpectralHex::freedata(), and moab::ElemUtil::hex_findpt().
|
static |
Definition at line 1804 of file findpt.c.
References opt_point_data_2::jac, opt_data_2::jac, opt_data_2::pd, opt_point_data_2::x, and opt_data_2::x.
Referenced by opt_point_set_intp_2().
|
static |
Definition at line 1498 of file findpt.c.
References opt_point_data_3::jac, opt_data_3::jac, opt_data_3::pd, opt_point_data_3::x, and opt_data_3::x.
Referenced by opt_point_set_intp_3().
|
static |
Definition at line 1769 of file findpt.c.
References opt_point_data_2::constraints, lagrange_data::D_z0, lagrange_data::D_zn, opt_data_2::elx, opt_point_data_2::jac, opt_data_2::ld, lagrange_data::n, opt_constr_unpack_2(), opt_data_2::pd, opt_data_2::size, and opt_point_data_2::x.
Referenced by opt_point_set_2().
|
static |
Definition at line 1463 of file findpt.c.
References opt_point_data_3::constraints, lagrange_data::D_z0, lagrange_data::D_zn, opt_data_3::elx, opt_point_data_3::jac, opt_data_3::ld, lagrange_data::n, opt_constr_unpack_3(), opt_data_3::pd, opt_data_3::size, and opt_point_data_3::x.
Referenced by opt_point_set_3().
|
static |
Definition at line 1795 of file findpt.c.
References opt_point_data_2::constraints, opt_point_proj_2(), and opt_data_2::pd.
Referenced by opt_findpt_2(), and opt_point_set_intp_2().
|
static |
Definition at line 1489 of file findpt.c.
References opt_point_data_3::constraints, opt_point_proj_3(), and opt_data_3::pd.
Referenced by opt_findpt_3(), and opt_point_set_intp_3().
|
static |
Definition at line 1810 of file findpt.c.
References opt_point_intp_2(), and opt_point_set_2().
Referenced by opt_findpt_2().
|
static |
Definition at line 1504 of file findpt.c.
References opt_point_intp_3(), and opt_point_set_3().
Referenced by opt_findpt_3().
|
static |
Definition at line 1291 of file findpt.c.
References opt_data_3::elx, opt_data_3::jac, opt_data_3::ld, tensor_ig3(), opt_data_3::work, and opt_data_3::x.
Referenced by opt_vol_set_intp_3().
|
static |
Definition at line 1283 of file findpt.c.
References lagrange_1(), and opt_data_3::ld.
Referenced by opt_vol_set_intp_3().
void opt_vol_set_intp_3 | ( | opt_data_3 * | p, |
const realType | r[3] | ||
) |
Definition at line 1301 of file findpt.c.
References opt_vol_intp_3(), and opt_vol_set_3().
Referenced by moab::Element::SpectralHex::integrate_scalar_field(), moab::element_utility::Spectral_hex_map< _Matrix >::integrate_scalar_field(), moab::Element::SpectralHex::jacobian(), moab::element_utility::Spectral_hex_map< _Matrix >::jacobian(), and opt_findpt_3().
Definition at line 314 of file findpt.c.
References mat_app_2r(), and mat_inv_2().
Referenced by opt_findpt_2().
Definition at line 321 of file findpt.c.
References mat_app_3r(), and mat_inv_3().
Referenced by opt_findpt_3().
|
static |
|
static |
Definition at line 1202 of file findpt.c.
Referenced by opt_face_set_3().
|
static |
Definition at line 1206 of file findpt.c.
Referenced by opt_edge_set_2(), and opt_edge_set_3().
|
static |
Definition at line 1196 of file findpt.c.
Referenced by opt_findpt_2().
|
static |
Definition at line 1197 of file findpt.c.
Referenced by opt_findpt_3().
|
static |
Definition at line 1209 of file findpt.c.
Referenced by opt_constr(), opt_constr_unpack_2(), and opt_constr_unpack_3().
const unsigned opt_no_constraints_2 = 3 + 1 |
Definition at line 10 of file findpt.c.
Referenced by findpt_guess_2(), findpt_pass_2(), and opt_findpt_2().
const unsigned opt_no_constraints_3 = 9 + 3 + 1 |
Definition at line 11 of file findpt.c.
Referenced by findpt_guess_3(), findpt_pass_3(), moab::ElemUtil::hex_findpt(), moab::Element::SpectralHex::ievaluate(), moab::Element::SpectralQuad::ievaluate(), opt_findpt_3(), and moab::SpectralQuad::reverseEvalFcn().
|
static |
Definition at line 1213 of file findpt.c.
Referenced by opt_edge_set_3(), and opt_face_set_3().
|
static |
Definition at line 1213 of file findpt.c.
Referenced by opt_edge_set_3(), and opt_face_set_3().