Added interfaceSize member function

This commit is contained in:
Hrvoje Jasak 2017-05-10 13:17:21 +01:00
parent d4a39a93ca
commit 600093db5b
4 changed files with 20 additions and 4 deletions

View file

@ -170,7 +170,13 @@ public:
// Member functions
//- Return processor number
//- Return interface size
virtual label interfaceSize() const
{
return size();
}
//- Return processor number
int myProcNo() const
{
return myProcNo_;

View file

@ -93,6 +93,12 @@ public:
// Member functions
//- Return interface size
virtual label interfaceSize() const
{
return procPolyPatch_.size();
}
//- Return processor number
int myProcNo() const
{

View file

@ -157,11 +157,9 @@ Foam::processorAMGInterface::processorAMGInterface
// All weights are equal to 1: integral matching
restrictWeights_.setSize(localRestrictAddressing.size(), 1.0);
labelList contents = neighboursTable.toc();
// Sort makes sure the order is identical on both sides.
// HJ, 20/Feb.2009
sort(contents);
const labelList contents = neighboursTable.sortedToc();
// Reset face counter for re-use
nCoarseFaces = 0;

View file

@ -102,6 +102,12 @@ public:
// Access
//- Return interface size
virtual label interfaceSize() const
{
return AMGInterface::size();
}
//- Return true if interface is coupled
virtual bool coupled() const
{