From 6734b1eeaf86182ec8d107f2e3fce7d840b8e924 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Wed, 23 Aug 2023 13:36:25 -0600 Subject: [PATCH] SKINNER: Fix argument parsing --- .../libraries/ioss/src/main/skinner_interface.C | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/seacas/libraries/ioss/src/main/skinner_interface.C b/packages/seacas/libraries/ioss/src/main/skinner_interface.C index 9a012fb8d0..740e26ee75 100644 --- a/packages/seacas/libraries/ioss/src/main/skinner_interface.C +++ b/packages/seacas/libraries/ioss/src/main/skinner_interface.C @@ -241,26 +241,27 @@ bool Skinner::Interface::parse_options(int argc, char **argv) if (options_.retrieve("external") != nullptr) { decomp_method = "EXTERNAL"; } -#endif { - const char *temp = options_.retrieve("in_type"); + const char *temp = options_.retrieve("compose"); if (temp != nullptr) { - inFiletype_ = temp; + compose_output = Ioss::Utils::lowercase(temp); } } +#endif + { - const char *temp = options_.retrieve("out_type"); + const char *temp = options_.retrieve("in_type"); if (temp != nullptr) { - outFiletype_ = temp; + inFiletype_ = temp; } } { - const char *temp = options_.retrieve("compose"); + const char *temp = options_.retrieve("out_type"); if (temp != nullptr) { - compose_output = Ioss::Utils::lowercase(temp); + outFiletype_ = temp; } }