Version sniffing in sampleDict
Hi,
I'm working with OF 1.7.1 and 2.0 on different machines and having the problem that the old version demands "patchName mypatch" in the definition for the sample surface while the code is "patches (mypatch)" in OF 2.0. Is there any possibility to include a switch into sampleDict which makes each version reading the appropriate definition? Best regards Hugo |
Hi Hugo,
You'll have to think the other way around, namely having two separate sampleDict files and then call depending on the version of OpenFOAM: Code:
case $WM_PROJECT_VERSION in Best regards, Bruno |
Thank you very much, Bruno - this way is a good idea.
Best regards Hugo |
All times are GMT -4. The time now is 00:27. |