[Dart-dev] [5796] DART/branches/development/models: Simplified the scripts now that quickbuild.csh is intented to

nancy at ucar.edu nancy at ucar.edu
Tue Jul 17 16:58:55 MDT 2012


Revision: 5796
Author:   thoar
Date:     2012-07-17 16:58:54 -0600 (Tue, 17 Jul 2012)
Log Message:
-----------
Simplified the scripts now that quickbuild.csh is intented to
exhaustively compile all targets. The workshop_setup.csh scripts
now do the minimal amount of work as required by the DART tutorial.

The lorenz_96, forced_lorenz_96, and bgrid models all compile
create_obs_sequence and create_fixed_network in support of tutorial
exercises, but they do not RUN them.

The lorenz_96 model also has obs_diag built, but not run.

Modified Paths:
--------------
    DART/branches/development/models/9var/work/workshop_setup.csh
    DART/branches/development/models/bgrid_solo/work/workshop_setup.csh
    DART/branches/development/models/forced_lorenz_96/work/workshop_setup.csh
    DART/branches/development/models/lorenz_04/work/workshop_setup.csh
    DART/branches/development/models/lorenz_63/work/workshop_setup.csh
    DART/branches/development/models/lorenz_84/work/workshop_setup.csh
    DART/branches/development/models/lorenz_96/work/workshop_setup.csh
    DART/branches/development/models/lorenz_96_2scale/work/workshop_setup.csh
    DART/branches/development/models/simple_advection/work/workshop_setup.csh

-------------- next part --------------
Modified: DART/branches/development/models/9var/work/workshop_setup.csh
===================================================================
--- DART/branches/development/models/9var/work/workshop_setup.csh	2012-07-17 22:47:48 UTC (rev 5795)
+++ DART/branches/development/models/9var/work/workshop_setup.csh	2012-07-17 22:58:54 UTC (rev 5796)
@@ -6,31 +6,33 @@
 #
 # $Id$
 #
-# Script to manage the compilation of all components for this model;
-# executes a known "perfect model" experiment using an existing
-# observation sequence file (obs_seq.in) and initial conditions appropriate 
+# This script builds only perfect_model_obs and filter.  To build the rest
+# of the executables, run './quickbuild.csh'.
+#
+# Executes a known "perfect model" experiment using an existing
+# observation sequence file (obs_seq.in) and initial conditions appropriate
 # for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
 # There are enough initial conditions for a 20 member ensemble in filter.
 # Use ens_size = 21 and it WILL bomb. Guaranteed.
 # The 'input.nml' file controls all facets of this execution.
 #
 # 'create_obs_sequence' and 'create_fixed_network_sequence' were used to
-# create the observation sequence file 'obs_seq.in' - this defines 
-# what/where/when we want observations. This script does not run these 
-# programs - intentionally. 
+# create the observation sequence file 'obs_seq.in' - this defines
+# what/where/when we want observations. This script does not run these
+# programs - intentionally.
 #
-# 'perfect_model_obs' results in a True_State.nc file that contains 
+# 'perfect_model_obs' results in a True_State.nc file that contains
 # the true state, and obs_seq.out - a file that contains the "observations"
 # that will be assimilated by 'filter'.
 #
-# 'filter' results in three files (at least): Prior_Diag.nc - the state 
-# of all ensemble members prior to the assimilation (i.e. the forecast), 
-# Posterior_Diag.nc - the state of all ensemble members after the 
-# assimilation (i.e. the analysis), and obs_seq.final - the ensemble 
+# 'filter' results in three files (at least): Prior_Diag.nc - the state
+# of all ensemble members prior to the assimilation (i.e. the forecast),
+# Posterior_Diag.nc - the state of all ensemble members after the
+# assimilation (i.e. the analysis), and obs_seq.final - the ensemble
 # members' estimate of what the observations should have been.
 #
-# Once 'perfect_model_obs' has advanced the model and harvested the 
-# observations for the assimilation experiment, 'filter' may be run 
+# Once 'perfect_model_obs' has advanced the model and harvested the
+# observations for the assimilation experiment, 'filter' may be run
 # over and over by simply changing the namelist parameters in input.nml.
 #
 # The result of each assimilation can be explored in model-space with
@@ -41,9 +43,9 @@
 
 #----------------------------------------------------------------------
 # 'preprocess' is a program that culls the appropriate sections of the
-# observation module for the observations types in 'input.nml'; the 
-# resulting source file is used by all the remaining programs, 
-# so this MUST be run first.
+# observation module for the observations types in 'input.nml'; the
+# resulting source file is used by all the remaining programs,
+# so it MUST be run first.
 #----------------------------------------------------------------------
 
 \rm -f preprocess *.o *.mod
@@ -52,47 +54,29 @@
 
 set MODEL = "9var"
 
-@ n = 1
+echo 'building and running preprocess'
 
-echo
-echo
-echo "---------------------------------------------------------------"
-echo "${MODEL} build number ${n} is preprocess"
-
 csh  mkmf_preprocess
-make || exit $n
-
+make         || exit 1
 ./preprocess || exit 99
 
-#----------------------------------------------------------------------
-# Build all the single-threaded targets
-#----------------------------------------------------------------------
+echo 'building perfect_model_obs'
+csh mkmf_perfect_model_obs
+make || exit 4
 
