<p><b>dwj07@fsu.edu</b> 2012-03-20 14:07:55 -0600 (Tue, 20 Mar 2012)</p><p><br>
        -- BRANCH COMMIT --<br>
<br>
        Improving information presented to user.<br>
        Adding information to README.<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 17:24:57 UTC (rev 1687)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/README        2012-03-20 20:07:55 UTC (rev 1688)
@@ -6,13 +6,19 @@
 #########################################
 
 This directory is intended to allow some-what automated testing of mpas, using a set of test cases.
+
+
 Provided in this directory are:
+----------------------------------------------------------------------------------
         Test cases - in sub-directories
         Template Submit scripts - for each machine type
         A Control script - for automated handling of the test cases.
+
 Each of these will be described below.
 
+
 Test cases:
+----------------------------------------------------------------------------------
         Within each default sub-directory there is a script, called makeMeshes.sh.
         This script is intended to set up all of the run directories, and generate
         any meshes that require generation. There is also a getErrors.sh script
@@ -36,16 +42,26 @@
         Batch runs are placed under this &quot;typical use case&quot; directory, within the .batch_runs
         directory.
 
+
 Template submit scripts:
+----------------------------------------------------------------------------------
         These files have the following naming scheme:
                 machinename_submit_template.sh
         The existing templates can be used to help generate templates for different machines.
         They are used in the driver script for submitting jobs to a queue.
 
+
 Control script:
+----------------------------------------------------------------------------------
         This script is named:
                 oceanTestCases.sh
 
+        Before using it, several variables need to be set up in the scripts preamble.
+        Two variables with need to be set up are:
+                REPOSITORY_ADDRESS
+                COMPILE_SET
+        but there are other variables that can be configured for use in clusters.
+
         It's usage is as follows:
                 ./oceanTestCases.sh [action] [test_case]
         

Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/oceanTestCases.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/oceanTestCases.sh        2012-03-20 17:24:57 UTC (rev 1687)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/oceanTestCases.sh        2012-03-20 20:07:55 UTC (rev 1688)
@@ -49,9 +49,10 @@
         echo &quot;Checking out ${REPOSITORY_ADDRESS}&quot;
         svn co $REPOSITORY_ADDRESS mpas &gt; /dev/null
         cd mpas
+        svn up &gt; /dev/null
 
         ## Compile mpas using given compile set
-        echo &quot;Compiling mpas&quot;
+        echo &quot;Compiling mpas using ${COMPILE_SET}&quot; 
         make $COMPILE_SET CORE=ocean &gt; /dev/null &amp;&gt; /dev/null
         REV=`svn info | grep &quot;Revision&quot;`
         cd ..
@@ -256,10 +257,12 @@
 
 #}}}
 
+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
         echo &quot;MPAS is not setup properly yet. Setting up MPAS first.&quot;
         setup_mpas
+        MPAS_BUILD_RUN=&quot;yes&quot;
 fi
 
 ## Check to see if pmetis is in path, as it is supposed to be. If not exit
@@ -291,12 +294,27 @@
                 fi
         fi
 
-        ## If case is mpas, action has to be clean
+        ## 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;MPAS was previous setup. Nothing to do.&quot;
+                echo &quot;To check the parameters of the build, view .run_info&quot;
+                echo &quot;&quot;
+                exit
+        elif [ $CASE == &quot;mpas&quot; -a $ACTION == &quot;setup&quot; -a $MPAS_BUILD_RUN == &quot;yes&quot; ]; then
+                exit
+        fi
+
+        ## If case is mpas, action has to be clean, or setup
         if [ $CASE == &quot;mpas&quot; -a $ACTION != &quot;clean&quot; ]; then
-                echo &quot;A case of mpas can only have action of clean&quot;
+                echo &quot;A case of mpas can only have action of clean or setup&quot;
                 echo &quot;&quot;
                 VALID=&quot;no&quot;
         fi
+
+        ## If case is mpas, action has to be clean, or setup
+        if [ $CASE == &quot;mpas&quot; -a $ACTION == &quot;clean&quot; ]; then
+                VALID=&quot;yes&quot;
+        fi
 fi
 
 ## Print usage statement

</font>
</pre>