27 #ifndef OOMPH_BINARY_TREE_HEADER
28 #define OOMPH_BINARY_TREE_HEADER
32 #include <oomph-lib-config.h>
44 namespace BinaryTreeNames
112 return temp_binary_pt;
139 bool& in_neighbouring_tree)
const;
157 std::ofstream& neighbours_file,
158 std::ofstream& neighbours_txt_file,
169 "Don't call an empty constructor for a BinaryTree object",
201 bool& in_neighbouring_tree,
243 "Static member data hasn't been setup yet.\n";
245 "Call BinaryTree::setup_static_data() before creating\n";
246 error_message +=
"any BinaryTreeRoots\n";
264 using namespace BinaryTreeNames;
293 "Don't call an empty constructor for a BinaryTreeForest object",
316 void check_all_neighbours(
DocInfo& doc_info);
332 void find_neighbours();
348 Trees_pt[
i]->neighbour_pt(direction));
int i
Definition: BiCGSTAB_step_by_step.cpp:9
MatrixXd L
Definition: LLT_example.cpp:6
@ R
Definition: StatisticsVector.h:21
Definition: binary_tree.h:286
BinaryTreeForest()
Default constructor (empty and broken)
Definition: binary_tree.h:289
BinaryTreeRoot * binary_tree_pt(const unsigned &i)
Definition: binary_tree.h:336
virtual ~BinaryTreeForest()
Definition: binary_tree.h:310
void operator=(const BinaryTreeForest &)=delete
Broken assignment operator.
void open_hanging_node_files(DocInfo &doc_info, Vector< std::ofstream * > &output_stream)
A line mesh cannot have hanging nodes so make this function empty.
Definition: binary_tree.h:319
BinaryTreeRoot * binary_neigh_pt(const unsigned &i, const int &direction)
Definition: binary_tree.h:345
BinaryTreeForest(const BinaryTreeForest &dummy)=delete
Broken copy constructor.
Definition: binary_tree.h:231
BinaryTreeRoot(RefineableElement *const &object_pt)
Definition: binary_tree.h:235
int direction_of_neighbour(BinaryTreeRoot *binary_tree_root_pt)
Definition: binary_tree.h:262
void operator=(const BinaryTreeRoot &)=delete
Broken assignment operator.
BinaryTreeRoot(const BinaryTreeRoot &dummy)=delete
Broken copy constructor.
Definition: binary_tree.h:92
static Vector< double > S_base
Definition: binary_tree.h:210
static Vector< std::string > Colour
Colours for neighbours in various directions.
Definition: binary_tree.h:206
BinaryTree(RefineableElement *const &object_pt)
Definition: binary_tree.h:178
BinaryTree(RefineableElement *const &object_pt, Tree *const &father_pt, const int &son_type)
Definition: binary_tree.h:185
static Vector< std::string > Direct_string
Translate (enumerated) directions into strings.
Definition: binary_tree.h:162
BinaryTree()
Default constructor (empty and broken)
Definition: binary_tree.h:166
static void setup_static_data()
Set up the static data, reflection schemes, etc.
Definition: binary_tree.cc:86
static void doc_neighbours(Vector< Tree * > forest_nodes_pt, std::ofstream &neighbours_file, std::ofstream &neighbours_txt_file, double &max_error)
Definition: binary_tree.cc:668
static bool Static_data_has_been_setup
Boolean indicating that static member data has been setup.
Definition: binary_tree.h:193
virtual ~BinaryTree()
Definition: binary_tree.h:96
void operator=(const BinaryTree &)=delete
Broken assignment operator.
BinaryTree(const BinaryTree &dummy)=delete
Broken copy constructor.
static DenseMatrix< int > Reflect
Definition: binary_tree.h:221
BinaryTree * gteq_edge_neighbour(const int &direction, Vector< double > &s_in_neighbour, int &edge, int &diff_level, bool &in_neighbouring_tree) const
Definition: binary_tree.cc:172
unsigned self_test()
Definition: binary_tree.cc:393
Tree * construct_son(RefineableElement *const &object_pt, Tree *const &father_pt, const int &son_type)
Definition: binary_tree.h:106
static DenseMatrix< bool > Is_adjacent
Definition: binary_tree.h:217
static Vector< int > Reflect_edge
Get opposite edge, e.g. Reflect_edge[L]=R.
Definition: binary_tree.h:213
Definition: oomph_utilities.h:499
Definition: oomph_definitions.h:222
Definition: refineable_elements.h:97
std::map< int, TreeRoot * > Neighbour_pt
Definition: tree.h:330
RefineableElement * object_pt() const
Definition: tree.h:88
Tree * father_pt() const
Return pointer to father: NULL if it's a root node.
Definition: tree.h:235
int son_type() const
Return son type.
Definition: tree.h:214
static const int OMEGA
Default value for an unassigned neighbour.
Definition: tree.h:262
double max_error
Definition: MortaringCantileverCompareToNonMortaring.cpp:188
@ R
Definition: binary_tree.h:51
@ L
Definition: binary_tree.h:50
@ OMEGA
Definition: binary_tree.h:52
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86