[Dart-dev] [3970] DART/trunk/models/POP/work: compile the test program.

nancy at ucar.edu nancy at ucar.edu
Tue Jul 21 15:53:38 MDT 2009


An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/dart-dev/attachments/20090721/4b8df878/attachment.html 
-------------- next part --------------
Modified: DART/trunk/models/POP/work/input.nml
===================================================================
--- DART/trunk/models/POP/work/input.nml	2009-07-21 21:52:56 UTC (rev 3969)
+++ DART/trunk/models/POP/work/input.nml	2009-07-21 21:53:38 UTC (rev 3970)
@@ -20,12 +20,12 @@
 &filter_nml
    async                    = 2,
    adv_ens_command          = "./advance_model.csh",
-   ens_size                 = 20,
-   start_from_restart       = .true.,
+   ens_size                 = 8,
+   start_from_restart       = .false.,
    output_restart           = .true.,
-   obs_sequence_in_name     = "obs_seq.in",
+   obs_sequence_in_name     = "obs_seq.perfect",
    obs_sequence_out_name    = "obs_seq.final",
-   restart_in_file_name     = "filter_ics",
+   restart_in_file_name     = "perfect_restart",
    restart_out_file_name    = "filter_restart",
    init_time_days           = -1,
    init_time_seconds        = -1,
@@ -143,6 +143,15 @@
 &assim_model_nml
    write_binary_restart_files = .true.  /
 
+   #horiz_grid_input_file        = 'horiz_grid.x1.nc',
+   #topography_input_file        = 'topography.x1.nc',
+   #vert_grid_input_file         = 'vert_grid.x1',
+
+
+   #horiz_grid_input_file        = '../utils/pop.hs.latlon.19000712.nc',
+   #topography_input_file        = '../utils/pop.hs.latlon.19000712.nc',
+   #vert_grid_input_file         = '../utils/vert_grid.latlon',
+
 &model_nml
    calendar                     = 'noleap', 
    assimilation_period_days     = 1, 
@@ -156,9 +165,12 @@
    debug                        = 0,  
  /
 
+   #pop_to_dart_restart_file = 'pop.r.x1A.19000102',
+   #pop_to_dart_restart_file = 'pop.r.nc',
+   #pop_to_dart_restart_file = '../utils/pop.r.latlon.19000712',
 &pop_to_dart_nml
    pop_to_dart_restart_file = 'pop.r.nc',
-   pop_to_dart_output_file  = 'assim_model_state_ud',
+   pop_to_dart_output_file  = 'perfect_ics',
  /
 
 &dart_to_pop_nml

