mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
COMP: Updated to compile with Clang 3.7.1
This commit is contained in:
committed by
Andrew Heather
parent
0c64622341
commit
9aff74aaaf
@ -100,7 +100,8 @@ basicSymmetryFaPatchField<Type>::basicSymmetryFaPatchField
|
||||
template<class Type>
|
||||
tmp<Field<Type> > basicSymmetryFaPatchField<Type>::snGrad() const
|
||||
{
|
||||
vectorField nHat = this->patch().edgeNormals();
|
||||
const vectorField nHat(this->patch().edgeNormals());
|
||||
|
||||
return
|
||||
(
|
||||
transform(I - 2.0*sqr(nHat), this->patchInternalField())
|
||||
@ -118,7 +119,7 @@ void basicSymmetryFaPatchField<Type>::evaluate(const Pstream::commsTypes)
|
||||
this->updateCoeffs();
|
||||
}
|
||||
|
||||
vectorField nHat = this->patch().edgeNormals();
|
||||
const vectorField nHat(this->patch().edgeNormals());
|
||||
Field<Type>::operator=
|
||||
(
|
||||
(
|
||||
@ -135,7 +136,7 @@ void basicSymmetryFaPatchField<Type>::evaluate(const Pstream::commsTypes)
|
||||
template<class Type>
|
||||
tmp<Field<Type> > basicSymmetryFaPatchField<Type>::snGradTransformDiag() const
|
||||
{
|
||||
vectorField nHat = this->patch().edgeNormals();
|
||||
const vectorField nHat(this->patch().edgeNormals());
|
||||
vectorField diag(nHat.size());
|
||||
|
||||
diag.replace(vector::X, mag(nHat.component(vector::X)));
|
||||
|
||||
Reference in New Issue
Block a user