<p><b>dwj07@fsu.edu</b> 2013-02-13 14:41:59 -0700 (Wed, 13 Feb 2013)</p><p><br>
        -- BRANCH COMMIT --<br>
<br>
        Update advective transport to work with new ocean core namelist.<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        2013-02-13 21:29:30 UTC (rev 2473)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/advective_transport/makeMeshes.sh        2013-02-13 21:41:59 UTC (rev 2474)
@@ -33,8 +33,10 @@
 #######################################################
 ## Setup Variables for different run initializations ##
 #######################################################
+DEFAULT_TIME_INTEGRATOR=&quot;'RK4'&quot;
+DEFAULT_SUBCYCLES=&quot;20&quot;
 ADVECTION_ROUTINES=&quot;std2 std3 std4 fct2 fct3 fct4&quot;
-TIME_STEPPERS=&quot;rk4&quot;
+TIME_STEPPERS=&quot;'rk4'&quot;
 TIME_STEPS=&quot;10&quot;
 
 ############################################################
@@ -47,20 +49,24 @@
 KEYS[$i]=&quot;config_restart_name&quot;;           VALUES[$i]=&quot;'restart.nc'&quot;; i=$i+1;
 KEYS[$i]=&quot;config_output_interval&quot;;        VALUES[$i]=&quot;'00_02:00:00'&quot;; i=$i+1;
 KEYS[$i]=&quot;config_do_restart&quot;;             VALUES[$i]=&quot;.false.&quot;; i=$i+1;
-KEYS[$i]=&quot;config_vert_grid_type&quot;;         VALUES[$i]=&quot;'zstar'&quot;; i=$i+1;
+KEYS[$i]=&quot;config_vert_coord_movement&quot;;    VALUES[$i]=&quot;'uniform_stretching'&quot;; i=$i+1;
 KEYS[$i]=&quot;config_rho0&quot;;                   VALUES[$i]=&quot;1000&quot;; i=$i+1;
 KEYS[$i]=&quot;config_bottom_drag_coeff&quot;;      VALUES[$i]=&quot;1.0e-3&quot;; i=$i+1;
-KEYS[$i]=&quot;config_vert_visc_type&quot;;         VALUES[$i]=&quot;'const'&quot;; i=$i+1;
-KEYS[$i]=&quot;config_vert_diff_type&quot;;         VALUES[$i]=&quot;'const'&quot;; i=$i+1;
 KEYS[$i]=&quot;config_eos_type&quot;;               VALUES[$i]=&quot;'linear'&quot;; i=$i+1;
 KEYS[$i]=&quot;config_vert_tracer_adv_order&quot;;  VALUES[$i]=&quot;3&quot;; i=$i+1;
 KEYS[$i]=&quot;config_thickness_adv_order&quot;;    VALUES[$i]=&quot;3&quot;; i=$i+1;
-KEYS[$i]=&quot;config_h_mom_eddy_visc2&quot;;              VALUES[$i]=&quot;0.0&quot;; i=$i+1;
-KEYS[$i]=&quot;config_h_tracer_eddy_diff2&quot;;          VALUES[$i]=&quot;0.0&quot;; i=$i+1;
-KEYS[$i]=&quot;config_convective_visc&quot;;        VALUES[$i]=&quot;0.0&quot;; i=$i+1;
-KEYS[$i]=&quot;config_convective_diff&quot;;        VALUES[$i]=&quot;0.0&quot;; i=$i+1;
-KEYS[$i]=&quot;config_vert_visc&quot;;              VALUES[$i]=&quot;0.0&quot;; i=$i+1;
-KEYS[$i]=&quot;config_vert_diff&quot;;              VALUES[$i]=&quot;0.0&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_mom_del2&quot;;                  VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_tracer_del2&quot;;              VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_mom_del4&quot;;                  VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_tracer_del4&quot;;              VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_const_visc_diff&quot;;    VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_const_visc_visc&quot;;    VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_rich_visc_diff&quot;;    VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_rich_visc_visc&quot;;    VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_tanh_visc_diff&quot;;    VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_use_tanh_visc_visc&quot;;    VALUES[$i]=&quot;.false.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_prescribe_velocity&quot;;     VALUES[$i]=&quot;.true.&quot;; i=$i+1;
+KEYS[$i]=&quot;config_prescribe_thickness&quot;;     VALUES[$i]=&quot;.true.&quot;; i=$i+1;
 
 #################################################
 ## Build perfect hex meshes using periodic_hex ##
@@ -127,7 +133,6 @@
 NUM_LINES=`echo ${NUM_LINES}-1 | bc`
 
 sed -n &quot;/_model/,/\//p&quot; MPAS-namelist.input.temporary | head -n ${NUM_LINES} &gt; namelist.top 
-echo &quot;  config_prescribe_velocity = .true.&quot; &gt;&gt; namelist.top
 echo '/' &gt;&gt; namelist.top
 echo '' &gt;&gt; namelist.top
 sed '/_model/,/\//d' MPAS-namelist.input.temporary &gt; namelist.bottom
@@ -211,21 +216,23 @@
 
                 unlink grid.nc
 
-                mkdir -p ${BASE_DIR}
+                mkdir -p ${CUR_DIR}/${BASE_DIR}
 
                 for TIME_STEPPER in ${TIME_STEPPERS}
                 do
-                        if [ ${TIME_STEPPER} == 'rk4' ]; then
+                        if [ ${TIME_STEPPER} == &quot;'rk4'&quot; ]; then
                                 TIME_INTEGRATOR=&quot;'RK4'&quot;
                                 SUB_CYCLES=20