Added: DART/trunk/models/POP/work/mkmf_test_dipole_interp
===================================================================
--- DART/trunk/models/POP/work/mkmf_test_dipole_interp	                        (rev 0)
+++ DART/trunk/models/POP/work/mkmf_test_dipole_interp	2009-07-21 21:53:38 UTC (rev 3970)
@@ -0,0 +1,61 @@
+#!/bin/csh
+#
+# Data Assimilation Research Testbed -- DART
+# Copyright 2004-2009, Data Assimilation Research Section
+# University Corporation for Atmospheric Research
+# Licensed under the GPL -- www.gpl.org/licenses/gpl.html
+#
+# <next few lines under version control, do not edit>
+# $URL: http://subversion.ucar.edu/DAReS/DART/trunk/models/MITgcm_ocean/work/mkmf_filter $
+# $Id: mkmf_filter 3796 2009-03-31 15:32:06Z nancy $
+# $Revision: 3796 $
+# $Date: 2009-03-31 09:32:06 -0600 (Tue, 31 Mar 2009) $
+
+# usage: mkmf_test_dipole_interp[ -mpi | -nompi ]
+#  without any args, builds test_dipole_interp without mpi libraries, and it will run
+#  as a normal executable. if -mpi is given, it will be compiled with the mpi
+#  libraries and can run with multiple cooperating processes.
+
+if ( $#argv > 0 ) then
+  if ("$argv[1]" == "-mpi") then
+    setenv usingmpi 1
+  else if ("$argv[1]" == "-nompi") then
+    setenv usingmpi 0
+  else
+    echo "Unrecognized argument to mkmf_test_dipole_interp: $argv[1]"
+    echo "Usage: mkmf_test_dipole_interp [ -mpi | -nompi ]"
+    echo " default is to generate a Makefile without MPI support."
+    exit -1
+  endif
+else
+  setenv usingmpi 0
+endif
+
+
+# make a backup copy of the path_names file, and then use
+# sed to make sure it includes either the non-mpi subroutines,
+# or the subroutines which really call mpi.
+cp -f path_names_test_dipole_interp path_names_test_dipole_interp.back
+
+if ( $usingmpi ) then
+
+  echo "Making Makefile with MPI"
+  touch using_mpi_for_test_dipole_interp
+  sed -e 's;/null_mpi_util;/mpi_util;' path_names_test_dipole_interp.back >! path_names_test_dipole_interp
+  setenv wrapper_arg -w
+
+else
+
+  echo "Making Makefile without MPI"
+  rm -f using_mpi_for_test_dipole_interp
+  sed -e 's;/mpi_util;/null_mpi_util;' path_names_test_dipole_interp.back >! path_names_test_dipole_interp
+  setenv wrapper_arg ""
+
+endif
+
+# remove temp file and now really call mkmf to generate makefile
+rm -f path_names_test_dipole_interp.back
+
+../../../mkmf/mkmf -p test_dipole_interp -t ../../../mkmf/mkmf.template -c"-Duse_netCDF" \
+        -a "../../.." ${wrapper_arg} path_names_test_dipole_interp
+


Property changes on: DART/trunk/models/POP/work/mkmf_test_dipole_interp
___________________________________________________________________
Name: svn:executable
   + *

Modified: DART/trunk/models/POP/work/path_names_filter
===================================================================
--- DART/trunk/models/POP/work/path_names_filter	2009-07-21 21:52:56 UTC (rev 3969)
+++ DART/trunk/models/POP/work/path_names_filter	2009-07-21 21:53:38 UTC (rev 3970)
@@ -7,7 +7,7 @@
 filter/filter.f90
 location/threed_sphere/location_mod.f90
 models/POP/model_mod.f90
-mpi_utilities/mpi_utilities_mod.f90
+mpi_utilities/null_mpi_utilities_mod.f90
 obs_def/obs_def_mod.f90
 obs_kind/obs_kind_mod.f90
 obs_model/obs_model_mod.f90

Added: DART/trunk/models/POP/work/path_names_test_dipole_interp
===================================================================
--- DART/trunk/models/POP/work/path_names_test_dipole_interp	                        (rev 0)
+++ DART/trunk/models/POP/work/path_names_test_dipole_interp	2009-07-21 21:53:38 UTC (rev 3970)
@@ -0,0 +1,9 @@
+common/types_mod.f90
+models/POP/test_dipole_interp.f90
+models/POP/model_mod.f90
+utilities/utilities_mod.f90
+time_manager/time_manager_mod.f90
+location/threed_sphere/location_mod.f90
+random_nr/random_nr_mod.f90
+random_seq/random_seq_mod.f90
+mpi_utilities/null_mpi_utilities_mod.f90


Property changes on: DART/trunk/models/POP/work/path_names_test_dipole_interp
___________________________________________________________________
Name: svn:executable
   + *

Modified: DART/trunk/models/POP/work/path_names_wakeup_filter
===================================================================
--- DART/trunk/models/POP/work/path_names_wakeup_filter	2009-07-21 21:52:56 UTC (rev 3969)
+++ DART/trunk/models/POP/work/path_names_wakeup_filter	2009-07-21 21:53:38 UTC (rev 3970)
@@ -1,5 +1,5 @@
 common/types_mod.f90
 filter/wakeup_filter.f90
-mpi_utilities/mpi_utilities_mod.f90
+mpi_utilities/null_mpi_utilities_mod.f90
 time_manager/time_manager_mod.f90
 utilities/utilities_mod.f90


More information about the Dart-dev mailing list