Make clearInterfaces a function

This commit is contained in:
Hrvoje Jasak 2016-03-17 11:34:54 +00:00
parent 86e5b360db
commit f437daa974

View file

@ -116,18 +116,7 @@ public:
// Destructor
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
@ -145,6 +134,21 @@ public:
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
virtual label nPatches() const
{