-foreach TARGET ( mkmf_* )
+echo 'building filter'
+csh mkmf_filter
+make || exit 5
 
-   set PROG = `echo $TARGET | sed -e 's#mkmf_##'`
+echo 'removing the compilation leftovers'
+\rm -f *.o *.mod
 
-   switch ( $TARGET )
-   case mkmf_preprocess:
-      breaksw
-   default:
-      @ n = $n + 1
-      echo
-      echo "---------------------------------------------------"
-      echo "${MODEL} build number ${n} is ${PROG}" 
-      \rm -f ${PROG}
-      csh $TARGET || exit $n
-      make        || exit $n
-      breaksw
-   endsw
-end
+echo 'running perfect_model_obs'
+./perfect_model_obs || exit 41
 
-@ n = $n + 1
-./perfect_model_obs || exit $n
+echo 'running filter'
+./filter            || exit 51
 
-@ n = $n + 1
-./filter            || exit $n
-
 exit 0
 
 # <next few lines under version control, do not edit>

Modified: DART/branches/development/models/bgrid_solo/work/workshop_setup.csh
===================================================================
--- DART/branches/development/models/bgrid_solo/work/workshop_setup.csh	2012-07-17 22:47:48 UTC (rev 5795)
+++ DART/branches/development/models/bgrid_solo/work/workshop_setup.csh	2012-07-17 22:58:54 UTC (rev 5796)
@@ -6,31 +6,33 @@
 #
 # $Id$
 #
-# Script to manage the compilation of all components for this model;
-# executes a known "perfect model" experiment using an existing
-# observation sequence file (obs_seq.in) and initial conditions appropriate 
+# This script builds only perfect_model_obs and filter.  To build the rest
+# of the executables, run './quickbuild.csh'.
+#
+# Executes a known "perfect model" experiment using an existing
+# observation sequence file (obs_seq.in) and initial conditions appropriate
 # for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
 # There are enough initial conditions for 80 ensemble members in filter.
 # Use ens_size = 81 and it WILL bomb. Guaranteed.
 # The 'input.nml' file controls all facets of this execution.
 #
 # 'create_obs_sequence' and 'create_fixed_network_sequence' were used to
-# create the observation sequence file 'obs_seq.in' - this defines 
-# what/where/when we want observations. This script does not run these 
-# programs - intentionally. 
+# create the observation sequence file 'obs_seq.in' - this defines
+# what/where/when we want observations. This script builds these
+# programs in support of the tutorial exercises but does not RUN them.
 #
-# 'perfect_model_obs' results in a True_State.nc file that contains 
+# 'perfect_model_obs' results in a True_State.nc file that contains
 # the true state, and obs_seq.out - a file that contains the "observations"
 # that will be assimilated by 'filter'.
 #
-# 'filter' results in three files (at least): Prior_Diag.nc - the state 
-# of all ensemble members prior to the assimilation (i.e. the forecast), 
-# Posterior_Diag.nc - the state of all ensemble members after the 
-# assimilation (i.e. the analysis), and obs_seq.final - the ensemble 
+# 'filter' results in three files (at least): Prior_Diag.nc - the state
+# of all ensemble members prior to the assimilation (i.e. the forecast),
+# Posterior_Diag.nc - the state of all ensemble members after the
+# assimilation (i.e. the analysis), and obs_seq.final - the ensemble
 # members' estimate of what the observations should have been.
 #
-# Once 'perfect_model_obs' has advanced the model and harvested the 
-# observations for the assimilation experiment, 'filter' may be run 
+# Once 'perfect_model_obs' has advanced the model and harvested the
+# observations for the assimilation experiment, 'filter' may be run
 # over and over by simply changing the namelist parameters in input.nml.
 #
 # The result of each assimilation can be explored in model-space with
@@ -41,9 +43,9 @@
 
 #----------------------------------------------------------------------
 # 'preprocess' is a program that culls the appropriate sections of the
-# observation module for the observations types in 'input.nml'; the 
-# resulting source file is used by all the remaining programs, 
-# so this MUST be run first.
+# observation module for the observations types in 'input.nml'; the
+# resulting source file is used by all the remaining programs,
+# so it MUST be run first.
 #----------------------------------------------------------------------
 
 \rm -f preprocess *.o *.mod
@@ -52,81 +54,37 @@
 
 set MODEL = "bgrid_solo"
 
-@ n = 1
+echo 'building and running preprocess'
 
-echo
-echo
-echo "---------------------------------------------------------------"
-echo "${MODEL} build number ${n} is preprocess"
-
 csh  mkmf_preprocess
-make || exit $n
-
+make         || exit 1
 ./preprocess || exit 99
 
-#----------------------------------------------------------------------
-# Build all the single-threaded targets
-#----------------------------------------------------------------------
+echo 'building create_obs_sequence'
+csh mkmf_create_obs_sequence
+make || exit 2
 
-foreach TARGET ( mkmf_* )
+echo 'building create_fixed_network_seq'
+csh mkmf_create_fixed_network_seq
+make || exit 3
 
-   set PROG = `echo $TARGET | sed -e 's#mkmf_##'`
+echo 'building perfect_model_obs'
+csh mkmf_perfect_model_obs
+make || exit 4
 
