CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Autorefinement and deforming enginemesh (http://www.cfd-online.com/Forums/openfoam/91756-autorefinement-deforming-enginemesh.html)

Rickard.Solsjo August 22, 2011 04:20

Autorefinement and deforming enginemesh
 
Hi all
Does anyone have any idea on how to solve this problem, or perhaps have solved it before.
Im trying to implement dynamicRefinement into the dieselEngineFoam.
This means I have to include both dynamicFvMesh and engineMesh, and this gives me a problem since the pointer meshPtr is directing to both of them so I get a conflict in declaration. I'm just doing it for a single processor naturally.
My error message reads.

/opt/openfoam171/src/dynamicFvMesh/lnInclude/createDynamicFvMesh.H: In function ‘int main(int, char**)’:
/opt/openfoam171/src/dynamicFvMesh/lnInclude/createDynamicFvMesh.H:6: error: conflicting declaration ‘Foam::autoPtr<Foam::dynamicFvMesh> meshPtr’
/opt/openfoam171/src/engine/lnInclude/createEngineMesh.H:6: error: ‘meshPtr’ has a previous declaration as ‘Foam::autoPtr<Foam::engineMesh> meshPtr’
/opt/openfoam171/src/dynamicFvMesh/lnInclude/createDynamicFvMesh.H:17: error: conflicting declaration ‘Foam::dynamicFvMesh& mesh’
/opt/openfoam171/src/engine/lnInclude/createEngineMesh.H:17: error: ‘mesh’ has a previous declaration as ‘Foam::engineMesh& mesh’

Appreciate some help


All times are GMT -4. The time now is 07:12.