updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / openfoam / paraFoam.patch
blobf6f7ce6d0f9d3b02e03f54e05a6bd43ace04bf04
1 --- src/OpenFOAM-2.1.0/bin/paraFoam
2 +++ src/OpenFOAM-2.1.0/bin/paraFoam
3 @@ -68,7 +68,7 @@
4 export LC_ALL=C
6 # reader extension
7 -extension=OpenFOAM
8 +extension=foam
10 requirePV=1
12 @@ -124,20 +124,23 @@
14 # check that reader module has been built
16 -if [ $requirePV -eq 1 -a ! -f $PV_PLUGIN_PATH/libPV3FoamReader_SM.so ]
17 -then
18 - cat<< BUILDREADER
20 -FATAL ERROR: ParaView reader module libraries do not exist
22 -Please build the reader module before continuing:
23 -cd \$FOAM_UTILITIES/postProcessing/graphics/PV3Readers
24 -./Allwclean
25 -./Allwmake
27 -BUILDREADER
28 - exit 1
29 -fi
30 +# NOTE: For OpenFOAM built from AUR, paraview will already be installed
31 +# with the required readers. No need to perform this check.
33 +#if [ $requirePV -eq 1 -a ! -f $PV_PLUGIN_PATH/libPV3FoamReader_SM.so ]
34 +#then
35 +# cat<< BUILDREADER
37 +#FATAL ERROR: ParaView reader module libraries do not exist
39 +#Please build the reader module before continuing:
40 +#cd \$FOAM_UTILITIES/postProcessing/graphics/PV3Readers
41 +#./Allwclean
42 +#./Allwmake
44 +#BUILDREADER
45 +# exit 1
46 +#fi
49 # check for --data=... argument