CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   compile errors of boundary condition "expDirectionMixed" (http://www.cfd-online.com/Forums/openfoam-bugs/72278-compile-errors-boundary-condition-expdirectionmixed.html)

liying02ts February 1, 2010 02:52

compile errors of boundary condition "expDirectionMixed"
 
A boundary condition named "expDirectionMixed", which is in the ~/src/finiteVolume/fields/fvPatchFields/derived/expDirectionMixed. It has not been complied during the compilation of OpenFOAM. We compile it by add the name of source file “expDirectionMixedFvPatchField.C”to the "file" file, which in the folder ~/src/finiteVolume/Make. And then execute "wmake libso" to compile it .But there are some errors appear, as follow:

Code:


SOURCE=fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/ly/OpenFOAM/OpenFOAM-1.6/src/triSurface/lnInclude -I/home/ly/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/ly/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/ly/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/expDirectionMixedFvPatchField.o
In file included from fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.H:264,
from fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:27:
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::snGrad() const’:
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:147: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:147: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:150: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:150: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:158: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:158: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::evaluate(Foam::Pstream::commsTypes)’:
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:166: error: there are no arguments to ‘updated’ that depend on a template parameter, so a declaration of ‘updated’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:168: error: there are no arguments to ‘updateCoeffs’ that depend on a template parameter, so a declaration of ‘updateCoeffs’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:171: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:174: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:174: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueBoundaryCoeffs(const Foam::tmp<Foam::Field<double> >&) const’:
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:205: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:208: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:208: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:216: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientInternalCoeffs() const’:
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:224: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientBoundaryCoeffs() const’:
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:232: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:235: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:235: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:242: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::write(Foam::Ostream&) const’:
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:254: error: there are no arguments to ‘writeEntry’ that depend on a template parameter, so a declaration of ‘writeEntry’ must be available
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: At global scope:
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:41: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&)’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:41: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&)’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:57: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&, const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::fvPatchFieldMapper&)’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:57: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&, const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::fvPatchFieldMapper&)’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:72: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&)’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:72: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&)’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:87: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&)’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:87: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&)’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:101: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&, const Foam::DimensionedField<Type, Foam::volMesh>&)’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:101: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&, const Foam::DimensionedField<Type, Foam::volMesh>&)’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:116: error: redefinition of ‘void Foam::expDirectionMixedFvPatchField<Type>::autoMap(const Foam::fvPatchFieldMapper&)’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:116: error: ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::autoMap(const Foam::fvPatchFieldMapper&)’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:131: error: redefinition of ‘void Foam::expDirectionMixedFvPatchField<Type>::rmap(const Foam::fvPatchField<Type>&, const Foam::labelList&)’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:131: error: ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::rmap(const Foam::fvPatchField<Type>&, const Foam::labelList&)’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:145: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::snGrad() const’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:145: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::snGrad() const’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:164: error: redefinition of ‘void Foam::expDirectionMixedFvPatchField<Type>::evaluate(Foam::Pstream::commsTypes)’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:164: error: ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::evaluate(Foam::Pstream::commsTypes)’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:193: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueInternalCoeffs(const Foam::tmp<Foam::Field<double> >&) const’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:193: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueInternalCoeffs(const Foam::tmp<Foam::Field<double> >&) const’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:203: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueBoundaryCoeffs(const Foam::tmp<Foam::Field<double> >&) const’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:203: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueBoundaryCoeffs(const Foam::tmp<Foam::Field<double> >&) const’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:222: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientInternalCoeffs() const’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:222: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientInternalCoeffs() const’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:230: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientBoundaryCoeffs() const’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:230: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientBoundaryCoeffs() const’ previously declared here
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:248: error: redefinition of ‘void Foam::expDirectionMixedFvPatchField<Type>::write(Foam::Ostream&) const’
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:248: error: ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::write(Foam::Ostream&) const’ previously declared here
make: *** [Make/linux64GccDPOpt/expDirectionMixedFvPatchField.o] Error 1

I have no idea about it.
I wonder if it is because of the version of OpenFOAM, or other problems.
I have tried to compile it both in OpenFOAM-1.5 and OpenFOAM-1.6, but the errors appear both.
Help me, please.
Thank you everyone.

henry February 1, 2010 05:13

This is a legacy BC superceded by directionMixed. I have now removed it from OpenFOAM-1.6.x.

H

liying02ts February 1, 2010 21:11

ok,I get it.
Thank you for your reply!:)


All times are GMT -4. The time now is 03:28.