<p><b>dwj07@fsu.edu</b> 2011-11-29 15:53:18 -0700 (Tue, 29 Nov 2011)</p><p><br>
        -- BRANCH COMMIT --<br>
<br>
        Adding checkout of mpas's trunk, as well as grabbing the revision number, and compile options and dumping into a file. This file is copied through all of the run directories.<br>
<br>
        Also adding the abilitty to specific the compile "option" from the makefile.<br>
</p><hr noshade><pre><font color="gray">Modified: branches/ocean_projects/performance_testing/performanceTest.sh
===================================================================
--- branches/ocean_projects/performance_testing/performanceTest.sh        2011-11-29 17:02:48 UTC (rev 1218)
+++ branches/ocean_projects/performance_testing/performanceTest.sh        2011-11-29 22:53:18 UTC (rev 1219)
@@ -8,8 +8,12 @@
MESH_LIST="015kmL40 030kmL40 060kmL40 120kmL40"
# MESH_LIST="060kmL40 120kmL40"
-OCEAN_MODEL_EXECUTABLE="/global/u2/m/mpeterse/ho/pgi/trunk/mpas/src/ocean_model.exe"
-MESH_DIR="domains"
+REPOSITORY_ADDRESS="https://svn-mpas-model.cgd.ucar.edu/trunk/mpas"
+COMPILE_SET="ifort-serial"
+MACHINE_NAME="lobo"
+        
+OCEAN_MODEL_EXECUTABLE="mpas/src/ocean_model.exe"
+MESH_DIR="domains_hopper"
SCRIPT_TEMPLATE="script_template"
CUR_DIR=`pwd`
@@ -18,6 +22,23 @@
then
        mkdir -p runs
+        rm -f run_info
+        touch run_info
+
+        svn co $REPOSITORY_ADDRESS
+        cd mpas
+        make $COMPILE_SET CORE=ocean
+        REV=`svn info | grep "Revision"`
+        cd ..
+
+        echo "Compile flags:" >> run_info
+        grep "$COMPILE_SET:" mpas/Makefile -A 11 | grep "[a-Z]" >> run_info
+        echo "" >> run_info
+        echo "Checkout path:" >> run_info
+        echo "$REPOSITORY_ADDRESS" >> run_info
+        echo "$REV" >> run_info
+        echo "$MACHINE_NAME" >> run_info
+
        for MESH in $MESH_LIST
        do
                for PROC in $PROC_LIST
@@ -27,6 +48,7 @@
                        cp -d $MESH_DIR/$MESH/*.nc $RUN_DIR/.
                        cp -d $MESH_DIR/$MESH/graph.* $RUN_DIR/.
                        cp -d $MESH_DIR/$MESH/namelist* $RUN_DIR/.
+                        cp -d $CUR_DIR/run_info $RUN_DIR/.
        
                        NODES=`expr $PROC / $PROCS_PER_NODE`
@@ -37,7 +59,7 @@
                                -e "s/num_nodes/$NODES/g" \
                                -e "s/procs_per_node/$PROCS_PER_NODE/g" \
                                -e "s|working_dir|${WORK_DIR}|" \
-                                -e "s|ocean_model_executable|$OCEAN_MODEL_EXECUTABLE|" \
+                                -e "s|ocean_model_executable|${CUR_DIR}/$OCEAN_MODEL_EXECUTABLE|" \
                                script_template.sh > ${RUN_DIR}/${SUBMISSION_CMD}_submit.sh
                        chmod +x ${RUN_DIR}/${SUBMISSION_CMD}_submit.sh
@@ -121,6 +143,8 @@
        rm -f start_times.sh
        rm -f cancel_jobs.sh
        rm -f job_ids
+        rm -f run_info
+        rm -rf mpas
else
        echo "Invalid usage:"
</font>
</pre>