Skip to content

Commit

Permalink
doxygen fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Tomin authored and Pavel Tomin committed Dec 23, 2024
1 parent 7784585 commit 4150280
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
8 changes: 8 additions & 0 deletions src/coreComponents/mesh/generators/CellBlock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,17 @@ class CellBlock : public CellBlockABC
arrayView1d< globalIndex const > localToGlobalMapConstView() const
{ return m_localToGlobalMap.toViewConst(); }

/**
* @brief Get global to local map.
* @return The mapping relationship.
*/
unordered_map< globalIndex, localIndex > & globalToLocalMap()
{ return m_globalToLocalMap; }

/**
* @brief Get global to local map, const version.
* @return The mapping relationship.
*/
unordered_map< globalIndex, localIndex > const & globalToLocalMap() const
{ return m_globalToLocalMap; }

Expand Down
15 changes: 15 additions & 0 deletions src/coreComponents/mesh/generators/EmbeddedSurfaceBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,19 @@ void EmbeddedSurfaceBlock::setEmbeddedSurfElemNodes( ArrayOfArrays< real64 > &&
m_embeddedSurfElemNodesCoords = _embeddedSurfElemNodes;
}

unordered_map< globalIndex, localIndex > & EmbeddedSurfaceBlock::globalToLocalMap()
{
return m_globalToLocalMap;
}

unordered_map< globalIndex, localIndex > const & EmbeddedSurfaceBlock::globalToLocalMap() const
{
return m_globalToLocalMap;
}

void EmbeddedSurfaceBlock::setGlobalToLocalMap( unordered_map< globalIndex, localIndex > && g2l )
{
m_globalToLocalMap = g2l;
}

}
22 changes: 14 additions & 8 deletions src/coreComponents/mesh/generators/EmbeddedSurfaceBlock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,22 @@ class EmbeddedSurfaceBlock : public EmbeddedSurfaceBlockABC
*/
void setEmbeddedSurfElemPermeability( array1d< real64 > && _perms );

unordered_map< globalIndex, localIndex > & globalToLocalMap()
{ return m_globalToLocalMap; }
/**
* @brief Get global to local map.
* @return The mapping relationship.
*/
unordered_map< globalIndex, localIndex > & globalToLocalMap();

unordered_map< globalIndex, localIndex > const & globalToLocalMap() const
{ return m_globalToLocalMap; }
/**
* @brief Get global to local map, const version.
* @return The mapping relationship.
*/
unordered_map< globalIndex, localIndex > const & globalToLocalMap() const;

void setGlobalToLocalMap( unordered_map< globalIndex, localIndex > && g2l )
{
m_globalToLocalMap = g2l;
}
/**
* @brief Set global to local map from a provided mapping.
*/
void setGlobalToLocalMap( unordered_map< globalIndex, localIndex > && g2l );

private:

Expand Down

0 comments on commit 4150280

Please sign in to comment.