COMP: avoid operator= masking (gcc-13)
This commit is contained in:
parent
8394e45c13
commit
1a1322a2b0
@ -119,16 +119,19 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Member functions
|
||||
// Member Functions
|
||||
|
||||
// Evaluation functions
|
||||
//- Update the patch field
|
||||
virtual void evaluate
|
||||
(
|
||||
const Pstream::commsTypes commsType = Pstream::commsTypes::blocking
|
||||
);
|
||||
|
||||
//- Update the patch field
|
||||
virtual void evaluate
|
||||
(
|
||||
const Pstream::commsTypes commsType =
|
||||
Pstream::commsTypes::blocking
|
||||
);
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Inherit assignment operators
|
||||
using pointPatchField<Type>::operator=;
|
||||
};
|
||||
|
||||
|
||||
|
@ -124,7 +124,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Member functions
|
||||
// Member Functions
|
||||
|
||||
// Evaluation functions
|
||||
|
||||
@ -141,6 +141,12 @@ public:
|
||||
|
||||
//- Return face-gradient transform diagonal
|
||||
virtual tmp<Field<Type>> snGradTransformDiag() const;
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Inherit assignment operators
|
||||
using transformFaPatchField<Type>::operator=;
|
||||
};
|
||||
|
||||
|
||||
|
@ -122,7 +122,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Member functions
|
||||
// Member Functions
|
||||
|
||||
//- Return gradient at boundary
|
||||
virtual tmp<Field<Type>> snGrad() const;
|
||||
@ -135,6 +135,12 @@ public:
|
||||
|
||||
//- Return face-gradient transform diagonal
|
||||
virtual tmp<Field<Type>> snGradTransformDiag() const;
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Inherit assignment operators
|
||||
using transformFvPatchField<Type>::operator=;
|
||||
};
|
||||
|
||||
|
||||
|
@ -55,7 +55,7 @@ alphaContactAngleTwoPhaseFvPatchScalarField
|
||||
)
|
||||
:
|
||||
fixedGradientFvPatchScalarField(p, iF),
|
||||
limit_(lcZeroGradient)
|
||||
limit_(limitControls::lcZeroGradient)
|
||||
{}
|
||||
|
||||
|
||||
@ -128,7 +128,7 @@ void Foam::alphaContactAngleTwoPhaseFvPatchScalarField::evaluate
|
||||
const Pstream::commsTypes
|
||||
)
|
||||
{
|
||||
if (limit_ == lcGradient)
|
||||
if (limit_ == limitControls::lcGradient)
|
||||
{
|
||||
gradient() =
|
||||
patch().deltaCoeffs()
|
||||
@ -137,14 +137,14 @@ void Foam::alphaContactAngleTwoPhaseFvPatchScalarField::evaluate
|
||||
- *this
|
||||
);
|
||||
}
|
||||
else if (limit_ == lcZeroGradient)
|
||||
else if (limit_ == limitControls::lcZeroGradient)
|
||||
{
|
||||
gradient() = Zero;
|
||||
}
|
||||
|
||||
fixedGradientFvPatchScalarField::evaluate();
|
||||
|
||||
if (limit_ == lcAlpha)
|
||||
if (limit_ == limitControls::lcAlpha)
|
||||
{
|
||||
scalarField::operator=(clamp(*this, zero_one{}));
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Member functions
|
||||
// Member Functions
|
||||
|
||||
//- Return the contact angle
|
||||
virtual tmp<scalarField> theta
|
||||
@ -153,6 +153,12 @@ public:
|
||||
|
||||
//- Write
|
||||
virtual void write(Ostream& os) const;
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Inherit assignment operators
|
||||
using fvPatchField<scalar>::operator=;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user