-   switch ( $TARGET )
-   case mkmf_preprocess:
-      breaksw
-   default:
-      @ n = $n + 1
-      echo
-      echo "---------------------------------------------------"
-      echo "${MODEL} build number ${n} is ${PROG}" 
-      \rm -f ${PROG}
-      csh $TARGET || exit $n
-      make        || exit $n
-      breaksw
-   endsw
-end
+echo 'building filter'
+csh mkmf_filter
+make || exit 5
 
-@ n = $n + 1
-./perfect_model_obs || exit $n
+echo 'removing the compilation leftovers'
+\rm -f *.o *.mod
 
-@ n = $n + 1
-./filter            || exit $n
+echo 'running perfect_model_obs'
+./perfect_model_obs || exit 41
 
-#----------------------------------------------------------------------
-# to enable an MPI parallel version of filter for this model, 
-# Turn ON the following block (by fixing the logical expression)
-#----------------------------------------------------------------------
+echo 'running filter'
+./filter            || exit 51
 
-if ( 1 == 2 ) then
-
-   @ n = $n + 1
-
-   echo
-   echo "---------------------------------------------------"
-   echo "${MODEL} build number ${n} is MPI-enabled filter" 
-
-   \rm *.o *.mod filter
-   csh mkmf_filter -mpi
-   make
-
-   if ($status != 0) then
-      echo
-      echo "If this died in mpi_utilities_mod, see code comments"
-      echo "in mpi_utilities_mod.f90 starting with 'BUILD TIP' "
-      echo
-      exit $n
-   endif
-
-endif
-
-if ( -e using_mpi_for_filter ) then
-   # mpirun -np 4 ./filter   || exit $n
-   # or one of these:
-   bsub < ../shell_scripts/runme_filter  || exit $n
-   # qsub ../shell_scripts/runme_filter  || exit $n
-endif
-
 exit 0
 
 # <next few lines under version control, do not edit>

Modified: DART/branches/development/models/forced_lorenz_96/work/workshop_setup.csh
===================================================================
--- DART/branches/development/models/forced_lorenz_96/work/workshop_setup.csh	2012-07-17 22:47:48 UTC (rev 5795)
+++ DART/branches/development/models/forced_lorenz_96/work/workshop_setup.csh	2012-07-17 22:58:54 UTC (rev 5796)
@@ -6,31 +6,33 @@
 #
 # $Id$
 #
-# Script to manage the compilation of all components for this model;
-# executes a known "perfect model" experiment using an existing
-# observation sequence file (obs_seq.in) and initial conditions appropriate 
+# This script builds only perfect_model_obs and filter.  To build the rest
+# of the executables, run './quickbuild.csh'.
+#
+# Executes a known "perfect model" experiment using an existing
+# observation sequence file (obs_seq.in) and initial conditions appropriate
 # for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
 # There are enough initial conditions for 80 ensemble members in filter.
 # Use ens_size = 81 and it WILL bomb. Guaranteed.
 # The 'input.nml' file controls all facets of this execution.
 #
 # 'create_obs_sequence' and 'create_fixed_network_sequence' were used to
-# create the observation sequence file 'obs_seq.in' - this defines 
-# what/where/when we want observations. This script does not run these 
-# programs - intentionally. 
+# create the observation sequence file 'obs_seq.in' - this defines
+# what/where/when we want observations. This script builds these
+# programs in support of the tutorial exercises but does not RUN them.
 #
-# 'perfect_model_obs' results in a True_State.nc file that contains 
+# 'perfect_model_obs' results in a True_State.nc file that contains
 # the true state, and obs_seq.out - a file that contains the "observations"
 # that will be assimilated by 'filter'.
 #
-# 'filter' results in three files (at least): Prior_Diag.nc - the state 
-# of all ensemble members prior to the assimilation (i.e. the forecast), 
-# Posterior_Diag.nc - the state of all ensemble members after the 
-# assimilation (i.e. the analysis), and obs_seq.final - the ensemble 
+# 'filter' results in three files (at least): Prior_Diag.nc - the state
+# of all ensemble members prior to the assimilation (i.e. the forecast),
+# Posterior_Diag.nc - the state of all ensemble members after the
+# assimilation (i.e. the analysis), and obs_seq.final - the ensemble
 # members' estimate of what the observations should have been.
 #
-# Once 'perfect_model_obs' has advanced the model and harvested the 
-# observations for the assimilation experiment, 'filter' may be run 
+# Once 'perfect_model_obs' has advanced the model and harvested the
+# observations for the assimilation experiment, 'filter' may be run
 # over and over by simply changing the namelist parameters in input.nml.
 #
 # The result of each assimilation can be explored in model-space with
@@ -41,9 +43,9 @@
 
 #----------------------------------------------------------------------
 # 'preprocess' is a program that culls the appropriate sections of the
-# observation module for the observations types in 'input.nml'; the 
-# resulting source file is used by all the remaining programs, 
-# so this MUST be run first.
+# observation module for the observations types in 'input.nml'; the
+# resulting source file is used by all the remaining programs,
+# so it MUST be run first.
 #----------------------------------------------------------------------
 
 \rm -f preprocess *.o *.mod
@@ -52,43 +54,33 @@
 
 set MODEL = "forced_lorenz_96"
 
-@ n = 1
+echo 'building and running preprocess'
 
