Comments (9)
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 git reset --hard <old commit
, the second is simple git pull
, and final part is just as if you start compilation from the very beginning except you have compiled files, so, if there is no changes in base library, recompilation will be quicker that starting from git clone
.
from openfoam-os-x.
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).
from openfoam-os-x.
Hi,
I am not quite sure, I get the idea of automation. Could you elaborate?
from openfoam-os-x.
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.
from openfoam-os-x.
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).
from openfoam-os-x.
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.
from openfoam-os-x.
Hey!
@mrklein, would it be possible to update the dev patch for the current state of the project?
They updated the wmake and broke the patch. I replaced mapfile
s in the wmakeLnInclude
with a crutch (which seemed as it fixed the issue but I have got missed header error in the later compilation stages anyway):
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!
from openfoam-os-x.
@stasf1 To avoid problem with incompressibleTwoPhaseVoFMixture.H
it is necessary to have two prunePaths
arrays with different names. Updated patch in b3f4f2c.
from openfoam-os-x.
Great thanks for the patch (it worked for me) and for this repo in general!
from openfoam-os-x.
Related Issues (20)
- Newbie Problems HOT 10
- testing installation only works halfway HOT 5
- Can you add the patch for OpenFOAM-v1812? HOT 6
- License? HOT 6
- OpenFOAM v2112 and Mac OS 12 HOT 4
- OpenFOAM-8: symbol not found in flat namespace '_MPI_Abort' HOT 22
- Correct code for OpenMPI folders lookup
- Request: A new patch for swak4Foam (develop branch) HOT 2
- Encountered C++ import errors when making HOT 6
- clang: error when allmake HOT 5
- OpenFOAM 10 HOT 4
- libomp needs a quick fix HOT 2
- Updated path for OpenFOAM v10 HOT 2
- OpenFOAM-11 HOT 1
- OpenFOAMv2306 and scotch library linking HOT 14
- problem with " brew install mrklein/foam/scotch" HOT 1
- -v2012 on Mac-m2-Ventura HOT 1
- Patches for v1806 HOT 1
- symbol not found in flat namespace '_ompi_mpi_byte' HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfoam-os-x.