Formatting

This commit is contained in:
Hrvoje Jasak 2018-12-04 10:32:25 +00:00
parent 857db99eb1
commit b72caa65b7

View file

@ -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
// not a PtrList for consistency of the interface
if (interfacesPtr_)
forAll (curLevel, i)
{
lduInterfacePtrsList& curLevel = *interfacesPtr_;
forAll (curLevel, i)
if (curLevel.set(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