CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

something wrong when I compile swak4Foam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 22, 2013, 05:21
Default something wrong when I compile swak4Foam
  #1
New Member
 
Wang Han
Join Date: May 2012
Location: Shanghai China
Posts: 21
Rep Power: 5
whyingwang is on a distinguished road
Recently I try to compile swak4Foam.But I failed.
I use OpenFOAM-2.1.1 and bison:2.4.1,flex 2.5.35.
It tells me something wrong with the function,as show below:

PatchValueExpressionParser.yy:476: error: no matching function for call to ‘Foam::Field<Foam::SymmTensor<double> >::Field(Foam::tmp<Foam::Field<Foam::Tensor<double > > >)’
............
PatchValueExpressionParser.yy:666: error: no matching function for call to ‘Foam::Field<Foam::SymmTensor<double> >::Field(Foam::tmp<Foam::Field<Foam::Tensor<double > > >)’
............
swakCodedFunctionObject.C:292: error: no matching function for call to ‘Foam::swakCodedFunctionObject::updateLibrary()’
...........
groovyFlowRateInletVelocityFvPatchVectorField.C:12 4: error: ‘flowRate’ was not declared in this scope

Who can tell me why?I compiled successfully on OpenFOAM-2.1.0 but fail on OpenFOAM-2.2.0
whyingwang is offline   Reply With Quote

Old   May 22, 2013, 07:13
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by whyingwang View Post
Recently I try to compile swak4Foam.But I failed.
I use OpenFOAM-2.1.1 and bison:2.4.1,flex 2.5.35.
It tells me something wrong with the function,as show below:

PatchValueExpressionParser.yy:476: error: no matching function for call to ‘Foam::Field<Foam::SymmTensor<double> >::Field(Foam::tmp<Foam::Field<Foam::Tensor<double > > >)’
............
PatchValueExpressionParser.yy:666: error: no matching function for call to ‘Foam::Field<Foam::SymmTensor<double> >::Field(Foam::tmp<Foam::Field<Foam::Tensor<double > > >)’
............
swakCodedFunctionObject.C:292: error: no matching function for call to ‘Foam::swakCodedFunctionObject::updateLibrary()’
...........
groovyFlowRateInletVelocityFvPatchVectorField.C:12 4: error: ‘flowRate’ was not declared in this scope

Who can tell me why?I compiled successfully on OpenFOAM-2.1.0 but fail on OpenFOAM-2.2.0
The problem is that the API changes between versions of OpenFOAM (sometimes even in the same version). swak tries to determine your version and does things slightly different depending on the version.

Anyway: which version of swak do you have? Older versions than 0.2.3 will not compile on OF 2.2 (and for 2.2.0 you need a manual fix ... see the page on the Wiki). Ah. And which variant of the sources do you have? The 1.x or the 2.x-version?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
groovyBC and funkySetFields married and got a kid named swak4Foam gschaider OpenFOAM 164 January 13, 2015 03:52
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 21:11
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24
udf error srihari FLUENT 0 February 9, 2009 10:00


All times are GMT -4. The time now is 05:42.