#include "util.h"
Go to the source code of this file.
Functions | |
string | itoa (int n) |
Convert an int to a string. More... | |
bool | check_non_numeric_char (char test_char) |
bool | check_non_numeric_char_per (char test_char) |
bool | check_non_numeric_str (string test_str) |
bool | check_non_numeric_str_per (string test_str) |
bool | check_delimiters (char *delimit, int num, char test) |
std::vector< string > | readQuoteExpression (string rStack, string rNeedle) |
Read expressions of the form x = "test" "100" "another test". More... | |
std::vector< string > | readCommaExpression (string rStack, string rNeedle) |
bool | check_bool_arr (bool test[], int size) |
long double | dist (long double *coord1, long double *coord2, int size) |
bool | pnt_in_tri (pnt test, pnt p1, pnt p2, pnt p3) |
bool | side_check (pnt test, pnt p1, pnt p2, pnt check) |
pnt | cross_product (pnt vec1, pnt vec2) |
long double | dot_product (pnt vec1, pnt vec2) |
long double | nan () |
std::vector< string > | str_tokenize (string full, string delimiters) |
bool | same_elements (std::vector< int > vector_1, std::vector< int > vector_2) |
bool check_bool_arr | ( | bool | test[], |
int | size | ||
) |
Definition at line 294 of file utilities/rc_cmp/util.cpp.
References i.
Referenced by Fileselect::testTecplot().
bool check_delimiters | ( | char * | delimit, |
int | num, | ||
char | test | ||
) |
Definition at line 51 of file utilities/rc_cmp/util.cpp.
References i.
Referenced by readCommaExpression(), and readQuoteExpression().
bool check_non_numeric_char | ( | char | test_char | ) |
Definition at line 13 of file utilities/rc_cmp/util.cpp.
Referenced by check_non_numeric_str().
bool check_non_numeric_char_per | ( | char | test_char | ) |
Definition at line 23 of file utilities/rc_cmp/util.cpp.
Referenced by check_non_numeric_str_per().
bool check_non_numeric_str | ( | string | test_str | ) |
Definition at line 33 of file utilities/rc_cmp/util.cpp.
References check_non_numeric_char(), and i.
Referenced by tpz_ordered::parse_layout(), tpz_fequad::parse_layout(), ComSwitch::parseValuesFromArguments(), and Fileselect::testTecplot().
bool check_non_numeric_str_per | ( | string | test_str | ) |
Definition at line 42 of file utilities/rc_cmp/util.cpp.
References check_non_numeric_char_per(), and i.
long double dist | ( | long double * | coord1, |
long double * | coord2, | ||
int | size | ||
) |
Definition at line 305 of file utilities/rc_cmp/util.cpp.
References i, Mesquite::pow(), and sqrt().
Referenced by Mesh::NodalCoordinates::closest_node(), Mesh::NodalCoordinates::closest_point(), rflu_modrepair3d::coarsn(), rflu_modrepair3d::densfn(), CImg< uintT >::dijkstra(), connect_points::get_closest(), indexed_points::get_closest(), CImg< uintT >::get_index(), Overlay::insert_node_in_blue_edge(), main(), rflu_modrepair3d::octfnd(), plag_rflu_modfindcells::plag_rflu_findcellstrajfast(), plag_rflu_modfindcells::plag_rflu_findcellstrajsafe(), project_window(), rflo_getdeformation(), rflo_laplacegridsolve(), rflo_modlaplacesmoothing::rflo_laplacegridsolve(), rflo_modmovegridframe::rflo_mgframecorrectneighbors(), rflo_modmovegridframe::rflo_mgframemovecorners(), rflo_modmovegridframe::rflo_mgframesrchneighbors(), rflu_modoles::rflu_buildstencilsoles(), rflu_modgeometrytools::rflu_computelinecellxsectfast(), rflu_modconstraintutils::rflu_getconstrtype(), rflu_modconstraintutils::rflu_getconstrvalue(), rflu_modoctree::rflu_queryoctree(), rflu_modrindstates::rflu_setrindstatefarfieldperf(), rflu_modstencilsutils::rflu_sortbfaces(), rflu_modsymmetryperiodic::rflu_sype_buildvertexmaps(), and Rocmop::smooth_vol_mesq_ng().
Definition at line 387 of file utilities/rc_cmp/util.cpp.
References i, nan(), pnt::size, and pnt::vals.
Referenced by accumulatexyzwork(), angle(), c3d6nm(), computeflux(), computefluxtot(), inrt_augmentdissources(), inrt_setparticletemp(), plag_getcellindicesoutflow(), plag_incelltest(), plag_modinjection::plag_injcsetpoolpos(), plag_injcsetpositions(), plag_injctestcell(), plag_injctilecalcrhs(), plag_rflu_injctilecalcrhs(), plag_wallbounce(), rflo_modelliptsmoothing::rflo_elliptmatrixcoeffs2d(), rflo_modelliptsmoothing::rflo_elliptmatrixcoeffs3d(), rflo_exchangednodecopy(), rflo_exchangednodesend(), rflo_exchangegeometrycopy(), rflo_exchangegeometrysend(), rflo_modlaplacesmoothing::rflo_projectquadcorner(), rflo_viscousfluxpatch(), rflu_modgeometry::rflu_computefacedist(), side_check(), turb_vfluxhybridpatch(), turb_visfluxeddypatch(), and vol_elem_mat_ortho().
string itoa | ( | int | n | ) |
Convert an int to a string.
n | Integer to convert |
Definition at line 6 of file utilities/rc_cmp/util.cpp.
Referenced by compareFiles(), datafile::LogFieldMappings(), tecplot_data::parse(), tpz_ordered::parse_data(), tpz_fequad::parse_data(), tpz_ordered::parse_layout(), tpz_fequad::parse_layout(), tecplot_data::read_header(), tecplot_data::zone_error_out(), and tecplot_data::zone_status_out().
long double nan | ( | ) |
Definition at line 401 of file utilities/rc_cmp/util.cpp.
Referenced by Interpolate::bilinear(), and dot_product().
Definition at line 318 of file utilities/rc_cmp/util.cpp.
References side_check(), and pnt::size.
Referenced by Interpolate::getCell().
std::vector<string> readCommaExpression | ( | string | rStack, |
string | rNeedle | ||
) |
Definition at line 187 of file utilities/rc_cmp/util.cpp.
References check_delimiters(), i, and j.
Referenced by tpz_ordered::parse_layout(), tpz_fequad::parse_layout(), Fileselect::testTecplot(), and tecplot_data::zone_detect().
std::vector<string> readQuoteExpression | ( | string | rStack, |
string | rNeedle | ||
) |
Read expressions of the form x = "test" "100" "another test".
stack |
Definition at line 77 of file utilities/rc_cmp/util.cpp.
References check_delimiters(), i, and j.
Referenced by tecplot_data::read_header().
bool same_elements | ( | std::vector< int > | vector_1, |
std::vector< int > | vector_2 | ||
) |
Definition at line 430 of file utilities/rc_cmp/util.cpp.
Referenced by compareFiles().
Definition at line 332 of file utilities/rc_cmp/util.cpp.
References cross_product(), dot_product(), pnt::size, and pnt::vals.
Referenced by pnt_in_tri().
std::vector<string> str_tokenize | ( | string | full, |
string | delimiters | ||
) |
Definition at line 413 of file utilities/rc_cmp/util.cpp.
Referenced by ComSwitch::parseValuesFromArguments().