CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Updating/reinstalling swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/114954-updating-reinstalling-swak4foam.html)

Werne March 20, 2013 11:28

Updating/reinstalling swak4Foam
 
Hello,
I have a question concerning the reinstallation of the swak4Foam library. My problem is that my current installation of this library seems to be incomplete as the size of it is approximately 1 MiB smaller than the installation on my second computer.

Is it sufficient to simply download the files again and install them with "wmake all" on top of the existing installation or do I have to delete the old files first?

gschaider March 20, 2013 13:56

Quote:

Originally Posted by Werne (Post 415294)
Hello,
I have a question concerning the reinstallation of the swak4Foam library. My problem is that my current installation of this library seems to be incomplete as the size of it is approximately 1 MiB smaller than the installation on my second computer.

Is it sufficient to simply download the files again and install them with "wmake all" on top of the existing installation or do I have to delete the old files first?

With "size" you mean "du -sh swak4Foam" when you already compiled it? That doesn't say much. The size may vary depending on the compiler and other factors (location of the installation may be an issue as these are sometimes stored in the object files)

If ./Allwmake runs through without problems then I'd say that the the sources are complete

With "existing installation" you mean the source tree or the locations that the files are stored to (like $FOAM_USER_LIBBIN). I'd unpack the sources in a new directory to be sure. About the other: if the compilation runs through then the binaries are all replaced (no need to remove them before that. But there is a script in the maintainanceScripts directory that should do that)

Werne March 21, 2013 03:50

Sorry if my explanations were not clear, I'm still very new to linux and it's handling.

With "size" I mean the number of files contained in the folder from which I compile swak4Foam. I manually downloaded it two times on two different computers.
One folder contains 2.547 files and the other only 2.414 files. I'm not sure if the download was incomplete or if the smaller one is an older version of it, as I downloaded it some months ago.

gschaider March 21, 2013 06:11

Quote:

Originally Posted by Werne (Post 415420)
Sorry if my explanations were not clear, I'm still very new to linux and it's handling.

With "size" I mean the number of files contained in the folder from which I compile swak4Foam. I manually downloaded it two times on two different computers.
One folder contains 2.547 files and the other only 2.414 files. I'm not sure if the download was incomplete or if the smaller one is an older version of it, as I downloaded it some months ago.

This again depends on what the program you're using counts as "files". Seems like your program sees directories as files too, becuse when I look at the biggest archive I uploaded with this command
tar tzf ~/Temp/Swak4Foam_2.x_release_0.2.3.tar.gz| wc
I get 1807 files.

Anyway. Surest way to check whether your file is OK is to use md5 to get a hash and see if it is the same. The hashes for my latest uploads are

MD5 (/Users/bgschaid/Temp/Swak4Foam_1.x_release_0.2.2.tar.gz) = ac5f58243daaf1e8dff9bdcae0407f3c
MD5 (/Users/bgschaid/Temp/Swak4Foam_1.x_release_0.2.3.tar.gz) = 8fc1c63c4cb9b8fcbe5ea9a7253a833f
MD5 (/Users/bgschaid/Temp/Swak4Foam_2.x_release_0.2.2.tar.gz) = dbe6244c1c5417400003280d6faf8dd5
MD5 (/Users/bgschaid/Temp/Swak4Foam_2.x_release_0.2.3.tar.gz) = 3baa99bc33994a76ac48bdbe99af999d


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