Formatting and clean-up

This commit is contained in:
Hrvoje Jasak 2017-06-15 19:40:53 +01:00
parent cf887cbe5e
commit c3c233a493
7 changed files with 28 additions and 36 deletions

View file

@ -84,8 +84,7 @@ public:
{}
// Destructor
//- Destructor
virtual ~BlockDiagonalPrecon()
{}

View file

@ -149,8 +149,7 @@ public:
);
// Destructor
//- Destructor
virtual ~BlockILUCpPrecon();

View file

@ -113,8 +113,7 @@ public:
);
// Destructor
//- Destructor
virtual ~BlockLduPrecon()
{}

View file

@ -83,8 +83,7 @@ public:
{}
// Destructor
//- Destructor
virtual ~BlockNoPrecon()
{}

View file

@ -95,8 +95,7 @@ public:
{}
// Destructor
//- Destructor
virtual ~BlockILUSmoother()
{}

View file

@ -77,9 +77,6 @@ typename Foam::BlockSolverPerformance<Type> Foam::BlockCGSolver<Type>::solve
scalar norm = this->normFactor(x, b);
// Multiplication helper
typename BlockCoeff<Type>::multiply mult;
Field<Type> wA(x.size());
// Calculate initial residual

View file

@ -64,10 +64,10 @@ Foam::GaussSeidelSmoother::GaussSeidelSmoother
void Foam::GaussSeidelSmoother::smooth
(
scalarField& x,
const lduMatrix& matrix_,
const lduMatrix& matrix,
const scalarField& b,
const FieldField<Field, scalar>& coupleBouCoeffs_,
const lduInterfaceFieldPtrsList& interfaces_,
const FieldField<Field, scalar>& coupleBouCoeffs,
const lduInterfaceFieldPtrsList& interfaces,
const direction cmpt,
const label nSweeps
)
@ -79,17 +79,17 @@ void Foam::GaussSeidelSmoother::smooth
scalarField bPrime(nCells);
register scalar* __restrict__ bPrimePtr = bPrime.begin();
register const scalar* const __restrict__ diagPtr = matrix_.diag().begin();
register const scalar* const __restrict__ diagPtr = matrix.diag().begin();
register const scalar* const __restrict__ upperPtr =
matrix_.upper().begin();
matrix.upper().begin();
register const scalar* const __restrict__ lowerPtr =
matrix_.lower().begin();
matrix.lower().begin();
register const label* const __restrict__ uPtr =
matrix_.lduAddr().upperAddr().begin();
matrix.lduAddr().upperAddr().begin();
register const label* const __restrict__ ownStartPtr =
matrix_.lduAddr().ownerStartAddr().begin();
matrix.lduAddr().ownerStartAddr().begin();
// Coupled boundary initialisation. The coupled boundary is treated
@ -112,10 +112,10 @@ void Foam::GaussSeidelSmoother::smooth
bPrime = b;
// Update from lhs
matrix_.initMatrixInterfaces
matrix.initMatrixInterfaces
(
coupleBouCoeffs_,
interfaces_,
coupleBouCoeffs,
interfaces,
x,
bPrime,
cmpt,
@ -123,10 +123,10 @@ void Foam::GaussSeidelSmoother::smooth
);
// Update from lhs
matrix_.updateMatrixInterfaces
matrix.updateMatrixInterfaces
(
coupleBouCoeffs_,
interfaces_,
coupleBouCoeffs,
interfaces,
x,
bPrime,
cmpt,