@@ -635,6 +635,30 @@ public:
635
635
test_n_refinements (2 );
636
636
}
637
637
638
+ void test_is_internal ()
639
+ {
640
+ LOG_UNIT_TEST ;
641
+
642
+ for (const auto & elem :
643
+ this -> _mesh -> active_local_element_ptr_range ())
644
+ for (const auto nd : elem -> node_index_range ())
645
+ {
646
+ if ((elem -> type () == EDGE3 || elem -> type () == EDGE4 ) && nd >= 2 )
647
+ CPPUNIT_ASSERT (elem -> is_internal (nd ));
648
+ else if (elem -> type () == HEX27 && nd == 26 )
649
+ CPPUNIT_ASSERT (elem -> is_internal (nd ));
650
+ else if (elem -> type () == PRISM21 && nd == 20 )
651
+ CPPUNIT_ASSERT (elem -> is_internal (nd ));
652
+ else if (elem -> type () == QUAD9 && nd == 8 )
653
+ CPPUNIT_ASSERT (elem -> is_internal (nd ));
654
+ else if (elem -> type () == TRI7 && nd == 6 )
655
+ CPPUNIT_ASSERT (elem -> is_internal (nd ));
656
+ else
657
+ CPPUNIT_ASSERT (!elem -> is_internal (nd ));
658
+ }
659
+ }
660
+
661
+
638
662
};
639
663
640
664
#define ELEMTEST \
@@ -650,8 +674,9 @@ public:
650
674
CPPUNIT_TEST ( test_center_node_on_side ); \
651
675
CPPUNIT_TEST ( test_side_type ); \
652
676
CPPUNIT_TEST ( test_elem_side_builder ); \
653
- CPPUNIT_TEST ( test_refinement ); \
654
- CPPUNIT_TEST ( test_double_refinement );
677
+ CPPUNIT_TEST ( test_refinement ); \
678
+ CPPUNIT_TEST ( test_double_refinement ); \
679
+ CPPUNIT_TEST ( test_is_internal )
655
680
656
681
#define INSTANTIATE_ELEMTEST (elemtype ) \
657
682
class ElemTest_ ##elemtype : public ElemTest<elemtype> { \
0 commit comments