<p><b>dwj07@fsu.edu</b> 2012-03-20 14:50:43 -0600 (Tue, 20 Mar 2012)</p><p><br>
        -- BRANCH COMMIT --<br>
<br>
        Improving test case driver script and readme file.<br>
<br>
        Now it allows compile_set to be input on the command line, and provides an example use<br>
        in the usage statement.<br>
</p><hr noshade><pre><font color="gray">Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/README
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/README        2012-03-20 20:07:55 UTC (rev 1688)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/README        2012-03-20 20:50:43 UTC (rev 1689)
@@ -63,7 +63,7 @@
         but there are other variables that can be configured for use in clusters.
 
         It's usage is as follows:
-                ./oceanTestCases.sh [action] [test_case]
+                ./oceanTestCases.sh [action] [test_case] [compile_set]
         
         Action can be any of the following:
                 setup
@@ -74,6 +74,8 @@
         Case can be any sub-directory. This script assumes it was set up properly (as the existing test_cases are).
         The only exception is that case can also be mpas. A case of mpas can only be used when the action is clean.
 
+        Compile_Set can be any valid compile set in MPAS' Makefile. It is only used if MPAS needs to be setup.
+
         The actions are described below:
                 setup:
                         This is meant to create and initialize all of the run directories for a given

Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/oceanTestCases.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/oceanTestCases.sh        2012-03-20 20:07:55 UTC (rev 1688)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/oceanTestCases.sh        2012-03-20 20:50:43 UTC (rev 1689)
@@ -24,6 +24,7 @@
 ## Script starts here ##
 ########################
 
+
 CUR_DIR=`pwd`
 
 ACTION=$1
@@ -260,8 +261,21 @@
 MPAS_BUILD_RUN=&quot;no&quot;
 ## Check to see if mpas has already been built, if not set it up
 if [ ! -e mpas/src/ocean_model.exe -a $ACTION != &quot;clean&quot; ]; then
+        if [ $# -ge 3 ]; then
+                echo &quot;&quot;
+                echo &quot;Overriding COMPILE_SET with $3&quot;
+                echo &quot;&quot;
+                COMPILE_SET=$3
+        fi
         echo &quot;MPAS is not setup properly yet. Setting up MPAS first.&quot;
         setup_mpas
+
+        if [ ! -e mpas/src/ocean_model.exe ]; then
+                echo &quot;&quot;
+                echo &quot;MPAS was not successfully built. Please ensure your compiler set is correct.&quot;
+                echo &quot;${COMPILE_SET} was used this time.&quot;
+                echo &quot;&quot;
+        fi
         MPAS_BUILD_RUN=&quot;yes&quot;
 fi
 
@@ -275,6 +289,7 @@
         echo &quot;pmetis is not found.&quot;
         echo &quot;pmetis must be in your path.&quot;
         echo &quot;exiting.&quot;
+        echo &quot;&quot;
         exit
 fi
 
@@ -296,6 +311,7 @@
 
         ## If case is mpas and action is setup, exit
         if [ $CASE == &quot;mpas&quot; -a $ACTION == &quot;setup&quot; -a $MPAS_BUILD_RUN == &quot;no&quot; ]; then
+                echo &quot;&quot;
                 echo &quot;MPAS was previous setup. Nothing to do.&quot;
                 echo &quot;To check the parameters of the build, view .run_info&quot;
                 echo &quot;&quot;
@@ -320,12 +336,24 @@
 ## Print usage statement
 if [ $VALID == &quot;no&quot; ]; then
         echo &quot;Invalid usage.&quot;
-        echo &quot;./oceanTestCases.sh [action] [case]&quot;
+        echo &quot;./oceanTestCases.sh [action] [case] [compile_set]&quot;
         echo &quot;&quot;
         echo &quot;[action] = setup submit postprocess clean&quot;
         echo &quot;&quot;
         echo &quot;[case] = lock_exchange baroclinic_channel&quot;
-        echo &quot;[case] = mpas (only for action = clean)&quot;
+        echo &quot;[case] = mpas (only for actions = setup or clean)&quot;
+        echo &quot;&quot;
+        echo &quot;[compile_set] = a valid compile set for MPAS' Makefile&quot;
+        echo &quot;[compile_set] is only used when MPAS has not been setup previously&quot;
+        echo &quot;&quot;
+        echo &quot;&quot;
+        echo &quot;Example use:&quot;
+        echo &quot;svn update&quot;
+        echo &quot;oceanTestCases.sh clean mpas&quot;
+        echo &quot;oceanTestCases.sh clean [case]&quot;
+        echo &quot;oceanTestCases.sh setup mpas [compile_set]&quot;
+        echo &quot;oceanTestCases.sh setup [case]&quot;
+        echo &quot;&quot;
         exit
 fi
 

</font>
</pre>