|
[Sponsors] |
April 13, 2012, 05:03 |
Version sniffing in sampleDict
|
#1 |
New Member
Join Date: Jul 2011
Posts: 18
Rep Power: 14 |
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 |
|
April 13, 2012, 16:52 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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 1.7.*) sampleDict -dict sampleDict.17 ;; 2.*) sampleDict -dict sampleDict.2 ;; esac Best regards, Bruno
__________________
|
|
April 16, 2012, 07:05 |
|
#3 |
New Member
Join Date: Jul 2011
Posts: 18
Rep Power: 14 |
Thank you very much, Bruno - this way is a good idea.
Best regards Hugo |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wmake error | zxj160 | OpenFOAM | 0 | March 26, 2012 10:52 |
paraview installation woes | vex | OpenFOAM Installation | 15 | January 30, 2011 07:11 |
bubbleFoam validation case | balkrishna | OpenFOAM Running, Solving & CFD | 24 | August 30, 2010 04:37 |
[OpenFOAM] Problem with paraFoam on a linux-64 bit | bunni | ParaView | 4 | April 14, 2010 20:55 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 21:41 |