From 1209e915d9af47820cc2b2d4e1ebc1614d11054a Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 7 Jul 2011 10:02:52 +0100 Subject: [PATCH] ENH: Added PV library existence check to paraFoam script --- bin/paraFoam | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bin/paraFoam b/bin/paraFoam index fe11bcb6e8..08ef45e952 100755 --- a/bin/paraFoam +++ b/bin/paraFoam @@ -117,6 +117,24 @@ do done +# +# check that reader module has been built +# +if [ ! -f $PV_PLUGIN_PATH/libPV3FoamReader_SM.so ] +then + cat<< BUILDREADER + +FATAL ERROR: ParaView reader module libraries do not exist + +Please build the reader module before continuing: +cd \$FOAM_UTILITIES/postProcessing/graphics/PV3Readers +./Allwclean +./Allwmake + +BUILDREADER + exit 1 +fi + # # check for --data=... argument #