From f484404dbcaa365083a4c162df2e9cbbce518ad8 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Tue, 2 Jan 2024 16:33:45 -0700 Subject: [PATCH] IOSS: Heartbeat -- enable timestamp output if timestamp format specified --- .../seacas/libraries/ioss/src/heartbeat/Iohb_DatabaseIO.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/seacas/libraries/ioss/src/heartbeat/Iohb_DatabaseIO.C b/packages/seacas/libraries/ioss/src/heartbeat/Iohb_DatabaseIO.C index 04762ad752..ee019a6a46 100644 --- a/packages/seacas/libraries/ioss/src/heartbeat/Iohb_DatabaseIO.C +++ b/packages/seacas/libraries/ioss/src/heartbeat/Iohb_DatabaseIO.C @@ -213,7 +213,7 @@ namespace Iohb { new_this->tsFormat = properties.get("TIME_STAMP_FORMAT").get_string(); } - bool show_time_stamp = false; + bool show_time_stamp = !new_this->tsFormat.empty(); Ioss::Utils::check_set_bool_property(properties, "SHOW_TIME_STAMP", show_time_stamp); if (show_time_stamp) { if (tsFormat.empty()) { @@ -231,6 +231,10 @@ namespace Iohb { if (properties.exists("FIELD_WIDTH")) { new_this->fieldWidth_ = properties.get("FIELD_WIDTH").get_int(); } + else { + // +1.xxxxxxe+00 The x count is the precision the "+1.e+00" is the 7 + new_this->fieldWidth_ = precision_ + 7; + } Ioss::Utils::check_set_bool_property(properties, "SHOW_LABELS", new_this->showLabels);