Skip to content

Commit

Permalink
SLICE: Fix argument parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Feb 4, 2025
1 parent a61b888 commit b37fad1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/seacas/applications/slice/SL_SystemInterface.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright(C) 1999-2024 National Technology & Engineering Solutions
// Copyright(C) 1999-2025 National Technology & Engineering Solutions
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
// NTESS, the U.S. Government retains certain rights in this software.
//
Expand Down Expand Up @@ -166,7 +166,7 @@ void SystemInterface::enroll_options()
"Use SZip compression. [exodus only, enables netcdf-4]", nullptr);
options_.enroll("zstd", GetLongOption::NoValue,
"Use Zstd compression. [exodus only, enables netcdf-4, experimental]", nullptr);
options_.enroll("bz2", GetLongOption::NoValue,
options_.enroll("bzip2", GetLongOption::NoValue,
"Use Bzip2 compression. [exodus only, enables netcdf-4, experimental]", nullptr);

options_.enroll("shuffle", GetLongOption::NoValue,
Expand Down Expand Up @@ -452,6 +452,11 @@ bool SystemInterface::parse_options(int argc, char **argv)
disableFieldRecognition_ = options_.retrieve("disable_field_recognition") != nullptr;
#endif

if (processorCount_ <= 1) {
fmt::print(stderr,
"\nERROR: The `-processors` argument must be greater than 1.\n The entered value of {} is not valid.\n", processorCount_);
return false;
}
return true;
}

Expand Down

0 comments on commit b37fad1

Please sign in to comment.