Output "--" if that was specified in the header file.

Copy and paste error in TrickHDF5.cpp, used wrong variable name.

refs #254
This commit is contained in:
Alex Lin 2016-06-22 17:41:51 -05:00
parent 14d4c94b2e
commit 0514612039

View File

@ -54,7 +54,7 @@ TrickHDF5::TrickHDF5(char *file_name , char *parameter_name , char *time_name) {
H5PTget_next(parameter_units, 1, units_buf);
// the specified parameter_name is found, set the units
if (strcmp(parameter_name, name_buf) == 0) {
if ( !strcmp(units_ptr,"--") ) {
if ( !strcmp(units_buf,"--") ) {
unitStr_ = strdup(units_buf) ;
} else {
unitStr_ = map_trick_units_to_udunits(units_buf) ;