-echo
-echo
-echo "---------------------------------------------------------------"
-echo "${MODEL} build number ${n} is preprocess"
-
 csh  mkmf_preprocess
-make || exit $n
-
+make         || exit 1
 ./preprocess || exit 99
 
-#----------------------------------------------------------------------
-# Build all the single-threaded targets
-#----------------------------------------------------------------------
+echo 'building create_obs_sequence'
+csh mkmf_create_obs_sequence
+make || exit 2
 
-foreach TARGET ( mkmf_* )
+echo 'building create_fixed_network_seq'
+csh mkmf_create_fixed_network_seq
+make || exit 3
 
-   set PROG = `echo $TARGET | sed -e 's#mkmf_##'`
+echo 'building perfect_model_obs'
+csh mkmf_perfect_model_obs
+make || exit 4
 
-   switch ( $TARGET )
-   case mkmf_preprocess:
-      breaksw
-   default:
-      @ n = $n + 1
-      echo
-      echo "---------------------------------------------------"
-      echo "${MODEL} build number ${n} is ${PROG}" 
-      \rm -f ${PROG}
-      csh $TARGET || exit $n
-      make        || exit $n
-      breaksw
-   endsw
-end
+echo 'building filter'
+csh mkmf_filter
+make || exit 5
 
+echo 'removing the compilation leftovers'
+\rm -f *.o *.mod
+
 #----------------------------------------------------------------------
-# Tutorial section 20 states that perfect_model_obs has forcing 
+# Tutorial section 20 states that perfect_model_obs has forcing
 # fixed at 8.0, and can vary after that.
 #----------------------------------------------------------------------
 
@@ -99,10 +91,9 @@
 echo 's;=.*;= .true.,;' >> ex_script
 echo 'wq'               >> ex_script
 
-cat ex_script | ex input.nml || exit 30
+cat ex_script | ex input.nml || exit 40
 
-@ n = $n + 1
-./perfect_model_obs || exit $n
+./perfect_model_obs || exit 41
 
 #----------------------------------------------------------------------
 # For forced L96, we want to allow filter to assimilate forcing.
@@ -113,10 +104,11 @@
 echo '/reset_forcing/'     >> ex_script
 echo 's;=.*;= .false.,;'   >> ex_script
 echo 'wq'                  >> ex_script
-cat ex_script | ex input.nml || exit 31
 
-@ n = $n + 1
-./filter || exit $n
+cat ex_script | ex input.nml || exit 50
+
+./filter || exit 51
+
 \rm -f ex_script
 
 exit 0

Modified: DART/branches/development/models/lorenz_04/work/workshop_setup.csh
===================================================================
--- DART/branches/development/models/lorenz_04/work/workshop_setup.csh	2012-07-17 22:47:48 UTC (rev 5795)
+++ DART/branches/development/models/lorenz_04/work/workshop_setup.csh	2012-07-17 22:58:54 UTC (rev 5796)
@@ -6,30 +6,32 @@
 #
 # $Id$
 #
-# Script to manage the compilation of all components for this model;
-# executes a known "perfect model" experiment using an existing
-# observation sequence file (obs_seq.in) and initial conditions appropriate 
+# This script builds only perfect_model_obs and filter.  To build the rest
+# of the executables, run './quickbuild.csh'.
+#
+# Executes a known "perfect model" experiment using an existing
+# observation sequence file (obs_seq.in) and initial conditions appropriate
 # for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
 # There are enough initial conditions for 500 ensemble members.
 # The 'input.nml' file controls all facets of this execution.
 #
 # 'create_obs_sequence' and 'create_fixed_network_sequence' were used to
-# create the observation sequence file 'obs_seq.in' - this defines 
-# what/where/when we want observations. This script does not run these 
-# programs - intentionally. 
+# create the observation sequence file 'obs_seq.in' - this defines
+# what/where/when we want observations. This script does not run these
+# programs - intentionally.
 #
-# 'perfect_model_obs' results in a True_State.nc file that contains 
+# 'perfect_model_obs' results in a True_State.nc file that contains
 # the true state, and obs_seq.out - a file that contains the "observations"
 # that will be assimilated by 'filter'.
 #
-# 'filter' results in three files (at least): Prior_Diag.nc - the state 
-# of all ensemble members prior to the assimilation (i.e. the forecast), 
-# Posterior_Diag.nc - the state of all ensemble members after the 
-# assimilation (i.e. the analysis), and obs_seq.final - the ensemble 
+# 'filter' results in three files (at least): Prior_Diag.nc - the state
+# of all ensemble members prior to the assimilation (i.e. the forecast),
+# Posterior_Diag.nc - the state of all ensemble members after the
+# assimilation (i.e. the analysis), and obs_seq.final - the ensemble
 # members' estimate of what the observations should have been.
 #
-# Once 'perfect_model_obs' has advanced the model and harvested the 
-# observations for the assimilation experiment, 'filter' may be run 
+# Once 'perfect_model_obs' has advanced the model and harvested the
+# observations for the assimilation experiment, 'filter' may be run
 # over and over by simply changing the namelist parameters in input.nml.
 #
 # The result of each assimilation can be explored in model-space with
@@ -40,9 +42,9 @@
 
 #----------------------------------------------------------------------
 # 'preprocess' is a program that culls the appropriate sections of the
