Formatting
This commit is contained in:
parent
857db99eb1
commit
b72caa65b7
1 changed files with 35 additions and 36 deletions
|
@ -112,51 +112,50 @@ public:
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
//- Destructor
|
||||||
|
~amgMatrix()
|
||||||
|
{
|
||||||
|
deleteDemandDrivenData(addrPtr_);
|
||||||
|
|
||||||
~amgMatrix()
|
// Clear the interface storage by hand. It is a list of ptrs
|
||||||
|
// not a PtrList for consistency of the interface
|
||||||
|
if (interfacesPtr_)
|
||||||
{
|
{
|
||||||
deleteDemandDrivenData(addrPtr_);
|
lduInterfacePtrsList& curLevel = *interfacesPtr_;
|
||||||
|
|
||||||
// Clear the interface storage by hand. It is a list of ptrs
|
forAll (curLevel, i)
|
||||||
// not a PtrList for consistency of the interface
|
|
||||||
if (interfacesPtr_)
|
|
||||||
{
|
{
|
||||||
lduInterfacePtrsList& curLevel = *interfacesPtr_;
|
if (curLevel.set(i))
|
||||||
|
|
||||||
forAll (curLevel, i)
|
|
||||||
{
|
{
|
||||||
if (curLevel.set(i))
|
delete curLevel(i);
|
||||||
{
|
|
||||||
delete curLevel(i);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteDemandDrivenData(interfacesPtr_);
|
|
||||||
|
|
||||||
deleteDemandDrivenData(matrixPtr_);
|
|
||||||
|
|
||||||
// Clear the interface field storage by hand. It is a list of ptrs
|
|
||||||
// not a PtrList for consistency of the interface
|
|
||||||
if (interfaceFieldsPtr_)
|
|
||||||
{
|
|
||||||
lduInterfaceFieldPtrsList& curLevelField = *interfaceFieldsPtr_;
|
|
||||||
|
|
||||||
forAll (curLevelField, i)
|
|
||||||
{
|
|
||||||
if (curLevelField.set(i))
|
|
||||||
{
|
|
||||||
delete curLevelField(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
deleteDemandDrivenData(interfaceFieldsPtr_);
|
|
||||||
deleteDemandDrivenData(coupleBouCoeffsPtr_);
|
|
||||||
deleteDemandDrivenData(coupleIntCoeffsPtr_);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteDemandDrivenData(interfacesPtr_);
|
||||||
|
|
||||||
|
deleteDemandDrivenData(matrixPtr_);
|
||||||
|
|
||||||
|
// Clear the interface field storage by hand. It is a list of ptrs
|
||||||
|
// not a PtrList for consistency of the interface
|
||||||
|
if (interfaceFieldsPtr_)
|
||||||
|
{
|
||||||
|
lduInterfaceFieldPtrsList& curLevelField = *interfaceFieldsPtr_;
|
||||||
|
|
||||||
|
forAll (curLevelField, i)
|
||||||
|
{
|
||||||
|
if (curLevelField.set(i))
|
||||||
|
{
|
||||||
|
delete curLevelField(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
deleteDemandDrivenData(interfaceFieldsPtr_);
|
||||||
|
deleteDemandDrivenData(coupleBouCoeffsPtr_);
|
||||||
|
deleteDemandDrivenData(coupleIntCoeffsPtr_);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
|
|
Reference in a new issue