Skip to content

Commit

Permalink
IOSS: lowercase file type; output info if forcing netcdf4 due to comp…
Browse files Browse the repository at this point in the history
…ression
  • Loading branch information
gdsjaar committed Sep 27, 2024
1 parent c3148dd commit f186770
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ namespace Ioex {
// handled prior to opening/creating database...
if (properties.exists("FILE_TYPE")) {
std::string type = properties.get("FILE_TYPE").get_string();
type = Ioss::Utils::lowercase(type);
type = Ioss::Utils::lowercase(type);
if (type == "netcdf3" || type == "netcdf-3") {
exodusMode = EX_CLOBBER; // Reset back to default...
}
Expand Down Expand Up @@ -308,7 +308,11 @@ namespace Ioex {
properties.get("COMPRESSION_SHUFFLE").get_int() > 0));

if (compress) {
exodusMode |= EX_NETCDF4;
if (!(exodusMode & EX_NETCDF4)) {
fmt::print(Ioss::OUTPUT(), "IOEX: Compression requires netcdf-4/HDF5-based file. Setting "
"file type to netcdf-4.\n");
exodusMode |= EX_NETCDF4;
}
}
#else
fmt::print(Ioss::OUTPUT(), "IOEX: HDF5/netcdf-4 is not supported in this build. Compression "
Expand Down

0 comments on commit f186770

Please sign in to comment.