21 {
22
23
24 bool check = false;
29
30 check = true;
31 }
32
33 if (!check) {
34
35
37 check = true;
38
40 check = true;
41
43 check = true;
44 }
45
46 if (check) {
47 std::cerr << "Error: Point p = ("
48 << p[0] << ", " << p[1] << ", " << p[2]
49 << ") does not belong to reference tet element = {("
50 << nodes[0].d_x << ", " << nodes[0].d_y << ", " << nodes[0].d_z
51 << "), ("
52 << nodes[1].d_x << "," << nodes[1].d_y << ", " << nodes[1].d_z
53 << "), ("
54 << nodes[2].d_x << "," << nodes[2].d_y << ", " << nodes[2].d_z
55 << "), ("
56 << nodes[3].d_x << "," << nodes[3].d_y << ", " << nodes[3].d_z
57 << ")}.\n"
58 << "Coordinates in reference element are: "
59 << "xi = " << p[0]
60 << ", eta = " << p[1]
61 << ", zeta = " << p[2] << "\n";
62 exit(1);
63 }
64}
bool isGreater(const double &a, const double &b)
Returns true if a > b.
bool isLess(const double &a, const double &b)
Returns true if a < b.