From 2278f4d27c2b1a76e00f202ade0d5f513fedb80d Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Wed, 20 Nov 2024 10:40:21 -0800 Subject: [PATCH] fix for htg param parsing (#1419) --- .../flow_filters/ascent_runtime_htg_filters.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/libs/ascent/runtimes/flow_filters/ascent_runtime_htg_filters.cpp b/src/libs/ascent/runtimes/flow_filters/ascent_runtime_htg_filters.cpp index 7b3f5c28c..5f9e56804 100644 --- a/src/libs/ascent/runtimes/flow_filters/ascent_runtime_htg_filters.cpp +++ b/src/libs/ascent/runtimes/flow_filters/ascent_runtime_htg_filters.cpp @@ -103,9 +103,9 @@ verify_htg_params(const conduit::Node ¶ms, info["errors"].append() = "missing required entry 'blank_value'"; res = false; } - else if(!params["blank_value"].dtype().is_float()) + else if(!params["blank_value"].dtype().is_number()) { - info["errors"].append() = "'blank_value' must be a float"; + info["errors"].append() = "'blank_value' must be a number"; res = false; } @@ -342,7 +342,7 @@ void htg_write_file(const string &stem, } void htg_write(const std::string &path, - float blank_value, + double blank_value, int nx, const double *bounds, const float *value) @@ -536,7 +536,7 @@ void htg_write(const std::string &path, void htg_save(const Node &data, const Node &fields, const std::string &path, - float blank_value) + double blank_value) { if (data.number_of_children() != 1) { @@ -673,15 +673,15 @@ HTGIOSave::verify_params(const conduit::Node ¶ms, void HTGIOSave::execute() { - + #if ASCENT_MPI_ENABLED - ASCENT_ERROR("htg extract only supports serial execution"<()) {