CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Stuff that is missing in OpenFOAM 1.7 released today... (http://www.cfd-online.com/Forums/openfoam-bugs/77551-stuff-missing-openfoam-1-7-released-today.html)

wyldckat June 26, 2010 14:34

Stuff that is missing in OpenFOAM 1.7 released today...
 
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".

henry June 27, 2010 11:36

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

wyldckat July 12, 2010 18:24

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

henry July 13, 2010 05:48

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

olesen July 14, 2010 02:55

Quote:

Originally Posted by henry (Post 267021)
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.

wyldckat July 14, 2010 05:47

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 (Post 267164)
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


All times are GMT -4. The time now is 23:20.