changeset 2528:a5f421ed1151

* added minc_version global to output files
author Andrew L Janke <a.janke@gmail.com>
date Fri, 29 Apr 2011 02:41:57 +1000
parents 902f686fff0c
children 2bd6829e2ff6
files ChangeLog libsrc/netcdf_convenience.c libsrc2/volume.c testdir/xfmconcat_01.sh
diffstat 4 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+
+2011-04-29  Andrew L Janke  <a.janke@gmail.com>
+   * libsrc2/volume.c: added minc_version global
+   * libsrc/netcdf_convenience.c: added minc_version global
 
 2011-02-17  Andrew L Janke  <a.janke@gmail.com>
    * libsrc2/test/datatype-test.c: fixed a HDF5 bug in error output
--- a/libsrc/netcdf_convenience.c
+++ b/libsrc/netcdf_convenience.c
@@ -703,6 +703,7 @@
 
         micreate_ident(ident, sizeof(ident));
         miattputstr(fd, NC_GLOBAL, "ident", ident);
+        miattputstr(fd, NC_GLOBAL, "minc_version", VERSION);
     }
     MI_RETURN(fd);
 }
--- a/libsrc2/volume.c
+++ b/libsrc2/volume.c
@@ -366,6 +366,8 @@
   micreate_ident(ident_str, sizeof(ident_str));
   miset_attribute(handle, MI_ROOT_PATH, "ident", MI_TYPE_STRING,
                   strlen(ident_str), ident_str);
+  miset_attribute(handle, MI_ROOT_PATH, "minc_version", MI_TYPE_STRING,
+                  strlen(VERSION), VERSION);
 
   _miset_volume_class(handle, handle->volume_class);
 
old mode 100644
new mode 100755