Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3c0c5cf5 authored by DEPOUILLY Philippe's avatar DEPOUILLY Philippe
Browse files

Merge branch 'Grid-isInterfaceDomainBorder' into 'master'

Add grid->isInterfaceDomainBorder(interId or inter)

See merge request memphis/neos!5
parents bf48f14d 97251800
No related branches found
No related tags found
No related merge requests found
......@@ -233,6 +233,22 @@ bool Grid::hasVertexOnBorder(const int& interId,
return hasVertexOnBord;
}
bool Grid::isInterfaceDomainBorder(const long& id)
{
return isInterfaceDomainBorder(this->getInterface(id));
}
bool Grid::isInterfaceDomainBorder(const bitpit::Interface& inter)
{
bitpit::Cell& cell = this->getCell(inter.getOwner());
if (inter.isBorder() && cell.isInterior())
{
return true;
}
return false;
}
bool Grid::isBorder(const long& id)
{
......
......@@ -272,6 +272,24 @@ std::vector<int> getFaceVertexLocalIds(int face);
bool hasVertexOnBorder(const int& interId,
int& interOnBorder);
/**
* @brief Is the interface "interId" is a domain boundary cell ?
*
* @param[in] interId Global id of the interface
*
* @return True if the interface is on the domain boundary
*/
bool isInterfaceDomainBorder(const long& interId );
/**
* @brief Is the interface "inter" a domain boundary cell ?
*
* @param[in] inter : the interface
*
* @return True if the interface is on the domain boundary
*/
bool isInterfaceDomainBorder(const bitpit::Interface& inter);
/**
* @brief Is the cell "cellId" is a boundary cell ?
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment