[Dart-dev] DART/branches Revision: 11737
dart at ucar.edu
dart at ucar.edu
Wed Jun 14 23:00:07 MDT 2017
thoar at ucar.edu
2017-06-14 23:00:01 -0600 (Wed, 14 Jun 2017)
281
All the path_names* files have everything they need under the new DART
code layout. A few of them still don't compile because of the need to ship the
name of the hdf5 file for the gridhd and domain information.
Need to figure out the least invasive way to ship that name around.
Modified: DART/branches/coamps/models/coamps_nest/coamps_util_mod.f90
===================================================================
--- DART/branches/coamps/models/coamps_nest/coamps_util_mod.f90 2017-06-15 00:01:25 UTC (rev 11736)
+++ DART/branches/coamps/models/coamps_nest/coamps_util_mod.f90 2017-06-15 05:00:01 UTC (rev 11737)
@@ -584,7 +584,7 @@
! Error checking
logical :: is_opened
- character(len=*), parameter :: routine = 'read_datahd_file'
+ character(len=*), parameter :: routine = 'write_datahd_file'
integer :: io_status, alloc_status
integer :: ii
Copied: DART/branches/coamps/models/coamps_nest/work/mkmf_check_in_grid (from rev 11736, DART/branches/coamps/models/coamps_nest/work/mkmf_in_grid)
===================================================================
--- DART/branches/coamps/models/coamps_nest/work/mkmf_check_in_grid (rev 0)
+++ DART/branches/coamps/models/coamps_nest/work/mkmf_check_in_grid 2017-06-15 05:00:01 UTC (rev 11737)
@@ -0,0 +1,18 @@
+#!/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$
+
+../../../build_templates/mkmf -p check_in_grid -t ../../../build_templates/mkmf.template \
+ -a "../../.." path_names_check_in_grid
+
+exit $status
+
+# <next few lines under version control, do not edit>
+# $URL$
+# $Revision$
+# $Date$
+
Copied: DART/branches/coamps/models/coamps_nest/work/mkmf_create_mean_nogaps (from rev 11736, DART/branches/coamps/models/coamps_nest/work/mkmf_create_nogaps)
===================================================================
--- DART/branches/coamps/models/coamps_nest/work/mkmf_create_mean_nogaps (rev 0)
+++ DART/branches/coamps/models/coamps_nest/work/mkmf_create_mean_nogaps 2017-06-15 05:00:01 UTC (rev 11737)
@@ -0,0 +1,64 @@
+#!/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$
+
+# usage: mkmf_create_mean_nogaps [ -mpi | -nompi ]
+# without any args, builds filter 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_filter: $argv[1]"
+ echo "Usage: mkmf_create_mean_nogaps [ -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.
+set path_name = 'path_names_create_mean_nogaps'
+cp -f ${path_name} ${path_name}.back
+
+if ( $usingmpi ) then
+
+ echo "Making Makefile with MPI"
+ touch using_mpi_for_create_mean_nogaps
+ sed -e 's;/null_mpi_util;/mpi_util;' ${path_name}.back >! ${path_name}
+ setenv wrapper_arg -w
+
+else
+
+ echo "Making Makefile without MPI"
+ rm -f using_mpi_for_create_mean_nogaps
+ sed -e 's;/mpi_util;/null_mpi_util;' ${path_name}.back >! ${path_name}
+ setenv wrapper_arg ""
+
+endif
+
+# remove temp file and now really call mkmf to generate makefile
+rm -f ${path_name}.back
+
+../../../build_templates/mkmf -p create_mean_nogaps -t ../../../build_templates/mkmf.template \
+ -a "../../.." ${wrapper_arg} ${path_name}
+
+exit $status
More information about the Dart-dev
mailing list