[Dart-dev] DART/branches Revision: 11521
dart at ucar.edu
dart at ucar.edu
Tue Apr 25 16:11:08 MDT 2017
nancy at ucar.edu
2017-04-25 16:11:08 -0600 (Tue, 25 Apr 2017)
109
fix the call to get_state_meta_data() - needed the index
to be an i8 instead of i4 - and update quickbuild.
Modified: DART/branches/model_mod_changes/models/bgrid_solo/id_set_def_stdin.f90
===================================================================
--- DART/branches/model_mod_changes/models/bgrid_solo/id_set_def_stdin.f90 2017-04-25 21:52:23 UTC (rev 11520)
+++ DART/branches/model_mod_changes/models/bgrid_solo/id_set_def_stdin.f90 2017-04-25 22:11:08 UTC (rev 11521)
@@ -6,7 +6,7 @@
program id_set_def_stdin
-use types_mod, only : r8
+use types_mod, only : r8, i8
use location_mod, only : location_type
use utilities_mod, only : get_unit
use obs_kind_mod, only : QTY_SURFACE_PRESSURE
@@ -50,7 +50,7 @@
! Time is 0 days 0 seconds for create obs sequence
write(iunit, *) 0, 0
- call get_state_meta_data(i, location, var_type)
+ call get_state_meta_data(int(i,i8), location, var_type)
! Output the appropriate observational error variance
if(var_type == QTY_SURFACE_PRESSURE) then
Modified: DART/branches/model_mod_changes/models/bgrid_solo/work/quickbuild.csh
===================================================================
--- DART/branches/model_mod_changes/models/bgrid_solo/work/quickbuild.csh 2017-04-25 21:52:23 UTC (rev 11520)
+++ DART/branches/model_mod_changes/models/bgrid_solo/work/quickbuild.csh 2017-04-25 22:11:08 UTC (rev 11521)
@@ -52,6 +52,7 @@
set cdebug = $CODE_DEBUG
endif
+\rm -f *.o *.mod
#----------------------------------------------------------------------
# Build any NetCDF files from .cdl files
@@ -59,22 +60,26 @@
@ n = 0
-foreach DATAFILE ( *.cdl )
+@ has_cdl = `ls *.cdl | wc -l` >& /dev/null
- set OUTNAME = `basename $DATAFILE .cdl`.nc
-
- if ( ! -f $OUTNAME ) then
- @ n = $n + 1
- echo
- echo "---------------------------------------------------"
- echo "constructing $MODEL data file $n named $OUTNAME"
+if ( $has_cdl > 0 ) then
+ foreach DATAFILE ( *.cdl )
- ncgen -o $OUTNAME $DATAFILE || exit $n
- endif
+ set OUTNAME = `basename $DATAFILE .cdl`.nc
+
+ if ( ! -f $OUTNAME ) then
+ @ n = $n + 1
+ echo
+ echo "---------------------------------------------------"
+ echo "constructing $MODEL data file $n named $OUTNAME"
+
+ ncgen -o $OUTNAME $DATAFILE || exit $n
+ endif
+
+ end
+endif
-end
-
#----------------------------------------------------------------------
# Build all the single-threaded targets
#----------------------------------------------------------------------
More information about the Dart-dev
mailing list