Skip to content

Commit

Permalink
First working parallel partition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Whitlock committed Aug 6, 2021
1 parent ccf3041 commit 17bad07
Show file tree
Hide file tree
Showing 7 changed files with 644 additions and 286 deletions.
12 changes: 10 additions & 2 deletions src/libs/blueprint/conduit_blueprint_mesh_partition.cpp
Expand Up @@ -1142,12 +1142,20 @@ selection_ranges::print(std::ostream &os) const

//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
partitioner::chunk::chunk() : mesh(nullptr), owns(false)
partitioner::chunk::chunk() : mesh(nullptr), owns(false), destination_rank(-1),
destination_domain(-1)
{
}

//---------------------------------------------------------------------------
partitioner::chunk::chunk(const Node *m, bool own) : mesh(m), owns(own)
partitioner::chunk::chunk(const Node *m, bool own) : mesh(m), owns(own),
destination_rank(-1), destination_domain(-1)
{
}

//---------------------------------------------------------------------------
partitioner::chunk::chunk(const Node *m, bool own, int dr, int dd) :
mesh(nullptr), owns(false), destination_rank(dr), destination_domain(dd)
{
}

Expand Down
6 changes: 5 additions & 1 deletion src/libs/blueprint/conduit_blueprint_mesh_partition.hpp
Expand Up @@ -183,16 +183,20 @@ class partitioner
@brief This struct is a Conduit/Blueprint mesh plus an ownership bool.
The mesh pointer is always assumed to be external by default
so we do not provide a destructor. If we want to delete it,
call free(), which will free the mesh if we own it.
call free(), which will free the mesh if we own it. The struct
does not have a destructor on purpose.
*/
struct chunk
{
chunk();
chunk(const Node *m, bool own);
chunk(const Node *m, bool own, int dr, int dd);
void free();

const Node *mesh;
bool owns;
int destination_rank;
int destination_domain;
};

/**
Expand Down

0 comments on commit 17bad07

Please sign in to comment.