Skip to content

Commit

Permalink
invert_map_by_atomics: documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Mar 21, 2024
1 parent 7ccbeda commit 249fc9f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Omega_h_map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ LOs invert_funnel(LOs ab2a, LO na);

Graph invert_map_by_sorting(LOs a2b, LO nb);

/**
* \brief given a bipartite graph from set A to B with nodes
* in A having degree 1 and nodes in B having degree > 1,
* and the array of indices mapping A to B (a2b), construct
* the graph from B to A.
* \details see Appendix A of Dan Ibanez's 2016 Ph.D. Thesis,
* "CONFORMAL MESH ADAPTATION ON HETEROGENEOUS SUPERCOMPUTERS"
* \param a2b (in) map of indices in A to B
* \param nb (in) size of set B
* \b2ba_name (in) name of offset array in returned Graph
* \ba2a_name (in) name of values array in returned Graph
* \return Graph of B to A
*/
Graph invert_map_by_atomics(LOs const a2b, LO const nb,
std::string const& b2ba_name = "", std::string const& ba2a_name = "");

Expand Down

0 comments on commit 249fc9f

Please sign in to comment.