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

Stuff that is missing in OpenFOAM 1.7 released today...

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 26, 2010, 14:34
Default Stuff that is missing in OpenFOAM 1.7 released today...
  #1
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,328
Blog Entries: 32
Rep Power: 72
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Dear OpenCFD developers,

I think it's the 3rd year in a row that you've left out the Make files for libccmio in the ThirdParty folder
In other words, the folder "ThirdParty-1.7/wmakeFiles/libccmio", with the files "files" and "options", is missing (again)

Best regards,
Bruno

PS: Sweet work with the release of the Debian packaging! That will make life easier for a lot of beginners Many thanks!!


NOTE: This note is just because some user might report aimlessly about this issue in a near future, although it's not a critical error at all:
foamInstallationTest doesn't give an OK report with the debian package, because "/opt/ThirdParty-1.7" folder doesn't exist. Additionally, since the system gcc is picked, it looks for it in the folder "/bin/gcc", when in Ubuntu it's "/usr/bin/gcc".

Last edited by wyldckat; June 26, 2010 at 16:41. Reason: added "NOTE"...
wyldckat is offline   Reply With Quote

Old   June 27, 2010, 11:36
Default
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 12
henry is on a distinguished road
I have repacked the ThirdParty-1.7.tgz with the Make file for libccmio.

The foamInstallationTest script is for the source-build installation as described in the README.org file, not for the Debian pack installation.

H
henry is offline   Reply With Quote

Old   July 12, 2010, 18:24
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,328
Blog Entries: 32
Rep Power: 72
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Henry,

I'm sorry for pulling this thread back up, but it seemed more appropriate to post here, rather then starting a new thread. Oh and thanks again for the quick repackaging!


This post is to report that AllwmakeLibccmio will not work with the general shell sh (more specifically, Ubuntu's dash). But it worked with bash, similarly to what use to happen with the All* tutorial scripts.
The only fail point with sh was in the function cpMakeFiles, that although it did create the folder Make inside libccmio-2.6.1, but it did not manage to copy the existing files in the folder wmakeFiles/libccmio

My apologies for not finding+reporting this sooner and sadly I can't figure out why it doesn't work with dash either

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   July 13, 2010, 05:48
Default
  #4
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 12
henry is on a distinguished road
There seems to be a difference of opinion between bash and ash/dash concerning the outcome of the "newer than" conditional "-nt" when one of the files does not exits. To avoid this we can add an explicit test for the existence of the files before using "-nt".

So in cpMakeFiles use the condition:

if [ ! -e $dst/$d/Make/$b -o $wmakeFiles/$i -nt $dst/$d/Make/$b ]

which seems to work fine with dash.

H
henry is offline   Reply With Quote

Old   July 14, 2010, 02:55
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 774
Rep Power: 17
olesen will become famous soon enough
Quote:
Originally Posted by henry View Post
There seems to be a difference of opinion between bash and ash/dash concerning the outcome of the "newer than" conditional "-nt" when one of the files does not exits. To avoid this we can add an explicit test for the existence of the files before using "-nt".

So in cpMakeFiles use the condition:

if [ ! -e $dst/$d/Make/$b -o $wmakeFiles/$i -nt $dst/$d/Make/$b ]

which seems to work fine with dash.
According to the bash man page
Quote:
file1 -nt file2
True if file1 is newer (according to modification date) than file2, or if file1 exists and file2 does not.
This is consistent with how /usr/bin/test behaves too.
olesen is offline   Reply With Quote

Old   July 14, 2010, 05:47
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,328
Blog Entries: 32
Rep Power: 72
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings to all,

Henry: thank you for the quick response. It works very well with dash Too bad this wont get to be repackaged in 1.7.0

Quote:
Originally Posted by olesen View Post
This is consistent with how /usr/bin/test behaves too.
Olesen: But sadly dash doesn't think the same:
Quote:
Originally Posted by http://linux.die.net/man/1/dash
file1 -nt file2
True if file1 exists and is newer than file2.
And if you search for test in FreeBSD's man, you'll get the same interpretation of -nt
Don't forget that bash stands for Bourne-Again SHell

Best regards,
Bruno
wyldckat 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
OpenFOAM Version 1.6 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 0 July 27, 2009 17:55
OpenFOAM Version 1.5 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 July 14, 2008 18:22
OpenFOAM Version 1.4.1 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 August 3, 2007 07:31
OpenFOAM Version 1.3 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 March 29, 2006 17:06
OpenFOAM Version 1.1 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 March 11, 2005 05:33


All times are GMT -4. The time now is 07:21.