File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,6 +93,11 @@ public:
9393 for (const auto e : quad -> edge_index_range ())
9494 CPPUNIT_ASSERT_EQUAL (at_quad_edge .at_edge (* quad , e ), e == 1 );
9595 }
96+ auto quad_edge_elem = at_quad_edge .build_edge (* quad );
97+ CPPUNIT_ASSERT ((quad_edge_elem -> point (0 ).absolute_fuzzy_equals (quad -> point (1 ))
98+ && quad_edge_elem -> point (1 ).absolute_fuzzy_equals (quad -> point (2 ))) ||
99+ ((quad_edge_elem -> point (0 ).absolute_fuzzy_equals (quad -> point (2 ))
100+ && quad_edge_elem -> point (1 ).absolute_fuzzy_equals (quad -> point (1 )))));
96101#endif
97102
98103#if LIBMESH_DIM > 2
@@ -123,11 +128,11 @@ public:
123128 CPPUNIT_ASSERT (!at_hex_edge .is_valid (* hex , (hex -> point (2 )) * 0.5 ));
124129
125130 // build_edge
126- auto edge_elem = at_hex_edge .build_edge (* hex );
127- CPPUNIT_ASSERT ((edge_elem -> point (0 ).absolute_fuzzy_equals (hex -> point (0 ))
128- && edge_elem -> point (1 ).absolute_fuzzy_equals (hex -> point (1 ))) ||
129- ((edge_elem -> point (1 ).absolute_fuzzy_equals (hex -> point (0 ))
130- && edge_elem -> point (0 ).absolute_fuzzy_equals (hex -> point (1 )))));
131+ auto hex_edge_elem = at_hex_edge .build_edge (* hex );
132+ CPPUNIT_ASSERT ((hex_edge_elem -> point (0 ).absolute_fuzzy_equals (hex -> point (0 ))
133+ && hex_edge_elem -> point (1 ).absolute_fuzzy_equals (hex -> point (1 ))) ||
134+ ((hex_edge_elem -> point (1 ).absolute_fuzzy_equals (hex -> point (0 ))
135+ && hex_edge_elem -> point (0 ).absolute_fuzzy_equals (hex -> point (1 )))));
131136 }
132137#endif // LIBMESH_DIM > 2
133138
You can’t perform that action at this time.
0 commit comments