-# observation module for the observations types in 'input.nml'; the 
-# resulting source file is used by all the remaining programs, 
-# so this MUST be run first.
+# observation module for the observations types in 'input.nml'; the
+# resulting source file is used by all the remaining programs,
+# so it MUST be run first.
 #----------------------------------------------------------------------
 
 \rm -f preprocess *.o *.mod
@@ -51,47 +53,29 @@
 
 set MODEL = "lorenz_04"
 
-@ n = 1
+echo 'building and running preprocess'
 
-echo
-echo
-echo "---------------------------------------------------------------"
-echo "${MODEL} build number ${n} is preprocess"
-
 csh  mkmf_preprocess
-make || exit $n
-
+make         || exit 1
 ./preprocess || exit 99
 
-#----------------------------------------------------------------------
-# Build all the single-threaded targets
-#----------------------------------------------------------------------
+echo 'building perfect_model_obs'
+csh mkmf_perfect_model_obs
+make || exit 4
 
-foreach TARGET ( mkmf_* )
+echo 'building filter'
+csh mkmf_filter
+make || exit 5
 
-   set PROG = `echo $TARGET | sed -e 's#mkmf_##'`
+echo 'removing the compilation leftovers'
+\rm -f *.o *.mod
 
-   switch ( $TARGET )
-   case mkmf_preprocess:
-      breaksw
-   default:
-      @ n = $n + 1
-      echo
-      echo "---------------------------------------------------"
-      echo "${MODEL} build number ${n} is ${PROG}" 
-      \rm -f ${PROG}
-      csh $TARGET || exit $n
-      make        || exit $n
-      breaksw
-   endsw
-end
+echo 'running perfect_model_obs'
+./perfect_model_obs || exit 41
 
-@ n = $n + 1
-./perfect_model_obs || exit $n
+echo 'running filter'
+./filter            || exit 51
 
-@ n = $n + 1
-./filter            || exit $n
-
 exit 0
 
 # <next few lines under version control, do not edit>

Modified: DART/branches/development/models/lorenz_63/work/workshop_setup.csh
===================================================================
--- DART/branches/development/models/lorenz_63/work/workshop_setup.csh	2012-07-17 22:47:48 UTC (rev 5795)
+++ DART/branches/development/models/lorenz_63/work/workshop_setup.csh	2012-07-17 22:58:54 UTC (rev 5796)
@@ -6,26 +6,31 @@
 #
 # $Id$
 #
-# this script builds only perfect_model_obs and filter.  to build the rest
+# This script builds only perfect_model_obs and filter.  To build the rest
 # of the executables, run './quickbuild.csh'.
 #
+# Executes a known "perfect model" experiment using an existing
+# observation sequence file (obs_seq.in) and initial conditions appropriate
+# for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
+# The 'input.nml' file controls all facets of this execution.
+#
 # 'create_obs_sequence' and 'create_fixed_network_sequence' were used to
-# create the observation sequence file 'obs_seq.in' - this defines 
-# what/where/when we want observations. This script does not run these 
-# programs - intentionally. 
+# create the observation sequence file 'obs_seq.in' - this defines
+# what/where/when we want observations. This script does not run these
+# programs - intentionally.
 #
-# 'perfect_model_obs' results in a True_State.nc file that contains 
+# 'perfect_model_obs' results in a True_State.nc file that contains
 # the true state, and obs_seq.out - a file that contains the "observations"
 # that will be assimilated by 'filter'.
 #
-# 'filter' results in three files (at least): Prior_Diag.nc - the state 
-# of all ensemble members prior to the assimilation (i.e. the forecast), 
-# Posterior_Diag.nc - the state of all ensemble members after the 
-# assimilation (i.e. the analysis), and obs_seq.final - the ensemble 
+# 'filter' results in three files (at least): Prior_Diag.nc - the state
+# of all ensemble members prior to the assimilation (i.e. the forecast),
+# Posterior_Diag.nc - the state of all ensemble members after the
+# assimilation (i.e. the analysis), and obs_seq.final - the ensemble
 # members' estimate of what the observations should have been.
 #
-# Once 'perfect_model_obs' has advanced the model and harvested the 
-# observations for the assimilation experiment, 'filter' may be run 
+# Once 'perfect_model_obs' has advanced the model and harvested the
+# observations for the assimilation experiment, 'filter' may be run
 # over and over by simply changing the namelist parameters in input.nml.
 #
 # The result of each assimilation can be explored in model-space with
@@ -34,11 +39,14 @@
 # for any result of 'filter' and results in a couple data files that can
 # be explored with yet more matlab scripts.
 
+echo 'copying the workshop version of the input.nml into place'
+cp -f input.workshop.nml input.nml
+
 #----------------------------------------------------------------------
 # 'preprocess' is a program that culls the appropriate sections of the
-# observation module for the observations types in 'input.nml'; the 
-# resulting source file is used by all the remaining programs, 
-# so this MUST be run first.
+# observation module for the observations types in 'input.nml'; the
+# resulting source file is used by all the remaining programs,
+# so it MUST be run first.
 #----------------------------------------------------------------------
 
 \rm -f preprocess *.o *.mod
@@ -50,25 +58,25 @@
 echo 'building and running preprocess'
 
 csh  mkmf_preprocess
