-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch for OpenFOAM-dev #82
Comments
Hi, I do not know what is the latest OpenFOAM-dev release, I have updated patch for commit 9dc91eb47. There is no automatic way to update source code tree. Basically, you need to undo previous changes, update sources, and apply new patch. The first can be achieved with |
Hi, thanks for the patch. Regarding automation, is it possible to have a function (script) that can look into the build file of any OpenFOAM version and write a patch? It could still use some inputs like the last commit date (etc). |
Hi, I am not quite sure, I get the idea of automation. Could you elaborate? |
Hi, Imagine we have a patch of certain OpenFoam build (like the patch here for the dev version), if we can automatically track the changes in the make file (in all the later commits of the dev branch), then latest available patch could be modified to take into account changes in the build file (using commits from the OpenFoam branch of interest). It would need to look through all the new commits in the OpenFoam dev branch but could be optimized by some additional filtering. |
It is a bit more complicated. Development branch, for example, likes to break things, so, usually, patches need to be adapted for each new base development. It is simpler for stable versions, where old patches can be applied on a new source tree state. So, I do not know, how it can be implemented (and whether it should be). |
If it can be implemented easily on stable versions would be nice addition, since you would not need to make a patch manually. However, if it will still need manual tuning, then it is not worth the struggle. Thanks for maintaining this repo anyway. |
Hey! They updated the wmake and broke the patch. I replaced 176,179c176,187
< mapfile -t pruneNames < <(filter name lnInclude Make config noLink)
< mapfile -t prunePaths < <(find .. -mindepth 2 -type d -name Make -printf '%h\n')
< mapfile -t prunePaths < <(filter path "${prunePaths[@]}")
< mapfile -t matchNames < <(filter name '*.[CHh]' '*.[ch]xx' '*.[ch]pp' '*.type')
---
> while IFS= read -r line; do
> pruneNames+=("$line")
> done < <(filter name lnInclude Make config noLink)
> while IFS= read -r line; do
> prunePaths+=("$line")
> done < <(find .. -mindepth 2 -type d -name Make -print)
> while IFS= read -r line; do
> prunePaths+=("$line")
> done < <(filter path "${prunePaths[@]}")
> while IFS= read -r line; do
> matchNames+=("$line")
> done < <(filter name '*.[CHh]' '*.[ch]xx' '*.[ch]pp' '*.type') Thanks! |
Great thanks for the patch (it worked for me) and for this repo in general! |
Hi,
It is possible to have the patch for latest OpenFOAM-dev release.
Is there an automatic way to upgrade the patches based on the new commits that change the settings only for compilation?
The text was updated successfully, but these errors were encountered: