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

[swak4Foam] swak4Foam for foam-extend 1.6 problem

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2016, 14:54
Default swak4Foam for foam-extend 1.6 problem
  #1
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi everyone,

This thread originates from the following post.
http://www.cfd-online.com/Forums/ope...her-field.html

I would like to use groovyBc for some of my face boundaries.

Following the webpage for installation,

I proceeded and got stuck at this specific error.

In file included from entryToExpression/entryToExpression.H:50:0,
from entryToExpression/directEntryToExpression.H:49,
from entryToExpression/directEntryToExpression.C:37:
lnInclude/foamVersion4swak.H:8:37: error: floating constant in preprocessor expression
#define FOAM_VERSION4SWAK_PATCH_NUM 1.6-ext

And the same macro definition seems to fail creation of libraries.

Can anyone guide me here? I would like to use 1.6-ext instead of 3.1-ext as the modified code is seen to perform better though I need to dig deep and make my hands dirty.

Thanks;
Saideep
Saideep is offline   Reply With Quote

Old   October 30, 2016, 08:54
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: I need more details. Which specific installation instructions did you follow and which swak4Foam version did you download?
__________________
wyldckat is offline   Reply With Quote

Old   October 30, 2016, 12:36
Default
  #3
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 Saideep View Post
Hi everyone,

This thread originates from the following post.
http://www.cfd-online.com/Forums/ope...her-field.html

I would like to use groovyBc for some of my face boundaries.

Following the webpage for installation,

I proceeded and got stuck at this specific error.

In file included from entryToExpression/entryToExpression.H:50:0,
from entryToExpression/directEntryToExpression.H:49,
from entryToExpression/directEntryToExpression.C:37:
lnInclude/foamVersion4swak.H:8:37: error: floating constant in preprocessor expression
#define FOAM_VERSION4SWAK_PATCH_NUM 1.6-ext

And the same macro definition seems to fail creation of libraries.

Can anyone guide me here? I would like to use 1.6-ext instead of 3.1-ext as the modified code is seen to perform better though I need to dig deep and make my hands dirty.

Thanks;
Saideep
According to what I wrote in the README with version 0.3.0 swak lost support for some installations of 1.6-ext (basically those not installed off the nextRelease-branch). If you need only "plain" groovyBC and no newer features I'd suggest you go back to old versions of swak that are still known to support 1.6-ext (I think that would be 0.2.3 or 0.2.4). Basically first clone the regular mercurial repository of swak and then move to the proper tag with
Code:
hg update version_0.2.3
or
Code:
hg update version_0.2.4
The current default or development-branch of the repository probably won't work with 1.6-ext anymore (at least I haven't tested it)
wyldckat and Saideep like this.
__________________
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

Old   November 2, 2016, 10:05
Default
  #4
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Thanks Bruno and GSchaider,

I tried to install swak-0.2.x as swak-0.3.x gives me an error saying "this version of swak is for OpenFOAM-2.x and higher".

So, I downloaded from the following webpage:
https://openfoamwiki.net/index.php/I...enFOAM_1.6-ext

My bison version was 3.x (this was the main problem) and as Gschaider mentioned that few api's of bison 3.x were not compatible with swak versions. I had to use the "maintainanceScripts" of newer swak version and paste it into my older version of swak.

Tweaking a bit of my Allwmake file (to let it know I have a local bison version of 2.x) as follows worked fine.
Code:
### added by me###
swakDir=$(pwd)
requirementsBin=$swakDir/privateRequirements/bin

if [ -e $requirementsBin ];
then
    echo
    echo "$requirementsBin existing. Prepending to PATH-variable (private version of Bison)"
    echo
    export PATH=$requirementsBin:$PATH
fi
###
Would be good if you added this script into the older swak version as well.

Thanks guys.
Saideep is offline   Reply With Quote

Reply

Tags
foam extend 1.6, swak4foam error


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
[swak4Foam] swak4foam >>>> INSTALLATION PROBLEM steven123 OpenFOAM Community Contributions 35 January 11, 2021 16:53
[foam-extend.org] error installing foam extend 1.6 in ubuntu 12.04 christos OpenFOAM Installation 1 May 9, 2016 17:20
problem with RBF in tho Foam 3.0 extend Vesek OpenFOAM Programming & Development 4 June 16, 2014 04:22
[swak4Foam] Basic Error when installing swak4foam with foam extend 3.0 mnobrega OpenFOAM Community Contributions 6 April 1, 2014 01:47
Floating Point Exception - wrong boundaries or general PC problem? – OF 1.6 extend - A.Wendy OpenFOAM 0 February 27, 2013 04:50


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