Mentions légales du service

Skip to content
Snippets Groups Projects

Add grid->isInterfaceDomainBorder(interId or inter)

Merged Laurent FACQ requested to merge Grid-isInterfaceDomainBorder into master
2 files
+ 34
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 16
0
@@ -233,6 +233,22 @@ bool Grid::hasVertexOnBorder(const int& interId,
@@ -233,6 +233,22 @@ bool Grid::hasVertexOnBorder(const int& interId,
return hasVertexOnBord;
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)
bool Grid::isBorder(const long& id)
{
{
Loading