CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   wmake errors for new boundary condition (http://www.cfd-online.com/Forums/openfoam-programming-development/110922-wmake-errors-new-boundary-condition.html)

mscheng December 26, 2012 02:22

wmake errors for new boundary condition
 
Hi FOAMers,
I compile my boundary condition, but it show errors.

SOURCE=fields/fvPatchFields/derived/precursorMappedFixedValue/precursorMappedFixedValueFvPatchField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/mscheng/OpenFOAM/OpenFOAM-1.6-ext/src/triSurface/lnInclude -I/home/mscheng/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -IlnInclude -I. -I/home/mscheng/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/mscheng/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGcc46DPOpt/precursorMappedFixedValueFvPatchField.o
fields/fvPatchFields/derived/precursorMappedFixedValue/precursorMappedFixedValueFvPatchField.C:40:6: error: redefinition of ‘void Foam::precursorMappedFixedValueFvPatchField<Type>: :mapField() [with Type = double]’
fields/fvPatchFields/derived/precursorMappedFixedValue/precursorMappedFixedValueFvPatchField.C:40:6: error: ‘void Foam::precursorMappedFixedValueFvPatchField<Type>: :mapField() [with Type = double]’ previously declared here
fields/fvPatchFields/derived/precursorMappedFixedValue/precursorMappedFixedValueFvPatchField.C:195:1: error: redefinition of ‘Foam::precursorMappedFixedValueFvPatchField<Type> ::precursorMappedFixedValueFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&) [with Type = double]’
fields/fvPatchFields/derived/precursorMappedFixedValue/precursorMappedFixedValueFvPatchField.C:195:1: error: ‘Foam::precursorMappedFixedValueFvPatchField<Type> ::precursorMappedFixedValueFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&) [with Type = double]’ previously declared here


All times are GMT -4. The time now is 13:22.