-make || exit 1
-
+make         || exit 1
 ./preprocess || exit 99
 
-echo 'copying the workshop version of the input.nml into place'
-cp -f input.workshop.nml input.nml
-
-echo 'building perfect_model_obs and filter'
+echo 'building perfect_model_obs'
 csh mkmf_perfect_model_obs
-make || exit 1
+make || exit 4
 
+echo 'building filter'
 csh mkmf_filter
-make || exit 1
+make || exit 5
 
+echo 'removing the compilation leftovers'
+\rm -f *.o *.mod
+
 echo 'running perfect_model_obs'
-./perfect_model_obs || exit 2
+./perfect_model_obs || exit 41
 
 echo 'running filter'
-./filter            || exit 3
+./filter            || exit 51
 
 exit 0
 

Modified: DART/branches/development/models/lorenz_84/work/workshop_setup.csh
===================================================================
--- DART/branches/development/models/lorenz_84/work/workshop_setup.csh	2012-07-17 22:47:48 UTC (rev 5795)
+++ DART/branches/development/models/lorenz_84/work/workshop_setup.csh	2012-07-17 22:58:54 UTC (rev 5796)
@@ -6,31 +6,33 @@
 #
 # $Id$
 #
-# Script to manage the compilation of all components for this model;
-# executes a known "perfect model" experiment using an existing
-# observation sequence file (obs_seq.in) and initial conditions appropriate 
+# This script builds only perfect_model_obs and filter.  To build the rest
+# of the executables, run './quickbuild.csh'.
+#
+# Executes a known "perfect model" experiment using an existing
+# observation sequence file (obs_seq.in) and initial conditions appropriate
 # for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
 # There are enough initial conditions for 20 ensemble members in filter.
 # Use ens_size = 21 and it WILL bomb. Guaranteed.
 # The 'input.nml' file controls all facets of this execution.
 #
 # 'create_obs_sequence' and 'create_fixed_network_sequence' were used to
-# create the observation sequence file 'obs_seq.in' - this defines 
-# what/where/when we want observations. This script does not run these 
-# programs - intentionally. 
+# create the observation sequence file 'obs_seq.in' - this defines
+# what/where/when we want observations. This script does not run these
+# programs - intentionally.
 #
-# 'perfect_model_obs' results in a True_State.nc file that contains 
+# 'perfect_model_obs' results in a True_State.nc file that contains
 # the true state, and obs_seq.out - a file that contains the "observations"
 # that will be assimilated by 'filter'.
 #
-# 'filter' results in three files (at least): Prior_Diag.nc - the state 
-# of all ensemble members prior to the assimilation (i.e. the forecast), 
-# Posterior_Diag.nc - the state of all ensemble members after the 
-# assimilation (i.e. the analysis), and obs_seq.final - the ensemble 
+# 'filter' results in three files (at least): Prior_Diag.nc - the state
+# of all ensemble members prior to the assimilation (i.e. the forecast),
+# Posterior_Diag.nc - the state of all ensemble members after the
+# assimilation (i.e. the analysis), and obs_seq.final - the ensemble
 # members' estimate of what the observations should have been.
 #
-# Once 'perfect_model_obs' has advanced the model and harvested the 
-# observations for the assimilation experiment, 'filter' may be run 
+# Once 'perfect_model_obs' has advanced the model and harvested the
+# observations for the assimilation experiment, 'filter' may be run
 # over and over by simply changing the namelist parameters in input.nml.
 #
 # The result of each assimilation can be explored in model-space with
@@ -41,9 +43,9 @@
 
 #----------------------------------------------------------------------
 # 'preprocess' is a program that culls the appropriate sections of the
-# observation module for the observations types in 'input.nml'; the 
-# resulting source file is used by all the remaining programs, 
-# so this MUST be run first.
+# observation module for the observations types in 'input.nml'; the
+# resulting source file is used by all the remaining programs,
+# so it MUST be run first.
 #----------------------------------------------------------------------
 
 \rm -f preprocess *.o *.mod
@@ -52,47 +54,29 @@
 
 set MODEL = "lorenz_84"
 
-@ n = 1
+echo 'building and running preprocess'
 
-echo
-echo
-echo "---------------------------------------------------------------"
-echo "${MODEL} build number ${n} is preprocess"
-
 csh  mkmf_preprocess
-make || exit $n
-
+make         || exit 1
 ./preprocess || exit 99
 
-#----------------------------------------------------------------------
-# Build all the single-threaded targets
-#----------------------------------------------------------------------
+echo 'building perfect_model_obs'
+csh mkmf_perfect_model_obs
+make || exit 4
 
-foreach TARGET ( mkmf_* )
+echo 'building filter'
+csh mkmf_filter
+make || exit 5
 
-   set PROG = `echo $TARGET | sed -e 's#mkmf_##'`
+echo 'removing the compilation leftovers'
+\rm -f *.o *.mod
 
-   switch ( $TARGET )
-   case mkmf_preprocess:
-      breaksw
-   default:
-      @ n = $n + 1
-      echo
-      echo "---------------------------------------------------"
-      echo "${MODEL} build number ${n} is ${PROG}" 
-      \rm -f ${PROG}
-      csh $TARGET || exit $n
-      make        || exit $n
-      breaksw
-   endsw
-end
+echo 'running perfect_model_obs'
+./perfect_model_obs || exit 41
 
