Make clearInterfaces a function
This commit is contained in:
parent
86e5b360db
commit
f437daa974
1 changed files with 16 additions and 12 deletions
|
@ -116,18 +116,7 @@ public:
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
virtual ~lduPrimitiveMesh()
|
virtual ~lduPrimitiveMesh()
|
||||||
{
|
{}
|
||||||
// Clear interface pointers: they are not deleted
|
|
||||||
// by the lduInterfacePtrsList (derived from UPtrList)
|
|
||||||
// HJ, 5/Feb/2016
|
|
||||||
forAll (interfaces_, i)
|
|
||||||
{
|
|
||||||
if (interfaces_.set(i))
|
|
||||||
{
|
|
||||||
delete interfaces_(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
@ -145,6 +134,21 @@ public:
|
||||||
patchSchedule_ = ps;
|
patchSchedule_ = ps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- Clear interfaces
|
||||||
|
void clearInterfaces()
|
||||||
|
{
|
||||||
|
// Clear interface pointers: they are not deleted
|
||||||
|
// by the lduInterfacePtrsList (derived from UPtrList)
|
||||||
|
// HJ, 5/Feb/2016
|
||||||
|
forAll (interfaces_, i)
|
||||||
|
{
|
||||||
|
if (interfaces_.set(i))
|
||||||
|
{
|
||||||
|
delete interfaces_(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//- Return number of interfaces
|
//- Return number of interfaces
|
||||||
virtual label nPatches() const
|
virtual label nPatches() const
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue