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

[swak4Foam] Foam-extend-3.2 and swak4foam...problem with link to triSurface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2015, 13:20
Default Foam-extend-3.2 and swak4foam...problem with link to triSurface
  #1
New Member
 
Nate
Join Date: Oct 2013
Location: Amherst, MA
Posts: 13
Rep Power: 13
ndev is on a distinguished road
Hi All,

Complied foam 3.2 (from github extend mirror) on a cluster recently and all went fine, until I got to swak4foam...then one major issue came up:

- Seems that between 3.1 and 3.2 the "triSurface" source code moved from the root of "src" into "meshTools" where it was combined with another folder named "triSurface"

- This is confusing to swak, which is trying to link directly to the triSurface library...but it is now in meshTools...

- My hack to fix it was to both put a symbolic link in the "src" directory for "triSurface" pointing to the folder in mesh tools, as well as remove the "-ltriSurface" from all the swak libraries' Make/options files. This seems to make swak happy, and the final compile is happening now.

Has anyone else run into this? What's the more permanent fix that keeps swak happy with all the versions of foam-extend?
ndev is offline   Reply With Quote

Old   December 5, 2015, 09:05
Default
  #2
Member
 
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14
milad653279 is on a distinguished road
ok. I have the same problem.
milad653279 is offline   Reply With Quote

Old   December 6, 2015, 15:00
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quote:
Originally Posted by ndev View Post
Has anyone else run into this? What's the more permanent fix that keeps swak happy with all the versions of foam-extend?
Quick question: Are you using the latest swak4Foam release version? Or which specific version of swak4Foam are you using?
wyldckat is offline   Reply With Quote

Old   December 6, 2015, 15:22
Default
  #4
New Member
 
Nate
Join Date: Oct 2013
Location: Amherst, MA
Posts: 13
Rep Power: 13
ndev is on a distinguished road
I'm using swak4Foam-0.3.2 which is the version included in the third party rpm build with foam-extend-3.2 on the github mirror. Thanks!
ndev is offline   Reply With Quote

Old   December 6, 2015, 18:25
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi ndev,

OK, I've spotted the origin of the problem. What happened is that you possibly do not have Mercurial installed, which resulted in the script "AllMake.stage5" going for the secondary solution that relies on the SVN repository.
Problem is that the current 0.3.2 version on the SVN repository isn't as up-to-date as the Mercurial version, as Bernhard somewhat mentioned on Twitter: https://twitter.com/swakPyFoam/statu...97349514776577

If you are using Ubuntu, you can install Mercurial with the following command:
Code:
sudo apt-get install mercurial
Then you can rebuild swak4Foam by running:
Code:
foam3rdParty
rm -r ./rpmBuild/BUILD/swak4Foam-0.3.2
./AllMake.stage5 > log.swak4Foam 2>&1
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 6, 2015, 23:01
Default
  #6
New Member
 
Nate
Join Date: Oct 2013
Location: Amherst, MA
Posts: 13
Rep Power: 13
ndev is on a distinguished road
Great! I'm on a cluster where I don't have access to software/module installation, but I'll definitely ask the admins to add Mercurial for next time! I guess I just assumed that Mercurial and SVN were two different ways to get at the same code! Thank you for clarifying this!
ndev is offline   Reply With Quote

Old   February 8, 2016, 12:10
Default
  #7
New Member
 
Jesse Wang
Join Date: Dec 2014
Posts: 1
Rep Power: 0
jesse_wang is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi ndev,

OK, I've spotted the origin of the problem. What happened is that you possibly do not have Mercurial installed, which resulted in the script "AllMake.stage5" going for the secondary solution that relies on the SVN repository.
Problem is that the current 0.3.2 version on the SVN repository isn't as up-to-date as the Mercurial version, as Bernhard somewhat mentioned on Twitter: https://twitter.com/swakPyFoam/statu...97349514776577

If you are using Ubuntu, you can install Mercurial with the following command:
Code:
sudo apt-get install mercurial
Then you can rebuild swak4Foam by running:
Code:
foam3rdParty
rm -r ./rpmBuild/BUILD/swak4Foam-0.3.2
./AllMake.stage5 > log.swak4Foam 2>&1
Best regards,
Bruno
Dear Bruno,

I followed your instruction about the re-installation of swak4Foam, but still the problem couldn't be fixed.

"icoIbFoam: error while loading shared libraries: libtriSurface.so: cannot open shared object file: No such file or directory"

This error message happens when I tried to run a solver from foam 3.2 standard database. As well, I tried to compile my solver based on this foam 3.2, errors reveal that ltrisurface.so is missing.

ps. I have compiled the foam 3.2 again, after the installation of mercurial.

Best Regards,

Jesse
jesse_wang is offline   Reply With Quote

Old   February 14, 2016, 17:00
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Greetings Jesse,

Whatever problem that is, it's not related to swak4Foam itself. Please run the following commands:
Code:
foam
./Allwmake > log.make 2>&1
gzip < log.make > log.make.gz
Then please attach the file "log.make.gz" to your next post. This will tell us what went wrong with building foam-extend 3.2.

In addition, please tell me what the following commands give you:
Code:
gcc --version
g++ --version
And please tell me which Linux Distribution you are using.

Best regards,
Bruno
__________________
wyldckat 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
[swak4Foam] Problem to calculate grad(U) using swak4Foam Hugoles OpenFOAM Community Contributions 12 November 24, 2020 11:28
InterDyMFoam+simpleFunctionObject Elham OpenFOAM Running, Solving & CFD 5 July 10, 2017 12:59
[swak4Foam] Problem with triSurface.so and swak4Foam PieterjanR OpenFOAM Community Contributions 2 November 21, 2016 10:54
[swak4Foam] Basic Error when installing swak4foam with foam extend 3.0 mnobrega OpenFOAM Community Contributions 6 April 1, 2014 02:47
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00


All times are GMT -4. The time now is 14:03.