| 1 |
#include <stk_mesh/base/GetEntities.hpp> |
| 2 |
#include <stk_unit_test_utils/unittestMeshUtils.hpp> |
| 3 |
#include <stk_mesh/base/Comm.hpp> |
| 4 |
#include <stk_mesh/base/FEMHelpers.hpp> |
| 5 |
#include <stk_unit_test_utils/BulkDataTester.hpp> |
| 6 |
#include "FaceCreatorFixture.hpp" |
| 7 |
|
| 8 |
namespace |
| 9 |
{ |
| 10 |
|
| 11 |
class TwoHexGeneratedMeshWithFaceAdjacentElementGraph : public FaceCreatorFixture |
| 12 |
{ |
| 13 |
protected: |
| 14 |
void setup_mesh_and_create_graph(stk::mesh::BulkData::AutomaticAuraOption auraOption) |
| 15 |
{ |
| 16 |
setup_mesh("generated:1x1x2", auraOption); |
| 17 |
} |
| 18 |
}; |
| 19 |
|
| 20 |
|
| 21 |
TEST_F(TwoHexGeneratedMeshWithFaceAdjacentElementGraph, onlyOneFaceExistsAfterBothProcsCreateFaceOnProcBoundary_aura) |
| 22 |
{ |
| 23 |
if(stk::parallel_machine_size(get_comm())==2) |
| 24 |
{ |
| 25 |
setup_mesh_and_create_graph(stk::mesh::BulkData::AUTO_AURA); |
| 26 |
test_that_one_face_exists_after_both_procs_create_face_on_proc_boundary(); |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
TEST_F(TwoHexGeneratedMeshWithFaceAdjacentElementGraph, onlyOneFaceExistsAfterBothProcsCreateFaceOnProcBoundary_noAura) |
| 31 |
{ |
| 32 |
if(stk::parallel_machine_size(get_comm())==2) |
| 33 |
{ |
| 34 |
setup_mesh_and_create_graph(stk::mesh::BulkData::NO_AUTO_AURA); |
| 35 |
test_that_one_face_exists_after_both_procs_create_face_on_proc_boundary(); |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
TEST_F(TwoHexGeneratedMeshWithFaceAdjacentElementGraph, faceExistsOnBothProcsAfterOnlyOneProcCreatesFace_aura) |
| 40 |
{ |
| 41 |
if(stk::parallel_machine_size(get_comm())==2) |
| 42 |
{ |
| 43 |
setup_mesh_and_create_graph(stk::mesh::BulkData::AUTO_AURA); |
| 44 |
test_that_one_face_exists_on_both_procs_after_only_one_proc_makes_face(); |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
TEST_F(TwoHexGeneratedMeshWithFaceAdjacentElementGraph, faceExistsOnBothProcsAfterOnlyOneProcCreatesFace_noAura) |
| 49 |
{ |
| 50 |
if(stk::parallel_machine_size(get_comm())==2) |
| 51 |
{ |
| 52 |
setup_mesh_and_create_graph(stk::mesh::BulkData::NO_AUTO_AURA); |
| 53 |
test_that_one_face_exists_on_both_procs_after_only_one_proc_makes_face(); |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
|
| 58 |
} |