-@ n = $n + 1
-./perfect_model_obs || exit $n
+echo 'running filter'
+./filter            || exit 51
 
-@ n = $n + 1
-./filter            || exit $n
-
 exit 0
 
 # <next few lines under version control, do not edit>

Modified: DART/branches/development/models/lorenz_96/work/workshop_setup.csh
===================================================================
--- DART/branches/development/models/lorenz_96/work/workshop_setup.csh	2012-07-17 22:47:48 UTC (rev 5795)
+++ DART/branches/development/models/lorenz_96/work/workshop_setup.csh	2012-07-17 22:58:54 UTC (rev 5796)
@@ -6,32 +6,32 @@
 #
 # $Id$
 #
-# This script builds only perfect_model_obs and filter.  to build the rest
+# This script builds only perfect_model_obs and filter.  To build the rest
 # of the executables, run './quickbuild.csh'.
 #
 # Executes a known "perfect model" experiment using an existing
-# observation sequence file (obs_seq.in) and initial conditions appropriate 
+# observation sequence file (obs_seq.in) and initial conditions appropriate
 # for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
 # There are enough initial conditions for up to 80 ensemble members in filter.
 # The 'input.nml' file controls all facets of this execution.
 #
 # 'create_obs_sequence' and 'create_fixed_network_sequence' were used to
-# create the observation sequence file 'obs_seq.in' - this defines 
-# what/where/when we want observations. This script does not build these 
-# programs.
+# create the observation sequence file 'obs_seq.in' - this defines
+# what/where/when we want observations. This script builds these
+# programs in support of the tutorial exercises but does not RUN them.
 #
-# 'perfect_model_obs' results in a True_State.nc file that contains 
+# 'perfect_model_obs' results in a True_State.nc file that contains
 # the true state, and obs_seq.out - a file that contains the "observations"
 # that will be assimilated by 'filter'.
 #
-# 'filter' results in three files (at least): Prior_Diag.nc - the state 
-# of all ensemble members prior to the assimilation (i.e. the forecast), 
-# Posterior_Diag.nc - the state of all ensemble members after the 
-# assimilation (i.e. the analysis), and obs_seq.final - the ensemble 
+# 'filter' results in three files (at least): Prior_Diag.nc - the state
+# of all ensemble members prior to the assimilation (i.e. the forecast),
+# Posterior_Diag.nc - the state of all ensemble members after the
+# assimilation (i.e. the analysis), and obs_seq.final - the ensemble
 # members' estimate of what the observations should have been.
 #
-# Once 'perfect_model_obs' has advanced the model and harvested the 
-# observations for the assimilation experiment, 'filter' may be run 
+# Once 'perfect_model_obs' has advanced the model and harvested the
+# observations for the assimilation experiment, 'filter' may be run
 # over and over by simply changing the namelist parameters in input.nml.
 #
 # The result of each assimilation can be explored in model-space with
@@ -40,10 +40,13 @@
 # for any result of 'filter' and results in a couple data files that can
 # be explored with yet more matlab scripts.
 
+echo 'copying the workshop version of the input.nml into place'
+cp -f input.workshop.nml input.nml
+
 #----------------------------------------------------------------------
 # 'preprocess' is a program that culls the appropriate sections of the
-# observation module for the observations types in 'input.nml'; the 
-# resulting source file is used by all the remaining programs, 
+# observation module for the observations types in 'input.nml'; the
+# resulting source file is used by all the remaining programs,
 # so it MUST be run first.
 #----------------------------------------------------------------------
 
@@ -56,25 +59,37 @@
 echo 'building and running preprocess'
 
 csh  mkmf_preprocess
-make || exit $n
-
+make         || exit 1
 ./preprocess || exit 99
 
-echo 'copying the workshop version of the input.nml into place'
-cp -f input.workshop.nml input.nml
+echo 'building create_obs_sequence'
+csh mkmf_create_obs_sequence
+make || exit 2
 
-echo 'building perfect_model_obs and filter'
+echo 'building create_fixed_network_seq'
+csh mkmf_create_fixed_network_seq
+make || exit 3
+
+echo 'building perfect_model_obs'
 csh mkmf_perfect_model_obs
-make || exit 1
+make || exit 4
 
+echo 'building filter'
 csh mkmf_filter
-make || exit 1
+make || exit 5
 
+echo 'building obs_diag'
+csh mkmf_obs_diag
+make || exit 6
+
+echo 'removing the compilation leftovers'
+\rm -f *.o *.mod
+
 echo 'running perfect_model_obs'
-./perfect_model_obs || exit 2
+./perfect_model_obs || exit 41
 
 echo 'running filter'
-./filter            || exit 3
+./filter            || exit 51
 
 exit 0
 

Modified: DART/branches/development/models/lorenz_96_2scale/work/workshop_setup.csh
===================================================================
--- DART/branches/development/models/lorenz_96_2scale/work/workshop_setup.csh	2012-07-17 22:47:48 UTC (rev 5795)
+++ DART/branches/development/models/lorenz_96_2scale/work/workshop_setup.csh	2012-07-17 22:58:54 UTC (rev 5796)
@@ -6,30 +6,32 @@
 #
 # $Id$
 #
