[Dart-dev] DART/branches Revision: 11541

dart at ucar.edu dart at ucar.edu
Thu Apr 27 11:07:10 MDT 2017


nancy at ucar.edu
2017-04-27 11:07:06 -0600 (Thu, 27 Apr 2017)
53
add a sync after adding atts, update the quickbuild




Modified: DART/branches/model_mod_changes/models/lorenz_63/model_mod.f90
===================================================================
--- DART/branches/model_mod_changes/models/lorenz_63/model_mod.f90	2017-04-27 17:06:19 UTC (rev 11540)
+++ DART/branches/model_mod_changes/models/lorenz_63/model_mod.f90	2017-04-27 17:07:06 UTC (rev 11541)
@@ -16,7 +16,7 @@
                                   nmlfileunit, do_output, find_namelist_in_file, &
                                   check_namelist_read, do_nml_file, do_nml_term
 
-use netcdf_utilities_mod, only : nc_add_global_attribute, &
+use netcdf_utilities_mod, only : nc_add_global_attribute, nc_sync, &
                                  nc_add_global_creation_time, nc_redef, nc_enddef
 
 use time_manager_mod,      only : time_type, set_time
@@ -458,6 +458,8 @@
 call nc_enddef(ncid)
 call nc_write_location(ncid, state_loc, msize)
 
+call nc_sync(ncid)
+
 end subroutine nc_write_model_atts
 
 !===================================================================

Modified: DART/branches/model_mod_changes/models/lorenz_63/work/quickbuild.csh
===================================================================
--- DART/branches/model_mod_changes/models/lorenz_63/work/quickbuild.csh	2017-04-27 17:06:19 UTC (rev 11540)
+++ DART/branches/model_mod_changes/models/lorenz_63/work/quickbuild.csh	2017-04-27 17:07:06 UTC (rev 11541)
@@ -21,10 +21,10 @@
 #----------------------------------------------------------------------
 
 # this model name:
-set MODEL = "Lorenz_63"
+set BUILDING = "Lorenz 63"
 
 # programs which have the option of building with MPI:
-set MPI_TARGETS = "filter perfect_model_obs"
+set MPI_TARGETS = "filter perfect_model_obs model_mod_check"
 
 # set default (override with -mpi or -nompi):
 #  0 = build without MPI, 1 = build with MPI
@@ -46,11 +46,15 @@
 endif
 
 set preprocess_done = 0
+set tdebug = 0
 set cdebug = 0
 
 if ( $?CODE_DEBUG ) then
    set cdebug = $CODE_DEBUG
 endif
+if ( $?DART_TEST ) then
+   set tdebug = $DART_TEST
+endif
 
 \rm -f *.o *.mod 
 
@@ -60,22 +64,26 @@
 
 @ n = 0
 
-foreach DATAFILE ( `ls *.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 $BUILDING data file $n named $OUTNAME" 
+      
+         ncgen -o $OUTNAME $DATAFILE  || exit $n
+      endif
+   
+   end
+endif
 
-end
 
-
 #----------------------------------------------------------------------
 # Build all the single-threaded targets
 #----------------------------------------------------------------------
@@ -97,11 +105,16 @@
    @ n = $n + 1
    echo
    echo "---------------------------------------------------"
-   echo "$MODEL build number $n is $PROG" 
+   echo "$BUILDING build number $n is $PROG" 


More information about the Dart-dev mailing list