Skip to content

Commit 4973796

Browse files
authored
Merge pull request #3323 from jwpeterson/write_elemset_data_distributed
Explicitly use ReplicatedMesh in test of writing elemset data
2 parents 60a40e5 + 8db27f6 commit 4973796

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/mesh/write_elemset_data.C

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,13 @@ public:
9393
template <typename IOClass>
9494
void testWriteImpl(const std::string & filename)
9595
{
96-
Mesh mesh(*TestCommWorld);
96+
// TODO: Currently this test only works for ReplicatedMesh. It
97+
// should be updated so that it works for DistributedMesh as well,
98+
// and then we can just set MeshType == Mesh.
99+
typedef ReplicatedMesh MeshType;
100+
101+
// Construct mesh for writing
102+
MeshType mesh(*TestCommWorld);
97103

98104
// Allocate space for an extra integer on each element to store a "code" which
99105
// determines which sets an Elem belongs to. We do this before building the Mesh.
@@ -224,7 +230,7 @@ public:
224230
TestCommWorld->barrier();
225231

226232
// Now read it back in
227-
Mesh read_mesh(*TestCommWorld);
233+
MeshType read_mesh(*TestCommWorld);
228234

229235
// Do not allow renumbering on this mesh either.
230236
read_mesh.allow_renumbering(false);

0 commit comments

Comments
 (0)