Remove typename and this-> from template specialisation: gcc-4.4.6
This commit is contained in:
parent
7e51724111
commit
607b1aa944
5 changed files with 40 additions and 40 deletions
|
@ -72,7 +72,7 @@ void Foam::extendedBlockLduMatrix<Foam::tensor>::mapOffDiagCoeffs
|
|||
if (upper.activeType() == blockCoeffBase::SCALAR)
|
||||
{
|
||||
// Helper type definition
|
||||
typedef typename CoeffField<tensor>::scalarTypeField
|
||||
typedef CoeffField<tensor>::scalarTypeField
|
||||
activeType;
|
||||
|
||||
// Get references to fields
|
||||
|
@ -89,7 +89,7 @@ void Foam::extendedBlockLduMatrix<Foam::tensor>::mapOffDiagCoeffs
|
|||
else if (upper.activeType() == blockCoeffBase::LINEAR)
|
||||
{
|
||||
// Helper type definition
|
||||
typedef typename CoeffField<tensor>::linearTypeField
|
||||
typedef CoeffField<tensor>::linearTypeField
|
||||
activeType;
|
||||
|
||||
// Get references to fields
|
||||
|
@ -131,7 +131,7 @@ void Foam::extendedBlockLduMatrix<Foam::tensor>::mapOffDiagCoeffs
|
|||
if (lower.activeType() == blockCoeffBase::SCALAR)
|
||||
{
|
||||
// Helper type definition
|
||||
typedef typename CoeffField<tensor>::scalarTypeField
|
||||
typedef CoeffField<tensor>::scalarTypeField
|
||||
activeType;
|
||||
|
||||
// Get references to fields
|
||||
|
@ -148,7 +148,7 @@ void Foam::extendedBlockLduMatrix<Foam::tensor>::mapOffDiagCoeffs
|
|||
else if (lower.activeType() == blockCoeffBase::LINEAR)
|
||||
{
|
||||
// Helper type definition
|
||||
typedef typename CoeffField<tensor>::linearTypeField
|
||||
typedef CoeffField<tensor>::linearTypeField
|
||||
activeType;
|
||||
|
||||
// Get references to fields
|
||||
|
@ -199,7 +199,7 @@ void Foam::extendedBlockLduMatrix<Foam::tensor>::mapOffDiagCoeffs
|
|||
if (upper.activeType() == blockCoeffBase::SCALAR)
|
||||
{
|
||||
// Helper type definition
|
||||
typedef typename CoeffField<tensor>::scalarTypeField activeType;
|
||||
typedef CoeffField<tensor>::scalarTypeField activeType;
|
||||
|
||||
// Get references to fields
|
||||
const activeType& activeUpper = upper.asScalar();
|
||||
|
@ -218,7 +218,7 @@ void Foam::extendedBlockLduMatrix<Foam::tensor>::mapOffDiagCoeffs
|
|||
else if (upper.activeType() == blockCoeffBase::LINEAR)
|
||||
{
|
||||
// Helper type definition
|
||||
typedef typename CoeffField<tensor>::linearTypeField activeType;
|
||||
typedef CoeffField<tensor>::linearTypeField activeType;
|
||||
|
||||
// Get references to fields
|
||||
const activeType& activeUpper = upper.asLinear();
|
||||
|
|
|
@ -34,14 +34,14 @@ namespace Foam
|
|||
template<>
|
||||
void BlockLduMatrix<scalar>::sumDiag()
|
||||
{
|
||||
scalarField& activeDiag = this->diag();
|
||||
scalarField& activeDiag = diag();
|
||||
|
||||
const unallocLabelList& l = lduAddr().lowerAddr();
|
||||
const unallocLabelList& u = lduAddr().upperAddr();
|
||||
|
||||
if (symmetric())
|
||||
{
|
||||
const scalarField& activeUpper = this->upper();
|
||||
const scalarField& activeUpper = upper();
|
||||
|
||||
for (register label coeffI = 0; coeffI < l.size(); coeffI++)
|
||||
{
|
||||
|
@ -51,8 +51,8 @@ void BlockLduMatrix<scalar>::sumDiag()
|
|||
}
|
||||
else if (asymmetric())
|
||||
{
|
||||
const scalarField& activeLower = this->lower();
|
||||
const scalarField& activeUpper = this->upper();
|
||||
const scalarField& activeLower = lower();
|
||||
const scalarField& activeUpper = upper();
|
||||
|
||||
for (register label coeffI = 0; coeffI < l.size(); coeffI++)
|
||||
{
|
||||
|
@ -72,14 +72,14 @@ void BlockLduMatrix<scalar>::sumDiag()
|
|||
template<>
|
||||
void BlockLduMatrix<scalar>::negSumDiag()
|
||||
{
|
||||
scalarField& activeDiag = this->diag();
|
||||
scalarField& activeDiag = diag();
|
||||
|
||||
const unallocLabelList& l = lduAddr().lowerAddr();
|
||||
const unallocLabelList& u = lduAddr().upperAddr();
|
||||
|
||||
if (symmetric())
|
||||
{
|
||||
const scalarField& activeUpper = this->upper();
|
||||
const scalarField& activeUpper = upper();
|
||||
|
||||
for (register label coeffI = 0; coeffI < l.size(); coeffI++)
|
||||
{
|
||||
|
@ -89,8 +89,8 @@ void BlockLduMatrix<scalar>::negSumDiag()
|
|||
}
|
||||
else if (asymmetric())
|
||||
{
|
||||
const scalarField& activeLower = this->lower();
|
||||
const scalarField& activeUpper = this->upper();
|
||||
const scalarField& activeLower = lower();
|
||||
const scalarField& activeUpper = upper();
|
||||
|
||||
for (register label coeffI = 0; coeffI < l.size(); coeffI++)
|
||||
{
|
||||
|
@ -111,14 +111,14 @@ template<>
|
|||
void BlockLduMatrix<scalar>::check() const
|
||||
{
|
||||
// Copy the diagonal
|
||||
scalarField activeDiagCopy = this->diag();
|
||||
scalarField activeDiagCopy = diag();
|
||||
|
||||
const unallocLabelList& l = lduAddr().lowerAddr();
|
||||
const unallocLabelList& u = lduAddr().upperAddr();
|
||||
|
||||
if (symmetric())
|
||||
{
|
||||
const scalarField& activeUpper = this->upper();
|
||||
const scalarField& activeUpper = upper();
|
||||
|
||||
for (register label coeffI = 0; coeffI < l.size(); coeffI++)
|
||||
{
|
||||
|
@ -130,13 +130,13 @@ void BlockLduMatrix<scalar>::check() const
|
|||
<< "Symmetric matrix: raw matrix difference: "
|
||||
<< sum(mag(activeDiagCopy))
|
||||
<< " scaled: "
|
||||
<< sum(mag(activeDiagCopy))/sum(mag(this->diag()))
|
||||
<< sum(mag(activeDiagCopy))/sum(mag(diag()))
|
||||
<< endl;
|
||||
}
|
||||
else if (asymmetric())
|
||||
{
|
||||
const scalarField& activeLower = this->lower();
|
||||
const scalarField& activeUpper = this->upper();
|
||||
const scalarField& activeLower = lower();
|
||||
const scalarField& activeUpper = upper();
|
||||
|
||||
for (register label coeffI = 0; coeffI < l.size(); coeffI++)
|
||||
{
|
||||
|
@ -148,7 +148,7 @@ void BlockLduMatrix<scalar>::check() const
|
|||
<< "Asymmetric matrix: raw matrix difference: "
|
||||
<< sum(mag(activeDiagCopy))
|
||||
<< " scaled: "
|
||||
<< sum(mag(activeDiagCopy))/sum(mag(this->diag()))
|
||||
<< sum(mag(activeDiagCopy))/sum(mag(diag()))
|
||||
<< endl;
|
||||
}
|
||||
else
|
||||
|
@ -167,9 +167,9 @@ void BlockLduMatrix<scalar>::relax
|
|||
const scalar alpha
|
||||
)
|
||||
{
|
||||
scalarField& activeDiag = this->diag();
|
||||
scalarField& activeDiag = diag();
|
||||
|
||||
scalarField activeDiagOld = this->diag();
|
||||
scalarField activeDiagOld = diag();
|
||||
|
||||
const unallocLabelList& l = lduAddr().lowerAddr();
|
||||
const unallocLabelList& u = lduAddr().upperAddr();
|
||||
|
@ -178,7 +178,7 @@ void BlockLduMatrix<scalar>::relax
|
|||
|
||||
if (symmetric())
|
||||
{
|
||||
const scalarField& activeUpper = this->upper();
|
||||
const scalarField& activeUpper = upper();
|
||||
|
||||
for (register label coeffI = 0; coeffI < l.size(); coeffI++)
|
||||
{
|
||||
|
@ -188,8 +188,8 @@ void BlockLduMatrix<scalar>::relax
|
|||
}
|
||||
else if (asymmetric())
|
||||
{
|
||||
const scalarField& activeLower = this->lower();
|
||||
const scalarField& activeUpper = this->upper();
|
||||
const scalarField& activeLower = lower();
|
||||
const scalarField& activeUpper = upper();
|
||||
|
||||
for (register label coeffI = 0; coeffI < l.size(); coeffI++)
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<Foam::sphericalTensor>::sumDiag()
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledSumDiag();
|
||||
decoupledSumDiag();
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,7 +45,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<Foam::sphericalTensor>::negSumDiag()
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledNegSumDiag();
|
||||
decoupledNegSumDiag();
|
||||
}
|
||||
|
||||
|
||||
|
@ -53,7 +53,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<sphericalTensor>::check() const
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledCheck();
|
||||
decoupledCheck();
|
||||
}
|
||||
|
||||
|
||||
|
@ -66,7 +66,7 @@ void Foam::BlockLduMatrix<Foam::sphericalTensor>::relax
|
|||
)
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledRelax(x, b, alpha);
|
||||
decoupledRelax(x, b, alpha);
|
||||
}
|
||||
|
||||
|
||||
|
@ -77,7 +77,7 @@ void Foam::BlockLduMatrix<Foam::sphericalTensor>::operator*=
|
|||
)
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledMultEqOp(sf);
|
||||
decoupledMultEqOp(sf);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<Foam::symmTensor>::sumDiag()
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledSumDiag();
|
||||
decoupledSumDiag();
|
||||
}
|
||||
|
||||
|
||||
|
@ -46,7 +46,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<Foam::symmTensor>::negSumDiag()
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledNegSumDiag();
|
||||
decoupledNegSumDiag();
|
||||
}
|
||||
|
||||
|
||||
|
@ -54,7 +54,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<symmTensor>::check() const
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledCheck();
|
||||
decoupledCheck();
|
||||
}
|
||||
|
||||
|
||||
|
@ -67,7 +67,7 @@ void Foam::BlockLduMatrix<Foam::symmTensor>::relax
|
|||
)
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledRelax(x, b, alpha);
|
||||
decoupledRelax(x, b, alpha);
|
||||
}
|
||||
|
||||
|
||||
|
@ -75,7 +75,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<Foam::symmTensor>::operator*=(const scalarField& sf)
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledMultEqOp(sf);
|
||||
decoupledMultEqOp(sf);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<Foam::tensor>::sumDiag()
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledSumDiag();
|
||||
decoupledSumDiag();
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,7 +45,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<Foam::tensor>::negSumDiag()
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledNegSumDiag();
|
||||
decoupledNegSumDiag();
|
||||
}
|
||||
|
||||
|
||||
|
@ -53,7 +53,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<tensor>::check() const
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledCheck();
|
||||
decoupledCheck();
|
||||
}
|
||||
|
||||
|
||||
|
@ -66,7 +66,7 @@ void Foam::BlockLduMatrix<Foam::tensor>::relax
|
|||
)
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledRelax(x, b, alpha);
|
||||
decoupledRelax(x, b, alpha);
|
||||
}
|
||||
|
||||
|
||||
|
@ -74,7 +74,7 @@ template<>
|
|||
void Foam::BlockLduMatrix<Foam::tensor>::operator*=(const scalarField& sf)
|
||||
{
|
||||
// Decoupled version
|
||||
this->decoupledMultEqOp(sf);
|
||||
decoupledMultEqOp(sf);
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in a new issue