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,6 +170,12 @@ public:
// Member functions // Member functions
//- Return interface size
virtual label interfaceSize() const
{
return size();
}
//- Return processor number //- Return processor number
int myProcNo() const int myProcNo() const
{ {

View file

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

View file

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

View file

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