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

[swak4Foam] swak4Foam 0.4.2 with foam-extend-4.1 Installation Issue

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

Like Tree3Likes
  • 1 Post By wyldckat
  • 1 Post By treem22
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2019, 10:54
Default swak4Foam 0.4.2 with foam-extend-4.1 Installation Issue
  #1
New Member
 
Mike Tree
Join Date: Feb 2016
Location: Charlotte, NC
Posts: 17
Rep Power: 6
treem22 is on a distinguished road
I'm attempting to install swak4Foam 0.4.2 with foam-extend-4.1 and am running into compilation errors. I'm attempting install on the following linux release:

Code:
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Scientific
Description:    Scientific Linux release 7.6 (Nitrogen)
Release:        7.6
Codename:       Nitrogen
I following the instructions on the wiki to install foam-extend-4.1, which was required to get me working with solids4foam. Everything seems in order with both foam-extend-4.1 and solids4foam, I just can't seem to seamlessly add swak4Foam on top of everything.

A log.make file is attached from me attempting to run ./Allwmake within the /ThirdParty/rpmBuild/BUILD/swak4Foam-0.4.2 directory.

It appears I just missed a small issue: Error on foam-extend build/comilation. Maybe this is the reason the log.make file is reporting that I actually have swak4Foam-0.4.1? I don't care between these two versions. I just want something that works.

Any help is most appreciated!
Attached Files
File Type: gz log.make.gz (2.7 KB, 6 views)
treem22 is offline   Reply With Quote

Old   April 29, 2019, 20:41
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 122
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 answer: Looks like the wrong swak4Foam version was checked out... try:
Code:
cd $WM_THIRD_PARTY_DIR
cd rpmBuild/BUILD/swak4Foam-0.4.2
./Allwclean
hg update --clean .
hg checkout version_0.4.2_v2.x
./Allwmake > log.make 2>&1
./Allwmake > log.make.2nd  2>&1
I doubt very much that swak4Foam 0.4.1 will work with foam-extend 4.1.

And this is assuming that Mercurial is installed and is what you're using...
sphani4391 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 29, 2019, 23:23
Default
  #3
New Member
 
Mike Tree
Join Date: Feb 2016
Location: Charlotte, NC
Posts: 17
Rep Power: 6
treem22 is on a distinguished road
wyldckat,

Can't thank you enough for your ever-present, prompt responses.

I am not able to use hg. I'm not system admin, and it's not installed on my system. So, I was using svn. Digging a bit deeping on sourceforge, I learned that svn only allows me up to version 0.4.1. So, without the ability to clone into the repo directly through hg, I downloaded the latest commit from sourceforge via a .zip file (https://sourceforge.net/p/openfoam-e.../0.4.2/~/tree/).

I blew away my old swak4foam-0.4.2 directory and replaced it with the unzipped version of this zip file. I then renamed that directory to swak4foam-0.4.2_v2.x. From here I ran an ./Allwclean, and then proceeded with an ./Allwmake. I tried to soft link swakConfiguration.automatic to see if I could get lucky, but from the log.make file it doesn't appear that it worked.

From the rest of the log.make and log.make.2nd files, it appears everything should be in order, correct? If so, all that's left is to test out one of the examples.

Thanks again!
Attached Files
File Type: gz log.make.2nd.gz (1.5 KB, 3 views)
File Type: gz log.make.gz (27.9 KB, 2 views)
wyldckat likes this.
treem22 is offline   Reply With Quote

Old   April 30, 2019, 19:07
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 122
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 answer: You're welcome, nice that you went with the ZIP package and that everything is looking good!

The second log file tells us that everything is (mostly) just fine... it's just that the Python based features will not work, but that's rarely used anyway

If by any chance you do need Python support to use with swak4Foam... then we might have to do some custom builds of Python or you will have to ask your administrator to install a complete Python installation... although Python is likely accessible with a module load command... try running:
Code:
module avail
to get a list of available modules... perhaps Python and Mercurial were in the list...
treem22 likes this.
wyldckat is offline   Reply With Quote

Old   January 21, 2020, 23:07
Default
  #5
New Member
 
Sai Darbha
Join Date: Aug 2019
Posts: 4
Rep Power: 2
sphani4391 is on a distinguished road
wyldckat,


Thanks a lot for this. I'm new to Ubuntu and wanted to know what the characters 2>&1 mean in the command:
./Allwmake > log.make 2>&1
I know that > log.make writes the terminal output to log.make file but what's the utility of writing 2>&1 after that?
sphani4391 is offline   Reply With Quote

Old   January 21, 2020, 23:38
Default
  #6
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 374
Rep Power: 9
Светлана is on a distinguished road
I believe it redirects stderr to stdout. This way log.make contains both the standard output and the error messages.

stderr is 2 and stdout is 1.

Please see for more information and context:
Wikipedia - Redirection (computing)
Светлана is offline   Reply With Quote

Reply

Tags
foam-extend, installation issue, swak4foam

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 12 July 11, 2019 17:33
A problem with immersed boundary method running in parallel in foam -extend 4.1 kinakamichibun OpenFOAM Bugs 0 November 8, 2018 05:03
[OpenFOAM.org] Open FOAM 4.1 installation on Ubuntu 17.04 (32 bit). Openguy OpenFOAM Installation 2 September 7, 2017 10:33
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 07:53
[swak4Foam] Basic Error when installing swak4foam with foam extend 3.0 mnobrega OpenFOAM Community Contributions 6 April 1, 2014 01:47


All times are GMT -4. The time now is 11:45.