diff --git a/src/VectorN/finiteVolume/blockMatrixTools/blockMatrixTools.C b/src/VectorN/finiteVolume/blockMatrixTools/blockMatrixTools.C index a337af777..e329fbef8 100644 --- a/src/VectorN/finiteVolume/blockMatrixTools/blockMatrixTools.C +++ b/src/VectorN/finiteVolume/blockMatrixTools/blockMatrixTools.C @@ -1262,7 +1262,7 @@ void insertEquationCoupling } // Get references to fvScalarMatrix fields, updating boundary contributions - scalarField& diag = matrix.D(); + scalarField& diag = matrix.D()(); scalarField& source = matrix.source(); matrix.addBoundarySource(source, false); diff --git a/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissiveInlet/waveTransmissiveInletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissiveInlet/waveTransmissiveInletFvPatchField.C index cfa3483c2..4e480649b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissiveInlet/waveTransmissiveInletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissiveInlet/waveTransmissiveInletFvPatchField.C @@ -123,7 +123,7 @@ tmp ); const surfaceScalarField& phi = - this->db().objectRegistry::lookupObject + this->db().objectRegistry::template lookupObject (this->phiName_); fvsPatchField phip = this->patch().lookupPatchField diff --git a/src/foam/fields/CoeffField/CoeffFieldFunctions.C b/src/foam/fields/CoeffField/CoeffFieldFunctions.C index ec954e916..7b122218d 100644 --- a/src/foam/fields/CoeffField/CoeffFieldFunctions.C +++ b/src/foam/fields/CoeffField/CoeffFieldFunctions.C @@ -27,8 +27,10 @@ License /* * * * * * * * * * * * * * * * Global functions * * * * * * * * * * * * * */ +namespace Foam { // namespace added to make CLang happy + template -Foam::tmp > Foam::inv(const CoeffField& f) +tmp > inv(const CoeffField& f) { // The inverse of a linear coefficient type is currently done "by // hand". The need for this will disappear once the diagonal tensor @@ -68,7 +70,7 @@ Foam::tmp > Foam::inv(const CoeffField& f) template -void Foam::multiply +void multiply ( Field& f, const CoeffField& f1, @@ -91,7 +93,7 @@ void Foam::multiply template -void Foam::multiply +void multiply ( Field& f, const CoeffField& f1, @@ -114,7 +116,7 @@ void Foam::multiply template -void Foam::multiply +void multiply ( Field& f, const Field& f1, @@ -141,7 +143,7 @@ void Foam::multiply #define UNARY_OPERATOR(op, opFunc) \ \ template \ -void Foam::opFunc \ +void opFunc \ ( \ CoeffField& f, \ const CoeffField& f1 \ @@ -174,7 +176,7 @@ void Foam::opFunc \ } \ \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const CoeffField& f1 \ ) \ @@ -185,7 +187,7 @@ Foam::tmp > Foam::operator op \ } \ \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const tmp >& tf1 \ ) \ @@ -203,7 +205,7 @@ UNARY_OPERATOR(-, negate) #define BINARY_OPERATOR_FF(Type1, Type2, op, opFunc) \ \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const CoeffField& f1, \ const Type2& f2 \ @@ -216,7 +218,7 @@ Foam::tmp > Foam::operator op \ \ \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const CoeffField& f1, \ const Field& f2 \ @@ -229,7 +231,7 @@ Foam::tmp > Foam::operator op \ \ \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const Field& f1, \ const CoeffField& f2 \ @@ -242,7 +244,7 @@ Foam::tmp > Foam::operator op \ #define BINARY_OPERATOR_FTR(Type1, Type2, op, opFunc) \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const CoeffField& f1, \ const tmp >& tf2 \ @@ -255,7 +257,7 @@ Foam::tmp > Foam::operator op \ #define BINARY_OPERATOR_FT(Type1, Type2, op, opFunc) \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const Field& f1, \ const tmp >& tf2 \ @@ -268,7 +270,7 @@ Foam::tmp > Foam::operator op \ #define BINARY_OPERATOR_TRF(Type1, Type2, op, opFunc) \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const tmp >& tf1, \ const Field& f2 \ @@ -281,7 +283,7 @@ Foam::tmp > Foam::operator op \ #define BINARY_OPERATOR_TF(Type1, Type2, op, opFunc) \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const tmp >& tf1, \ const Field& f2 \ @@ -294,7 +296,7 @@ Foam::tmp > Foam::operator op \ #define BINARY_OPERATOR_TRT(Type1, Type2, op, opFunc) \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const tmp >& tf1, \ const tmp >& tf2 \ @@ -308,7 +310,7 @@ Foam::tmp > Foam::operator op \ #define BINARY_OPERATOR_TTR(Type1, Type2, op, opFunc) \ template \ -Foam::tmp > Foam::operator op \ +tmp > operator op \ ( \ const tmp >& tf1, \ const tmp >& tf2 \ @@ -330,6 +332,8 @@ Foam::tmp > Foam::operator op \ // HJ, 17/Jun/2010 BINARY_OPERATOR_R(Type, Type, *, multiply) +} // namespace Foam + #undef BINARY_OPERATOR_R #undef BINARY_OPERATOR_FF #undef BINARY_OPERATOR_FTR diff --git a/wmake/rules/darwinIntel64Clang/ARCHITECTURE_TESTED b/wmake/rules/darwinIntel64Clang/ARCHITECTURE_TESTED index e7c190c0c..ec1128dfb 100644 --- a/wmake/rules/darwinIntel64Clang/ARCHITECTURE_TESTED +++ b/wmake/rules/darwinIntel64Clang/ARCHITECTURE_TESTED @@ -1 +1 @@ -by bgschaid. 2010-10-05 +by bgschaid. 2014-05-30 diff --git a/wmake/rules/darwinIntel64Clang/c++ b/wmake/rules/darwinIntel64Clang/c++ index 8a8884c20..450c970ac 100644 --- a/wmake/rules/darwinIntel64Clang/c++ +++ b/wmake/rules/darwinIntel64Clang/c++ @@ -9,7 +9,7 @@ include $(RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-200 -c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC -Ddarwin +c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC -Ddarwin -I/opt/local/include Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@ cxxtoo = $(Ctoo)