CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   Using Git (

cfdphil February 13, 2009 07:10

Hi, I've used the git facil

I've used the git facility and cloned a version of OpenFoam-1.5.x on my machine. If I try and use the command below to update the download then I get the error below. Any ideas why that is?

git pull git://

fatal: Not a git repository (or any of the parent directories): .git


lin February 13, 2009 11:03

You need to enter the Openfoam
You need to enter the Openfoam directory and then run "git pull"

cfdphil February 13, 2009 13:05

Ah yes, that works. Thanks.
Ah yes, that works. Thanks.

However, it then asks me which branch I want to merge with. What do I do for that?

lin February 13, 2009 15:57

Please read my one line post a
Please read my one line post again.

cfdphil February 16, 2009 11:20

Got it. Thanks.
Got it. Thanks.

hellorishi February 25, 2009 13:12

I am a bit confused.I would li
I am a bit confused.I would like to know the difference between the various verions of OF-1.5

I saw following :
- patch version (on sourceforge), FD_Release/OpenFOAM-1.5_patch/
- git,
- dev on Hrvoje's site

Is the GIT and patch version the same? If one doesnt have GIT access, can one download the tar-balls of patch ?

Kindly shed some light.

gschaider February 26, 2009 11:06

Hi Rishi! There is the Rele
Hi Rishi!

There is the Released Version by OpenCFD. For that they they keep a git with all the latest bug-fixes.

Before 1.5 the bug-fixes were only on the message board and the patch-version was an effort to collect all these patches in one place. It is now obsolete (as installing patches now is possible from one place) and will be retired. (Or in other words: No. Git and Patch are not the same)

The powerlab-stuff is AFAIK the Git-stuff supplemented with Hrv's own development. The relationship to the Git-branch is AFAIK strictly downstream

AFAIK know there is a possibility to generate a tar-ball from a git-archive. Maybe somebody with enough time and bandwidth can write a script that automatically pulls such a tar-ball from the repository and puts it on some webserver.
Generating a patch from the Git that patches a vanilla 1.5-release version is in my opinion a bit more tricky because the initial state of the Git archive is a bit different from a vanilla release so a patch "latest revision"-"initial revision" wouldn't bring a vanilla release to exactly the same state as "latest revision". Plus there is the problem that the normal patch-utility doesn't react well to newly created files (the first application of the patch creates the file alright, the second application appends the contents for a second time). That was one of the problems I had with the patch-release (but maybe I was just using the patch-utility wrong)


PS: AFAIK is AFAIK the commonly accepted abbreviation for "As far as I know" ;)

gschaider February 26, 2009 11:11

News update: Go to http://repo
News update: Go to

You can get diffs and tarballs there


hellorishi March 5, 2009 06:29

Hello Bernhard, Thanks for
Hello Bernhard,

Thanks for your help and explaination.
I am not familiar with working of GIT, so some more doubts...

If I download the tarballs from this page (latest). Do I have all the patches from July 2008(website) version ? I have doubt since this tarball seems a bit small ~35MB and has mostly the /application/solver files.;h=6b5b3ee454a8ae2795e3c47fd9e7c404300fe5ab


gschaider March 5, 2009 08:44

Hi Rishi! I guess it is eve
Hi Rishi!

I guess it is everything except the ThirdParty-stuff .... just the sources (so you'll have to compile it). So 35MB seems OK to me. Should be a fully patched version. But I haven't tried that webinterface to Git yet (and in the long run you'll be happier if you pull the git-version the way it is described on the OF-download-page)


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