Skip to content

Commit

Permalink
IOSS: Fix so line decomposition uses same integer size as calling code
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Oct 9, 2024
1 parent d0e1d30 commit 0f7dffb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/seacas/libraries/ioss/src/Ioss_Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

#pragma once
namespace Ioss {
inline const char *Version() { return "2024-03-19"; }
inline const char *Version() { return "2024-10-09"; }
} // namespace Ioss
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,15 @@ namespace Ioex {
Ioss::PropertyManager properties;
Ioss::DatabaseIO *dbi = Ioss::IOFactory::create(
"exodus", filename, Ioss::READ_RESTART, Ioss::ParallelUtils::comm_self(), properties);

// Set integer size to match what the caller is using
if (sizeof(INT) == 8) {
dbi->set_int_byte_size_api(Ioss::USE_INT64_API);
}
else {
dbi->set_int_byte_size_api(Ioss::USE_INT32_API);
}

Ioss::Region region(dbi, "line_decomp_region");

Ioss::DecompUtils::line_decompose(region, m_processorCount, m_decomposition.m_method,
Expand Down

0 comments on commit 0f7dffb

Please sign in to comment.