[Dart-dev] svn:executable/ Revision: 12733
dart at ucar.edu
dart at ucar.edu
Wed Jul 11 14:27:05 MDT 2018
hendric at ucar.edu
2018-07-11 14:27:05 -0600 (Wed, 11 Jul 2018)
50
adding build tools for perturb_single_instance.
Modified: DART/branches/pertirb_tool/models/wrf/work/input.nml
===================================================================
--- DART/branches/pertirb_tool/models/wrf/work/input.nml 2018-07-11 20:12:13 UTC (rev 12732)
+++ DART/branches/pertirb_tool/models/wrf/work/input.nml 2018-07-11 20:27:05 UTC (rev 12733)
@@ -523,6 +523,13 @@
use_only_qtys = 'QTY_U_WIND_COMPONENT'
/
+&perturb_single_instance_nml
+ ens_size = 3
+ input_files = 'wrfinput_d01', 'wrfinput_d02'
+ output_files = 'wp1_d01', 'wp1_d02', 'wp2_d01', 'wp2_d02'
+ output_file_list = ''
+/
+
# To test both domains, you must change 'model_nml:num_domains = 2'
&model_mod_check_nml
Added: DART/branches/pertirb_tool/models/wrf/work/mkmf_perturb_single_instance
===================================================================
--- DART/branches/pertirb_tool/models/wrf/work/mkmf_perturb_single_instance (rev 0)
+++ DART/branches/pertirb_tool/models/wrf/work/mkmf_perturb_single_instance 2018-07-11 20:27:05 UTC (rev 12733)
@@ -0,0 +1,69 @@
+#!/bin/csh
+#
+# DART software - Copyright UCAR. This open source software is provided
+# by UCAR, "as is", without charge, subject to all terms of use at
+# http://www.image.ucar.edu/DAReS/DART/DART_download
+#
+# DART $Id: mkmf_perturb_single_instance 12639 2018-06-06 22:11:25Z hendric at ucar.edu $
+
+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_perturb_single_instance: $argv[1]"
+ echo "Usage: mkmf_perturb_single_instance [ -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_perturb_single_instance path_names_perturb_single_instance.back
+
+if ( $usingmpi ) then
+
+ echo "Making Makefile with MPI"
+ touch using_mpi_for_perturb_single_instance
+ sed -e 's#/null_mpi_util#/mpi_util#' \
+ -e 's#/null_win_mod#/no_cray_win_mod#' path_names_perturb_single_instance.back >! path_names_perturb_single_instance
+
+ setenv wrapper_arg -w
+
+else
+
+ echo "Making Makefile without MPI"
+ rm -f using_mpi_for_perturb_single_instance
+ sed -e 's#/mpi_util#/null_mpi_util#' \
+ -e '\#no_cray_win_mod.f90#d' \
+ -e '\#cray_win_mod.f90#d' path_names_perturb_single_instance.back >! path_names_perturb_single_instance
+
+ set p=`grep null_win_mod.f90 path_names_perturb_single_instance | wc -w`
+ if ( $p == 0) then
+ echo assimilation_code/modules/utilities/null_win_mod.f90 >> path_names_perturb_single_instance
+ endif
+
+ setenv wrapper_arg ""
+
+endif
+
+# remove temp file and now really call mkmf to generate makefile
+rm -f path_names_perturb_single_instance.back
+
+../../../build_templates/mkmf -p perturb_single_instance -t ../../../build_templates/mkmf.template \
+ -a "../../.." ${wrapper_arg} path_names_perturb_single_instance
+
+
+exit $status
+
+# <next few lines under version control, do not edit>
+# $URL: https://svn-dares-dart.cgd.ucar.edu/DART/branches/pertirb_tool/models/wrf/work/mkmf_perturb_single_instance $
+# $Revision: 12639 $
+# $Date: 2018-06-06 16:11:25 -0600 (Wed, 06 Jun 2018) $
+
Property changes on: DART/branches/pertirb_tool/models/wrf/work/mkmf_perturb_single_instance
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
More information about the Dart-dev
mailing list