mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
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:
parent
14d4c94b2e
commit
0514612039
@ -54,7 +54,7 @@ TrickHDF5::TrickHDF5(char *file_name , char *parameter_name , char *time_name) {
|
|||||||
H5PTget_next(parameter_units, 1, units_buf);
|
H5PTget_next(parameter_units, 1, units_buf);
|
||||||
// the specified parameter_name is found, set the units
|
// the specified parameter_name is found, set the units
|
||||||
if (strcmp(parameter_name, name_buf) == 0) {
|
if (strcmp(parameter_name, name_buf) == 0) {
|
||||||
if ( !strcmp(units_ptr,"--") ) {
|
if ( !strcmp(units_buf,"--") ) {
|
||||||
unitStr_ = strdup(units_buf) ;
|
unitStr_ = strdup(units_buf) ;
|
||||||
} else {
|
} else {
|
||||||
unitStr_ = map_trick_units_to_udunits(units_buf) ;
|
unitStr_ = map_trick_units_to_udunits(units_buf) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user