fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / testHarness / OSIG / Turbomachinery / runDir / Allrun_Experimental
blobbb958a0e7a3ce84a039b5c77fc0395ed9bfd8085
1 #!/bin/bash
2 # /*---------------------------------------------------------------------------*\
3 # ========= |
4 # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 # \\ / O peration |
6 # \\ / A nd | Copyright held by original author
7 # \\/ M anipulation |
8 # -------------------------------------------------------------------------------
9 # License
10 # This file is part of OpenFOAM.
12 # OpenFOAM is free software; you can redistribute it and/or modify it
13 # under the terms of the GNU General Public License as published by the
14 # Free Software Foundation; either version 2 of the License, or (at your
15 # option) any later version.
17 # OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
18 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 # for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with OpenFOAM; if not, write to the Free Software Foundation,
24 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 # Description
27 # Allrun file for running the OpenFOAM Turbomachinery OSIG test harness
29 # Author
30 # Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
32 # \*---------------------------------------------------------------------------*/
34 #set -x
36 # Environment variable : BREEDER_15_DIR:
38 # This environment variable must point to the location of the Breeder_1.5 section
39 # of your local working copy of the openfoam-extend Subversion repository
41 # Something like this:
43 # export BREEDER_15_DIR=/someAbsolutePath/Breeder_1.5
45 export BREEDER_OSIG_TURBOMACHINERY_DIR=${BREEDER_15_DIR}/OSIG/TurboMachinery
47 # This environment variable must point to the location of the test harness main directory
48 export FOAM_TEST_HARNESS_DIR=$(dirname $PWD)
50 # First, some sanity checks
53 # We need $BREEDER_15_DIR
54 if [ ! -n "${BREEDER_15_DIR}" ]
55 then
56 echo "Warning:"
57 echo " Missing environment variable \$BREEDER_15_DIR. Stopping."
58 echo " Please make sure to initialize this environment variable to "
59 echo " the directory where you have installed the Breeder_1.5 section "
60 echo " of the openfoam-extend Subversion repository"
61 exit -1
64 # We need $WM_PROJECT_DIR
65 if [ -z "$WM_PROJECT_DIR" ]
66 then
67 echo "Warning:"
68 echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
69 echo " Please make sure your OpenFOAM environment is properly set up."
70 exit -1
73 # We need $
74 if [ ! -e $BREEDER_OSIG_TURBOMACHINERY_DIR/CMakeLists.txt ]
75 then
76 echo "Warning:"
77 echo " Missing file: CMakeLists.txt under \$BREEDER_15_DIR/OSIG/TurboMachinery. Stopping."
78 echo " A copy of CMakeLists.txt is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
79 echo " Please make a copy of this file under the directory \$BREEDER_15_DIR/OSIG/TurboMachinery."
80 exit -1
83 # We also need $BREEDER_OSIG_TURBOMACHINERY_DIR/CTestConfig.cmake
84 if [ ! -e $BREEDER_OSIG_TURBOMACHINERY_DIR/CTestConfig.cmake ]
85 then
86 echo "Warning:"
87 echo " Missing file: CTestConfig.cmake under \$BREEDER_OSIG_TURBOMACHINERY_DIR. Stopping."
88 echo " A copy of CTestConfig.cmake for openfoam-extend is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
89 echo " For a copy of CTestConfig.cmake for your local CDash server, contact your local CDash admin."
90 echo " Please make a copy of this file under \$BREEDER_OSIG_TURBOMACHINERY_DIR/CTestConfig.cmake."
91 exit -1
94 # Make sure the CMake and tutorials runtime files are updated
95 # We need cmake version 2.8.0 at least
96 cmake $BREEDER_OSIG_TURBOMACHINERY_DIR
98 # All set. Now we can run the available test harness
100 # Invoke make help for the complete list of available commands.
102 # User-demand testing.
103 # Will do: ExperimentalConfigure + ExperimentalBuild + ExperimentalTest + ExperimentalSubmit
104 make Experimental
106 # Nightly testing
107 # Will do: NightlyUpdate + NightylConfigure + NightlyBuild + NightlyTest + NightlySubmit
108 # make Nightly
110 # That's it