Comments (7)
For good measure I would normally also add the alternative config location into its own file as well.
For example,
echo 'export FOAM_CONFIG_ETC="etc-macos"' >> etc/etc-macos/prefs.sh
This enables use of 'source etc/bashrc etc-macos/prefs.sh' from the command-line (eg, for testing) and does no harm otherwise.
from openfoam-app.
Interesting. Would a plain source etc/bashrc
still work (and load the right configuration) in that case? Otherwise, that'd be a dealbreaker.
from openfoam-app.
BTW, I appreciate someone from "upstream" commenting on my project. Hope you folks like what I'm doing here, and thanks for promptly dealing with my issue reports! 👍
from openfoam-app.
Interesting. Would a plain
source etc/bashrc
still work (and load the right configuration) in that case? Otherwise, that'd be a dealbreaker.
If you stuff the export FOAM_CONFIG_ETC="xyz" into the etc/prefs.sh, this will be seen before any other sourcing occurs: it should work OK.
from openfoam-app.
BTW, I appreciate someone from "upstream" commenting on my project. Hope you folks like what I'm doing here, and thanks for promptly dealing with my issue reports! +1
Since we don't have any Apple machines for developing ourselves, we need your input/feedback.
from openfoam-app.
I'm curious as to what exactly this would imply.
- copy/rsync etc/config.sh/{adios2,boost,CGAL, ....} to etc-macos/config.sh
Do I need to copy the entire etc/config.sh
and etc/config.csh
trees, or will it fall back to the base config at etc
for any files that weren't copied?
- run bin/tools/foamConfigurePaths (can specify the -etc=... option for more certainty) and the rest of your configure.sh file
Would this let me forgo the configure.sh
step, by checking the new config layer directly into the repo and then using that?
Right now, configure.sh
mixes foamConfigurePaths
(for changes supported by that script) with manual file writes/patching (for stuff that can't be done with foamConfigurePaths
). Ideally, I'd like it to only have to do one of the two.
from openfoam-app.
- only rsync stuff that you actually need to generate or overwrite
- the foamEtcFile searching will still follow the order (see
foamEtcFile -list
)
If you are happy with your replacement file contents (generated manually), there is no need to use foamConfigurePaths. If you take a look at the spack recipe for openfoam you will see that is exactly what we do there - except that for spack we simply overwrite the files and don't try to preserve the original ones (the alternative etc specification is too new and spack goes back to 1612 or so).
from openfoam-app.
Related Issues (20)
- Build failure caused by 'standalone' dependency HOT 2
- wmake error when compiling my own boundary condition HOT 6
- icoFoam runs, cartesianMesh does not HOT 10
- copy tutorial case HOT 3
- "openfoam" can't be opened because (null) is not allowed to open documents in Terminal.
- adios2 error during build HOT 1
- Issues in tutorials, code runs, but generated data are empty HOT 4
- Change OpenFOAM shell session HOT 3
- Tutorial case `backwardFacingStep2D` hangs if OpenFOAM is built with Xcode CLT >=14.3 HOT 11
- battila7/get-version-action: `set-output` command is deprecated
- OpenMP support inadvertently disabled
- Is it possible to build HiSA within this environment? HOT 5
- Unexpected Rosetta prompt when launching the Apple silicon app on an Apple silicon Mac
- stripInvalid() even on tutorial cases HOT 2
- `FOAM_USER_LIBBIN` not properly configured? HOT 12
- Recipe for installing with writeable OpenFOAM installation HOT 6
- Mac ARM64 M2 Building from Source ending with Errors HOT 3
- Errors in residual monitoring HOT 2
- Error: Failed to mount the OpenFOAM-v2306 volume HOT 6
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-app.