|
Sierra Toolkit
Version of the Day
|
9 #include <stk_util/unit_test_support/stk_utest_macros.hpp>
10 #include <Shards_BasicTopologies.hpp>
12 #include <stk_util/parallel/Parallel.hpp>
14 #include <stk_mesh/base/Types.hpp>
15 #include <stk_mesh/base/MetaData.hpp>
16 #include <stk_mesh/base/BulkData.hpp>
17 #include <stk_mesh/base/Entity.hpp>
18 #include <stk_mesh/base/GetEntities.hpp>
19 #include <stk_mesh/base/Selector.hpp>
20 #include <stk_mesh/base/GetBuckets.hpp>
21 #include <stk_mesh/base/BulkModification.hpp>
23 #include <stk_mesh/fem/BoundaryAnalysis.hpp>
24 #include <stk_mesh/fem/SkinMesh.hpp>
26 #include <stk_mesh/fixtures/GridFixture.hpp>
28 #include <stk_util/parallel/ParallelReduce.hpp>
39 using stk_classic::mesh::EntityVector;
40 using stk_classic::mesh::EntityRank;
47 STKUNIT_UNIT_TEST( UnitTestGridFixture, test_gridfixture )
52 stk_classic::mesh::fixtures::GridFixture grid_mesh(MPI_COMM_WORLD);
56 const stk_classic::mesh::EntityRank elem_rank = fem_meta.
element_rank();
63 stk_classic::mesh::fem::CellTopology line_top(shards::getCellTopologyData<shards::ShellLine<2> >());
70 grid_mesh.generate_grid();
76 const unsigned num_shell_1_faces = 4*size + rank;
77 const unsigned num_shell_2_faces = 2*size + rank;
78 const unsigned num_shell_faces = num_shell_1_faces + num_shell_2_faces;
81 shell_parts.push_back(&shell_part);
83 std::vector<stk_classic::mesh::Entity*> shell_faces;
86 unsigned id_offset = 500;
88 for (id_base = 1; id_base <= num_shell_faces; ++id_base) {
90 int new_id = rank * num_shell_faces + id_base;
94 shell_faces.push_back(&new_shell);
A defined entity-relationship between parts. An internal class that should never need to be directly...
unsigned parallel_machine_size(ParallelMachine parallel_machine)
Member function parallel_machine_size ...
An application-defined subset of a problem domain.
Entity & declare_entity(EntityRank ent_rank, EntityId ent_id, const PartVector &parts)
Create or retrieve a locally owned entity of a given rank and id.
bool modification_end()
Parallel synchronization of modifications and transition to the guaranteed parallel consistent state.
bool modification_begin()
Begin a modification phase during which the mesh bulk data could become parallel inconsistent....
std::vector< Part * > PartVector
Collections of parts are frequently maintained as a vector of Part pointers.
This is a class for selecting buckets based on a set of meshparts and set logic.
unsigned parallel_machine_rank(ParallelMachine parallel_machine)
Member function parallel_machine_rank ...
A fundamental unit within the discretization of a problem domain, including but not limited to nodes,...
Manager for an integrated collection of entities, entity relations, and buckets of field data.