![]() |
|
Contains helper function to reorganise nodes. More...
Functions | |
bool | node_global_position_comparison (Node *nd1_pt, Node *nd2_pt) |
void | get_node_reordering (Mesh *mesh_pt, Vector< Node * > &reordering, const bool &use_old_ordering) |
void | reorder_nodes (Mesh *mesh_pt, const bool &use_old_ordering) |
Contains helper function to reorganise nodes.
///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
void NodeReordering::get_node_reordering | ( | Mesh * | mesh_pt, |
Vector< Node * > & | reordering, | ||
const bool & | use_old_ordering | ||
) |
Get a vector of the nodes in the order in which they are encountered when stepping through the elements (similar to reorder_nodes() but without changing the mesh's node vector).
References e(), oomph::Mesh::finite_element_pt(), i, j, oomph::Mesh::nelement(), oomph::FiniteElement::nnode(), oomph::Mesh::nnode(), node_global_position_comparison(), oomph::FiniteElement::node_pt(), oomph::Mesh::node_pt(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, and oomph::Global_string_for_annotation::string().
Referenced by reorder_nodes().
Function for ordering nodes. Return true if first node's position is "before" second nodes. Dimension 0 checked first, then... until they are different (by more than tol=1e-10). If they are both in exactly the same place an error is thrown.
References abs(), e(), i, j, oomph::Node::ndim(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, and oomph::Node::x().
Referenced by get_node_reordering().
Reorder nodes in the order in which they are encountered when stepping through the elements
References get_node_reordering(), i, oomph::Mesh::nnode(), and oomph::Mesh::node_pt().
Referenced by NavierStokesProblem< ELEMENT >::create_spacetime_mesh().