Added interfaceSize member function
This commit is contained in:
parent
d4a39a93ca
commit
600093db5b
4 changed files with 20 additions and 4 deletions
|
@ -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_;
|
||||
|
|
|
@ -93,6 +93,12 @@ public:
|
|||
|
||||
// Member functions
|
||||
|
||||
//- Return interface size
|
||||
virtual label interfaceSize() const
|
||||
{
|
||||
return procPolyPatch_.size();
|
||||
}
|
||||
|
||||
//- Return processor number
|
||||
int myProcNo() const
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Reference in a new issue