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

[swak4Foam] something wrong when I compile swak4Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 13
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: 4,225
Rep Power: 51
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
udf error srihari FLUENT 1 October 31, 2016 14:18
meshing of a compound volume in GMSH shawn3531 OpenFOAM 4 March 12, 2015 10:45
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 gwierink OpenFOAM Installation 0 April 5, 2011 04:38
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22


All times are GMT -4. The time now is 00:59.