From bfdc491fe3187381f85f6933e2c0af005744f182 Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Tue, 21 Jun 2016 17:02:32 -0500 Subject: [PATCH] Output "--" if that was specified in the header file. Unit tests failed sometimes. Found that an attributes structure for time in the data recording class was unintialized. This led to the mods field to have random data, and sometimes triggering sys.exec.out.time to be assigned no units. Fixed it by zeroing out the structure. refs #254 --- trick_source/sim_services/DataRecord/DataRecordGroup.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/trick_source/sim_services/DataRecord/DataRecordGroup.cpp b/trick_source/sim_services/DataRecord/DataRecordGroup.cpp index 8618e56b..d8270f3d 100644 --- a/trick_source/sim_services/DataRecord/DataRecordGroup.cpp +++ b/trick_source/sim_services/DataRecord/DataRecordGroup.cpp @@ -60,6 +60,7 @@ Trick::DataRecordGroup::DataRecordGroup( std::string in_name ) : freq(DR_Always), start(0.0) , cycle(0.1) , + time_value_attr() , num_variable_names(0), variable_names(NULL), variable_alias(NULL),