diff --git a/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H b/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H index cd42beb023..0b3218c40b 100644 --- a/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H +++ b/src/OpenFOAM/containers/HashTables/HashTable/HashTable.H @@ -370,7 +370,7 @@ public: ); //- Construct from hash table, element and hash index - inline explicit iteratorBase + inline iteratorBase ( const HashTable* curHashTable, const hashedEntry* elmt, @@ -428,7 +428,7 @@ public: ); //- Construct from hash table, element and hash index - inline explicit iterator + inline iterator ( HashTable* curHashTable, hashedEntry* elmt, @@ -483,7 +483,7 @@ public: ); //- Construct from hash table, element and hash index - inline explicit const_iterator + inline const_iterator ( const HashTable* curHashTable, const hashedEntry* elmt, diff --git a/src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTable.H b/src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTable.H index 8d6cfb4204..d3372ed0e1 100644 --- a/src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTable.H +++ b/src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTable.H @@ -297,10 +297,8 @@ public: { friend class StaticHashTable; -# ifndef __INTEL_COMPILER template friend class Iterator; -# endif // Private data diff --git a/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILList.C b/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILList.C index 090e12f67b..460498e7d5 100644 --- a/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILList.C +++ b/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILList.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -44,7 +44,6 @@ Foam::ILList::ILList(const ILList& lst) } -#ifndef __INTEL_COMPILER template template Foam::ILList::ILList @@ -65,7 +64,6 @@ Foam::ILList::ILList this->append(iter().clone(cloneArg).ptr()); } } -#endif // * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILList.H b/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILList.H index 0d91423e90..893095d15b 100644 --- a/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILList.H +++ b/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILList.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -95,25 +95,7 @@ public: //- Copy constructor with additional argument for clone template - ILList(const ILList& lst, const CloneArg& cloneArg) - #ifdef __INTEL_COMPILER - : - UILList() - { - for - ( - typename UILList::const_iterator iter = - lst.begin(); - iter != lst.end(); - ++iter - ) - { - append(iter().clone(cloneArg).ptr()); - } - } - #else - ; - #endif + ILList(const ILList& lst, const CloneArg& cloneArg); //- Construct from Istream using given Istream constructor class template diff --git a/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H b/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H index 9a7c23ecf4..4909cf9240 100644 --- a/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H +++ b/src/OpenFOAM/containers/Lists/PackedList/PackedBoolList.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -200,7 +200,7 @@ public: inline PackedBoolList& operator=(const PackedList<1>&); //- Assignment operator. - PackedBoolList& operator=(const UList&); + PackedBoolList& operator=(const Foam::UList&); //- Assignment operator, // using the labels as indices to indicate which bits are set diff --git a/src/OpenFOAM/db/typeInfo/className.H b/src/OpenFOAM/db/typeInfo/className.H index 364d7ecb84..e70e3c85dd 100644 --- a/src/OpenFOAM/db/typeInfo/className.H +++ b/src/OpenFOAM/db/typeInfo/className.H @@ -99,14 +99,6 @@ public: \ #define defineTypeName(Type) \ defineTypeNameWithName(Type, Type::typeName_()) -#ifdef __INTEL_COMPILER -//- Define the typeName as \a Name for template classes -# define defineTemplateTypeNameWithName(Type, Name) \ - defineTypeNameWithName(Type, Name) -//- Define the typeName as \a Name for template sub-classes -# define defineTemplate2TypeNameWithName(Type, Name) \ - defineTypeNameWithName(Type, Name) -#else //- Define the typeName as \a Name for template classes # define defineTemplateTypeNameWithName(Type, Name) \ template<> \ @@ -115,7 +107,6 @@ public: \ # define defineTemplate2TypeNameWithName(Type, Name) \ template<> \ defineTypeNameWithName(Type, Name) -#endif //- Define the typeName for template classes, useful with typedefs #define defineTemplateTypeName(Type) \ diff --git a/src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedField.C b/src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedField.C index bdffc35596..a33942e9b9 100644 --- a/src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedField.C +++ b/src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedField.C @@ -158,7 +158,7 @@ DimensionedField::DimensionedField {} -#ifdef ConstructFromTmp +#ifndef NoConstructFromTmp template DimensionedField::DimensionedField ( @@ -251,7 +251,7 @@ DimensionedField::DimensionedField {} -#ifdef ConstructFromTmp +#ifndef NoConstructFromTmp template DimensionedField::DimensionedField ( diff --git a/src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedField.H b/src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedField.H index 3472cecf11..b3beb9577c 100644 --- a/src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedField.H +++ b/src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedField.H @@ -169,7 +169,7 @@ public: ); //- Construct as copy of tmp deleting argument - #ifdef ConstructFromTmp + #ifndef NoConstructFromTmp DimensionedField ( const tmp >& @@ -214,7 +214,7 @@ public: ); //- Construct as copy resetting name - #ifdef ConstructFromTmp + #ifndef NoConstructFromTmp DimensionedField ( const word& newName, diff --git a/src/OpenFOAM/fields/FieldFields/FieldField/FieldField.C b/src/OpenFOAM/fields/FieldFields/FieldField/FieldField.C index 1a34e280da..c6faf4a7da 100644 --- a/src/OpenFOAM/fields/FieldFields/FieldField/FieldField.C +++ b/src/OpenFOAM/fields/FieldFields/FieldField/FieldField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -168,7 +168,7 @@ FieldField::FieldField(const PtrList >& tl) // Construct as copy of tmp -#ifdef ConstructFromTmp +#ifndef NoConstructFromTmp template class Field, class Type> FieldField::FieldField(const tmp >& tf) : @@ -197,7 +197,6 @@ tmp > FieldField::clone() const } -#ifndef __INTEL_COMPILER template class Field, class Type> template tmp > FieldField::NewCalculatedType @@ -217,7 +216,6 @@ tmp > FieldField::NewCalculatedType return tmp >(nffPtr); } -#endif // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/fields/FieldFields/FieldField/FieldField.H b/src/OpenFOAM/fields/FieldFields/FieldField/FieldField.H index 1556e3a9b8..94f89dbf6a 100644 --- a/src/OpenFOAM/fields/FieldFields/FieldField/FieldField.H +++ b/src/OpenFOAM/fields/FieldFields/FieldField/FieldField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -108,9 +108,9 @@ public: FieldField(const PtrList >&); //- Construct as copy of tmp -# ifdef ConstructFromTmp + #ifndef NoConstructFromTmp FieldField(const tmp >&); -# endif + #endif //- Construct from Istream FieldField(Istream&); @@ -124,24 +124,8 @@ public: static tmp > NewCalculatedType ( const FieldField& ff - ) -# ifdef __INTEL_COMPILER - { - FieldField* nffPtr - ( - new FieldField(ff.size()) - ); + ); - forAll(*nffPtr, i) - { - nffPtr->set(i, Field::NewCalculatedType(ff[i]).ptr()); - } - - return tmp >(nffPtr); - } -# else - ; -# endif // Member functions diff --git a/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.C b/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.C index 7c68958b15..4dfc131e4b 100644 --- a/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.C +++ b/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -614,10 +614,8 @@ BINARY_TYPE_FUNCTION(Type, Type, Type, cmptDivide) UNARY_OPERATOR(Type, Type, -, negate) -#ifndef __INTEL_COMPILER BINARY_OPERATOR(Type, Type, scalar, *, multiply) BINARY_OPERATOR(Type, scalar, Type, *, multiply) -#endif BINARY_OPERATOR(Type, Type, scalar, /, divide) BINARY_TYPE_OPERATOR_SF(Type, scalar, Type, *, multiply) diff --git a/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.H b/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.H index 65f68b34ec..97dccf4510 100644 --- a/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.H +++ b/src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -253,10 +253,8 @@ BINARY_TYPE_FUNCTION(Type, Type, Type, cmptDivide) UNARY_OPERATOR(Type, Type, -, negate) -#ifndef __INTEL_COMPILER BINARY_OPERATOR(Type, Type, scalar, *, multiply) BINARY_OPERATOR(Type, scalar, Type, *, multiply) -#endif BINARY_OPERATOR(Type, Type, scalar, /, divide) BINARY_TYPE_OPERATOR_SF(Type, scalar, Type, *, multiply) diff --git a/src/OpenFOAM/fields/Fields/Field/Field.C b/src/OpenFOAM/fields/Fields/Field/Field.C index 7cca8f9942..48fcaacac0 100644 --- a/src/OpenFOAM/fields/Fields/Field/Field.C +++ b/src/OpenFOAM/fields/Fields/Field/Field.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -222,15 +222,6 @@ Foam::Field::Field(const Xfer >& f) {} -#ifdef __INTEL_COMPILER -template -Foam::Field::Field(const typename Field::subField& sf) -: - List(sf) -{} -#endif - - template Foam::Field::Field(const UList& list) : @@ -239,7 +230,7 @@ Foam::Field::Field(const UList& list) // Construct as copy of tmp -#ifdef ConstructFromTmp +#ifndef NoConstructFromTmp template Foam::Field::Field(const tmp >& tf) : diff --git a/src/OpenFOAM/fields/Fields/Field/Field.H b/src/OpenFOAM/fields/Fields/Field/Field.H index 5d8903ea63..f9c340f9bc 100644 --- a/src/OpenFOAM/fields/Fields/Field/Field.H +++ b/src/OpenFOAM/fields/Fields/Field/Field.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -210,15 +210,10 @@ public: //- Construct by transferring the Field contents Field(const Xfer >&); -#ifdef __INTEL_COMPILER - //- Construct as copy of subField - Field(const typename Field::subField&); -#endif - //- Construct as copy of tmp -# ifdef ConstructFromTmp + #ifndef NoConstructFromTmp Field(const tmp >&); -# endif + #endif //- Construct from Istream Field(Istream&); diff --git a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C index 32b427c04c..d18f24e19f 100644 --- a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C +++ b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C @@ -426,7 +426,7 @@ Foam::GeometricField::GeometricField } -#ifdef ConstructFromTmp +#ifndef NoConstructFromTmp template class PatchField, class GeoMesh> Foam::GeometricField::GeometricField ( @@ -488,7 +488,7 @@ Foam::GeometricField::GeometricField } -#ifdef ConstructFromTmp +#ifndef NoConstructFromTmp template class PatchField, class GeoMesh> Foam::GeometricField::GeometricField ( @@ -552,7 +552,7 @@ Foam::GeometricField::GeometricField } -#ifdef ConstructFromTmp +#ifndef NoConstructFromTmp template class PatchField, class GeoMesh> Foam::GeometricField::GeometricField ( diff --git a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.H b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.H index 91acb5630a..334bdc2670 100644 --- a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.H +++ b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.H @@ -355,7 +355,7 @@ public: ); //- Construct as copy of tmp deleting argument - #ifdef ConstructFromTmp + #ifndef NoConstructFromTmp GeometricField ( const tmp >& @@ -370,7 +370,7 @@ public: ); //- Construct as copy of tmp resetting IO parameters - #ifdef ConstructFromTmp + #ifndef NoConstructFromTmp GeometricField ( const IOobject&, @@ -386,7 +386,7 @@ public: ); //- Construct as copy resetting name - #ifdef ConstructFromTmp + #ifndef NoConstructFromTmp GeometricField ( const word& newName, diff --git a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricFieldFunctions.C b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricFieldFunctions.C index 7d1e9f71c2..bdd619e359 100644 --- a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricFieldFunctions.C +++ b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricFieldFunctions.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -557,10 +557,8 @@ BINARY_TYPE_FUNCTION(Type, Type, Type, cmptDivide) UNARY_OPERATOR(Type, Type, -, negate, transform) -#ifndef __INTEL_COMPILER BINARY_OPERATOR(Type, Type, scalar, *, '*', multiply) BINARY_OPERATOR(Type, scalar, Type, *, '*', multiply) -#endif BINARY_OPERATOR(Type, Type, scalar, /, '|', divide) BINARY_TYPE_OPERATOR_SF(Type, scalar, Type, *, '*', multiply) diff --git a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricFieldFunctions.H b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricFieldFunctions.H index c8e0a8e48e..459bb7b7b7 100644 --- a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricFieldFunctions.H +++ b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricFieldFunctions.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -250,10 +250,8 @@ BINARY_TYPE_FUNCTION(Type, Type, Type, cmptDivide) UNARY_OPERATOR(Type, Type, -, negate, transform) -#ifndef __INTEL_COMPILER BINARY_OPERATOR(Type, Type, scalar, *, '*', multiply) BINARY_OPERATOR(Type, scalar, Type, *, '*', multiply) -#endif BINARY_OPERATOR(Type, Type, scalar, /, '|', divide) BINARY_TYPE_OPERATOR_SF(Type, scalar, Type, *, '*', multiply) diff --git a/src/OpenFOAM/global/debug/defineDebugSwitch.H b/src/OpenFOAM/global/debug/defineDebugSwitch.H index 830c71fb3c..54731a1b6e 100644 --- a/src/OpenFOAM/global/debug/defineDebugSwitch.H +++ b/src/OpenFOAM/global/debug/defineDebugSwitch.H @@ -114,14 +114,6 @@ public: defineDebugSwitchWithName(Type, Type::typeName_(), DebugSwitch); \ registerDebugSwitchWithName(Type, Type, Type::typeName_()) -#ifdef __INTEL_COMPILER -//- Define the debug information for templates, lookup as \a Name -# define defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch) \ - defineDebugSwitchWithName(Type, Name, DebugSwitch) -//- Define the debug information for templates sub-classes, lookup as \a Name -# define defineTemplate2DebugSwitchWithName(Type, Name, DebugSwitch) \ - defineDebugSwitchWithName(Type, Name, DebugSwitch) -#else //- Define the debug information for templates, lookup as \a Name # define defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch) \ template<> \ @@ -132,7 +124,6 @@ public: template<> \ defineDebugSwitchWithName(Type, Name, DebugSwitch); \ registerTemplateDebugSwitchWithName(Type, Name) -#endif //- Define the debug information for templates // Useful with typedefs diff --git a/src/OpenFOAM/memory/tmp/tmp.H b/src/OpenFOAM/memory/tmp/tmp.H index fd6a0c0335..7ca3a13ca2 100644 --- a/src/OpenFOAM/memory/tmp/tmp.H +++ b/src/OpenFOAM/memory/tmp/tmp.H @@ -38,10 +38,6 @@ SourceFiles #include "refCount.H" #include -#ifndef __INTEL_COMPILER -# define ConstructFromTmp -#endif - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.H index c03236b0da..d2c244bd69 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -150,9 +150,8 @@ public: } - // Destructor - - ~processorCyclicFvPatchField(); + //- Destructor + virtual ~processorCyclicFvPatchField(); // Member functions diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.H index 73ef5341f1..38aa5f18c7 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -131,7 +131,7 @@ public: //- Destructor - ~processorFvsPatchField(); + virtual ~processorFvsPatchField(); // Member functions diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.H index 8f725ce861..c096662b29 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -131,9 +131,8 @@ public: } - // Destructor - - ~processorCyclicFvsPatchField(); + //- Destructor + virtual ~processorCyclicFvsPatchField(); // Member functions diff --git a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C index abbfdc621e..8da078fbc4 100644 --- a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C +++ b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C @@ -356,7 +356,7 @@ Foam::fvMatrix::fvMatrix(const fvMatrix& fvm) } -#ifdef ConstructFromTmp +#ifndef NoConstructFromTmp template Foam::fvMatrix::fvMatrix(const tmp >& tfvm) : diff --git a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.H b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.H index 4809e6b5ea..c9282af68b 100644 --- a/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.H +++ b/src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.H @@ -263,7 +263,7 @@ public: fvMatrix(const fvMatrix&); //- Construct as copy of tmp > deleting argument - #ifdef ConstructFromTmp + #ifndef NoConstructFromTmp fvMatrix(const tmp >&); #endif diff --git a/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindCECCellToFaceStencilObject.H b/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindCECCellToFaceStencilObject.H index 9882a8253a..d9f673deb4 100644 --- a/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindCECCellToFaceStencilObject.H +++ b/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindCECCellToFaceStencilObject.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -64,7 +64,7 @@ public: // Constructors //- Construct from uncompacted face stencil - explicit upwindCECCellToFaceStencilObject + upwindCECCellToFaceStencilObject ( const fvMesh& mesh, const bool pureUpwind, diff --git a/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindCFCCellToFaceStencilObject.H b/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindCFCCellToFaceStencilObject.H index ecedf99593..65c635eb92 100644 --- a/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindCFCCellToFaceStencilObject.H +++ b/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindCFCCellToFaceStencilObject.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -64,7 +64,7 @@ public: // Constructors //- Construct from uncompacted face stencil - explicit upwindCFCCellToFaceStencilObject + upwindCFCCellToFaceStencilObject ( const fvMesh& mesh, const bool pureUpwind, diff --git a/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindFECCellToFaceStencilObject.H b/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindFECCellToFaceStencilObject.H index babb254e22..1cd8695f81 100644 --- a/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindFECCellToFaceStencilObject.H +++ b/src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/upwindFECCellToFaceStencilObject.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -64,7 +64,7 @@ public: // Constructors //- Construct from uncompacted face stencil - explicit upwindFECCellToFaceStencilObject + upwindFECCellToFaceStencilObject ( const fvMesh& mesh, const bool pureUpwind, diff --git a/wmake/rules/linux64Icc/c++ b/wmake/rules/linux64Icc/c++ index ed1891d906..0614329d6d 100644 --- a/wmake/rules/linux64Icc/c++ +++ b/wmake/rules/linux64Icc/c++ @@ -1,6 +1,7 @@ SUFFIXES += .C -c++WARN = -wd327,525,654,819,1125,1476,1505,1572 +c++WARN = -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof \ + -diag-disable 2304 CC = icpc -std=c++0x -fp-trap=common -fp-model precise diff --git a/wmake/rules/linuxIA64Icc/c++ b/wmake/rules/linuxIA64Icc/c++ index 646e6c0dca..bb0a2a72df 100644 --- a/wmake/rules/linuxIA64Icc/c++ +++ b/wmake/rules/linuxIA64Icc/c++ @@ -1,6 +1,7 @@ SUFFIXES += .C -c++WARN = -wd327,525,654,819,1125,1476,1505,1572 +c++WARN = -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof \ + -diag-disable 2304 CC = icpc diff --git a/wmake/rules/linuxIcc/c++ b/wmake/rules/linuxIcc/c++ index bfbf8a1020..990e8ecced 100644 --- a/wmake/rules/linuxIcc/c++ +++ b/wmake/rules/linuxIcc/c++ @@ -1,6 +1,7 @@ SUFFIXES += .C -c++WARN = -wd327,525,654,819,1125,1476,1505,1572 +c++WARN = -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof \ + -diag-disable 2304 CC = icpc -std=c++0x -fp-trap=common -fp-model precise