<p><b>dwj07@fsu.edu</b> 2012-02-13 10:15:10 -0700 (Mon, 13 Feb 2012)</p><p><br>
        -- BRANCH COMMIT --<br>
<br>
        Changing executable in run directories to a symlink instead of a hard copy.<br>
<br>
        This way you can compile the mpas directory with changes and not have to resetup all of the test cases.<br>
</p><hr noshade><pre><font color="gray">Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/advective_transport/makeMeshes.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/advective_transport/makeMeshes.sh        2012-02-13 16:17:02 UTC (rev 1501)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/advective_transport/makeMeshes.sh        2012-02-13 17:15:10 UTC (rev 1502)
@@ -199,7 +199,10 @@
                        ## Copy executable to run directory
                        if [ $# -ge 1 ]; then
-                                cp $1 ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
+                                if [ -e ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe ]; then
+                                        unlink ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
+                                fi
+                                ln -s $1 ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
                        fi
                        ## Copy run information to run directory
Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/baroclinic_channel/makeMeshes.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/baroclinic_channel/makeMeshes.sh        2012-02-13 16:17:02 UTC (rev 1501)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/baroclinic_channel/makeMeshes.sh        2012-02-13 17:15:10 UTC (rev 1502)
@@ -12,7 +12,7 @@
###############################################################
## Change reference spacing, time_step, and viscosities here ##
###############################################################
-REF_TIME_STEP="400"
+REF_TIME_STEP="240"
REF_VISC_H="10.0"
REF_VISC_V="0.0001"
REF_SPACING="10000.0"
@@ -187,8 +187,12 @@
                        ln -f -s ${CUR_DIR}/${NAME}_${VERTLEV}levs/namelist.input ${NAME}_${VERTLEV}levs/${PROC}procs/namelist.input
                        ## Copy executable to run directory
-                        if [ $# -ge 1 ]; then
-                                cp $1 ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
+                        if [ $# -ge 1 ]; then
+                                if [ -e ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe ]; then
+                                        unlink ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
+                                fi
+
+                                ln -s $1 ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
                        fi
                        ## Copy run information to run directory
Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/idealized_acc/makeMeshes.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/idealized_acc/makeMeshes.sh        2012-02-13 16:17:02 UTC (rev 1501)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/idealized_acc/makeMeshes.sh        2012-02-13 17:15:10 UTC (rev 1502)
@@ -192,7 +192,11 @@
                                ## Copy executable to run directory
                                if [ $# -ge 1 ]; then
-                                        cp $1 ${NAME}_${VERTLEV}levs_${RIDGESIZE}ridge/${PROC}procs/ocean_model.exe
+                                        if [ -e ${NAME}_${VERTLEV}levs_${RIDGESIZE}ridge/${PROC}procs/ocean_model.exe ]; then
+                                                unlink ${NAME}_${VERTLEV}levs_${RIDGESIZE}ridge/${PROC}procs/ocean_model.exe
+                                        fi
+
+                                        ln -s $1 ${NAME}_${VERTLEV}levs_${RIDGESIZE}ridge/${PROC}procs/ocean_model.exe
                                fi
                                ## Copy run information to run directory
Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/internal_waves/makeMeshes.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/internal_waves/makeMeshes.sh        2012-02-13 16:17:02 UTC (rev 1501)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/internal_waves/makeMeshes.sh        2012-02-13 17:15:10 UTC (rev 1502)
@@ -190,7 +190,10 @@
                                ## Copy executable to run directory
                                if [ $# -ge 1 ]; then
-                                        cp $1 ${NAME}_${VERTLEV}levs_${AMPLITUDE}amp/${PROC}procs/ocean_model.exe
+                                        if [ -e ${NAME}_${VERTLEV}levs_${AMPLITUDE}amp/${PROC}procs/ocean_model.exe ]; then
+                                                unlink ${NAME}_${VERTLEV}levs_${AMPLITUDE}amp/${PROC}procs/ocean_model.exe
+                                        fi
+                                        ln -s $1 ${NAME}_${VERTLEV}levs_${AMPLITUDE}amp/${PROC}procs/ocean_model.exe
                                fi
                                ## Copy run information to run directory
Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/lock_exchange/makeMeshes.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/lock_exchange/makeMeshes.sh        2012-02-13 16:17:02 UTC (rev 1501)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/lock_exchange/makeMeshes.sh        2012-02-13 17:15:10 UTC (rev 1502)
@@ -187,7 +187,10 @@
                        ## Copy executable to run directory
                        if [ $# -ge 1 ]; then
-                                cp $1 ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
+                                if [ -e ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe ]; then
+                                        unlink ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
+                                fi
+                                ln -s $1 ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
                        fi
                        ## Copy run information to run directory
Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/overflow/makeMeshes.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/overflow/makeMeshes.sh        2012-02-13 16:17:02 UTC (rev 1501)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/overflow/makeMeshes.sh        2012-02-13 17:15:10 UTC (rev 1502)
@@ -188,7 +188,10 @@
                        ## Copy executable to run directory
                        if [ $# -ge 1 ]; then
-                                cp $1 ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
+                                if [ -e ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe ]; then
+                                        unlink ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
+                                fi
+                                ln -s $1 ${NAME}_${VERTLEV}levs/${PROC}procs/ocean_model.exe
                        fi
                        ## Copy run information to run directory
Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/performance/makeMeshes.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/performance/makeMeshes.sh        2012-02-13 16:17:02 UTC (rev 1501)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/performance/makeMeshes.sh        2012-02-13 17:15:10 UTC (rev 1502)
@@ -37,8 +37,12 @@
                cp -d ${CUR_DIR}/$MESH_DIR/$MESH/graph.info .
                cp -d ${CUR_DIR}/$MESH_DIR/$MESH/namelist* .
                cp -d $2 $RUN_DIR/.
-                cp ${OCEAN_MODEL_EXECUTABLE} ${RUN_DIR}/ocean_model.exe
+                if [ -e ${RUN_DIR}/ocean_model.exe ]; then
+                        unlink ${RUN_DIR}/ocean_model.exe
+                fi
+                ln -s ${OCEAN_MODEL_EXECUTABLE} ${RUN_DIR}/ocean_model.exe
+
                pmetis graph.info ${PROC} > /dev/null
                cd ${CUR_DIR}
</font>
</pre>