11 #include <stk_util/unit_test_support/stk_utest_macros.hpp> 13 #include <Shards_BasicTopologies.hpp> 15 #include <stk_mesh/fixtures/HexFixture.hpp> 17 #include <stk_mesh/base/BulkModification.hpp> 18 #include <stk_mesh/base/MetaData.hpp> 19 #include <stk_mesh/base/BulkData.hpp> 20 #include <stk_mesh/base/Entity.hpp> 22 #include <stk_mesh/fem/FEMHelpers.hpp> 24 #include <stk_util/parallel/ParallelReduce.hpp> 26 STKUNIT_UNIT_TEST( UnitTestDeclareElement , inject_shell )
37 const unsigned p_rank = fixture.m_bulk_data.parallel_rank();
39 stk_classic::mesh::Part & shell_part = stk_classic::mesh::fem::declare_part<shards::ShellQuadrilateral<4> >( fixture.m_fem_meta,
"shell_part");
41 fixture.m_fem_meta.commit();
43 fixture.generate_mesh();
47 fixture.m_bulk_data.modification_begin();
53 if ( elem != NULL && p_rank == elem->
owner_rank() ) {
54 stk_classic::mesh::EntityId elem_node[4] ;
55 elem_node[0] = fixture.node_id( 1, 0, 0 );
56 elem_node[1] = fixture.node_id( 1, 1, 0 );
57 elem_node[2] = fixture.node_id( 1, 1, 1 );
58 elem_node[3] = fixture.node_id( 1, 0, 1 );
60 stk_classic::mesh::EntityId elem_id = 3;
70 fixture.m_bulk_data.modification_end();
72 STKUNIT_EXPECT_TRUE(no_throw);
Entity & declare_element(BulkData &mesh, Part &part, const EntityId elem_id, const EntityId node_id[])
Declare an element member of a Part with a CellTopology and nodes conformal to that topology...
An application-defined subset of a problem domain.
A fundamental unit within the discretization of a problem domain, including but not limited to nodes...
unsigned owner_rank() const
Parallel processor rank of the processor which owns this entity.