-                        elif [ ${TIME_STEPPER:0:2} == &quot;se&quot; ]; then
+                        elif [ ${TIME_STEPPER:0:2} == &quot;'se'&quot; ]; then
                                 TIME_INTEGRATOR=&quot;'split_explicit'&quot;
                                 SUB_CYCLES=${TIME_STEPPER:2}
-                        elif [ ${TIME_STEPPER} == 'use' ]; then
+                        elif [ ${TIME_STEPPER} == &quot;'use'&quot; ]; then
                                 TIME_INTEGRATOR=&quot;'unsplit_explicit'&quot;
                                 SUB_CYCLES=20
                         fi
 
+                        echo &quot;Time integrator after test: ${TIME_STEPPER} -- ${TIME_INTEGRATOR}&quot;
+
                         for TIME_STEP in ${TIME_STEPS}
                         do
 
@@ -245,14 +252,13 @@
 
                                                 ## Compute scaled spacing, time_step, and viscosities
                                                 D_SPACING=`echo &quot;scale=4; ${SPACING}/${REF_SPACING}&quot; | bc`
-                                                STATS=`echo &quot; $TOTAL_TIME / $TIME_STEP / 10 &quot; | bc`
 
-                                                RUN_DIR=${BASE_DIR}/.batch_runs/${TIME_STEPPER}_${TIME_STEP}_${ADVECTION_ROUTINE}/${PROC}procs
+                                                RUN_DIR=${CUR_DIR}/${BASE_DIR}/.batch_runs/${TIME_STEPPER}_${TIME_STEP}_${ADVECTION_ROUTINE}/${PROC}procs
 
                                                 mkdir -p ${RUN_DIR}
 
                                                 pmetis graph.info $PROC &gt; /dev/null
-                                                mv graph.info.part.$PROC ${BASE_DIR}/.
+                                                mv graph.info.part.$PROC ${CUR_DIR}/${BASE_DIR}/.
 
                                                 ln -f -s ${CUR_DIR}/${BASE_DIR}/graph.info ${RUN_DIR}/graph.info
                                                 ln -f -s ${CUR_DIR}/${BASE_DIR}/graph.info.part.${PROC} ${RUN_DIR}/graph.info.part.${PROC}
@@ -275,12 +281,10 @@
                                                 echo &quot;${CUR_DIR}/${RUN_DIR}&quot; &gt;&gt; run_paths
 
                                                 ## Generate new namelist.input file for test case
-                                                STATS=`echo &quot; $TOTAL_TIME / $TIME_STEP / 10 &quot; | bc`
                                                 cat MPAS-namelist.input.template  \
-                                                        | sed &quot;s/config_time_integration .*/config_time_integration = ${TIME_INTEGRATOR}/g&quot; \
+                                                        | sed &quot;s/config_time_integrator .*/config_time_integrator = ${TIME_INTEGRATOR}/g&quot; \
                                                         | sed &quot;s/config_n_btr_subcycles .*/config_n_btr_subcycles = ${SUB_CYCLES}/g&quot; \
                                                         | sed &quot;s/config_dt .*/config_dt = ${TIME_STEP}/g&quot; \
-                                                        | sed &quot;s/config_stats_interval .*/config_stats_interval = ${STATS}/g&quot; \
                                                         | sed &quot;s/config_monotonic .*/config_monotonic = ${FCT_ON}/g&quot; \
                                                         | sed &quot;s/config_horiz_tracer_adv_order .*/config_horiz_tracer_adv_order = ${ADV_ORDER}/g&quot; \
                                                         &gt; ${RUN_DIR}/namelist.input
@@ -289,28 +293,26 @@
                         done
                 done
 
-                mv ocean.nc ${BASE_DIR}/grid.nc
-                mv graph.info ${BASE_DIR}/graph.info
+                mv ocean.nc ${CUR_DIR}/${BASE_DIR}/grid.nc
+                mv graph.info ${CUR_DIR}/${BASE_DIR}/graph.info
 
                 ## Copy executable to run directory
                 if [ $# -ge 1  ]; then
-                        if [ -e ${BASE_DIR}/ocean_model.exe ]; then
-                                unlink ${BASE_DIR}/ocean_model.exe
+                        if [ -e ${CUR_DIR}/${BASE_DIR}/ocean_model.exe ]; then
+                                unlink ${CUR_DIR}/${BASE_DIR}/ocean_model.exe
                         fi
 
-                        ln -s $1 ${BASE_DIR}/ocean_model.exe
+                        ln -s $1 ${CUR_DIR}/${BASE_DIR}/ocean_model.exe
                 fi
 
                 ## Generate new namelist.input file for test case
-                STATS=`echo &quot; $TOTAL_TIME / $SCALED_TIME_STEP / 10 &quot; | bc`
                 cat MPAS-namelist.input.template  \
-                        | sed &quot;s/config_time_integration .*/config_time_integration = ${DEFAULT_TIME_INTEGRATOR}/g&quot; \
+                        | sed &quot;s/config_time_integrator .*/config_time_integrator = ${DEFAULT_TIME_INTEGRATOR}/g&quot; \
                         | sed &quot;s/config_n_btr_subcycles .*/config_n_btr_subcycles = ${DEFAULT_SUBCYCLES}/g&quot; \
                         | sed &quot;s/config_dt .*/config_dt = ${SCALED_TIME_STEP}/g&quot; \
-                        | sed &quot;s/config_stats_interval .*/config_stats_interval = ${STATS}/g&quot; \
                         | sed &quot;s/config_monotonic .*/config_monotonic = ${FCT_ON}/g&quot; \
                         | sed &quot;s/config_horiz_tracer_adv_order .*/config_horiz_tracer_adv_order = ${ADV_ORDER}/g&quot; \
-                        &gt; ${BASE_DIR}/namelist.input
+                        &gt; ${CUR_DIR}/${BASE_DIR}/namelist.input
 
         done
 done

</font>
</pre>