-# Script to manage the compilation of all components for this model;
-# executes a known "perfect model" experiment using an existing
-# observation sequence file (obs_seq.in) and initial conditions appropriate 
+# This script builds only perfect_model_obs and filter.  To build the rest
+# of the executables, run './quickbuild.csh'.
+#
+# Executes a known "perfect model" experiment using an existing
+# observation sequence file (obs_seq.in) and initial conditions appropriate
 # for both 'perfect_model_obs' (perfect_ics) and 'filter' (filter_ics).
 # There are enough initial conditions for 200 ensemble members in filter.
 # The 'input.nml' file controls all facets of this execution.
 #
 # 'create_obs_sequence' and 'create_fixed_network_sequence' were used to
-# create the observation sequence file 'obs_seq.in' - this defines 
-# what/where/when we want observations. This script does not run these 
-# programs - intentionally. 
+# create the observation sequence file 'obs_seq.in' - this defines
+# what/where/when we want observations. This script does not run these
+# programs - intentionally.
 #
-# 'perfect_model_obs' results in a True_State.nc file that contains 
+# 'perfect_model_obs' results in a True_State.nc file that contains
 # the true state, and obs_seq.out - a file that contains the "observations"
 # that will be assimilated by 'filter'.
 #
-# 'filter' results in three files (at least): Prior_Diag.nc - the state 
-# of all ensemble members prior to the assimilation (i.e. the forecast), 
-# Posterior_Diag.nc - the state of all ensemble members after the 
-# assimilation (i.e. the analysis), and obs_seq.final - the ensemble 
+# 'filter' results in three files (at least): Prior_Diag.nc - the state
+# of all ensemble members prior to the assimilation (i.e. the forecast),
+# Posterior_Diag.nc - the state of all ensemble members after the
+# assimilation (i.e. the analysis), and obs_seq.final - the ensemble
 # members' estimate of what the observations should have been.
 #
-# Once 'perfect_model_obs' has advanced the model and harvested the 
-# observations for the assimilation experiment, 'filter' may be run 
+# Once 'perfect_model_obs' has advanced the model and harvested the
+# observations for the assimilation experiment, 'filter' may be run
 # over and over by simply changing the namelist parameters in input.nml.
 #
 # The result of each assimilation can be explored in model-space with
@@ -37,12 +39,12 @@
 # 'obs_diag' is a program that will create observation-space diagnostics
 # for any result of 'filter' and results in a couple data files that can
 # be explored with yet more matlab scripts.
-#
+
 #----------------------------------------------------------------------
 # 'preprocess' is a program that culls the appropriate sections of the
-# observation module for the observations types in 'input.nml'; the 
-# resulting source file is used by all the remaining programs, 
-# so this MUST be run first.
+# observation module for the observations types in 'input.nml'; the
+# resulting source file is used by all the remaining programs,
+# so it MUST be run first.
 #----------------------------------------------------------------------
 
 \rm -f preprocess *.o *.mod
@@ -51,47 +53,29 @@
 
 set MODEL = "lorenz_96_2scale"
 
-@ n = 1
+echo 'building and running preprocess'
 
-echo
-echo
-echo "---------------------------------------------------------------"
-echo "${MODEL} build number ${n} is preprocess"
-
 csh  mkmf_preprocess
-make || exit $n
-
+make         || exit 1
 ./preprocess || exit 99
 
-#----------------------------------------------------------------------
-# Build all the single-threaded targets
-#----------------------------------------------------------------------
+echo 'building perfect_model_obs'
+csh mkmf_perfect_model_obs
+make || exit 4
 
-foreach TARGET ( mkmf_* )
+echo 'building filter'
+csh mkmf_filter
+make || exit 5
 
-   set PROG = `echo $TARGET | sed -e 's#mkmf_##'`
+echo 'removing the compilation leftovers'
+\rm -f *.o *.mod
 
-   switch ( $TARGET )
-   case mkmf_preprocess:
-      breaksw
-   default:
-      @ n = $n + 1
-      echo
-      echo "---------------------------------------------------"
-      echo "${MODEL} build number ${n} is ${PROG}" 
-      \rm -f ${PROG}
-      csh $TARGET || exit $n
-      make        || exit $n
-      breaksw
-   endsw
-end
+echo 'running perfect_model_obs'
+./perfect_model_obs || exit 41
 
-@ n = $n + 1
-./perfect_model_obs || exit $n
+echo 'running filter'
+./filter            || exit 51
 
-@ n = $n + 1
-./filter            || exit $n
-
 exit 0
 
 # <next few lines under version control, do not edit>

Modified: DART/branches/development/models/simple_advection/work/workshop_setup.csh
===================================================================
--- DART/branches/development/models/simple_advection/work/workshop_setup.csh	2012-07-17 22:47:48 UTC (rev 5795)
+++ DART/branches/development/models/simple_advection/work/workshop_setup.csh	2012-07-17 22:58:54 UTC (rev 5796)
@@ -6,31 +6,33 @@
 #
 # $Id$
 #
-# Script to manage the compilation of all components for this model;
-# executes a known "perfect model" experiment using an existing
-# observation sequence file (obs_seq.in) and initial conditions appropriate 
+# This script builds only perfect_model_obs and filter.  To build the rest

@@ Diff output truncated at 40000 characters. @@


More information about the Dart-dev mailing list