Skip to content

Commit

Permalink
SLICE: Fix 1d model output
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Jul 18, 2024
1 parent 4885f06 commit ade1fbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/seacas/applications/slice/Slice.C
Original file line number Diff line number Diff line change
Expand Up @@ -1304,9 +1304,10 @@ namespace {
offset += element_count;
}
}
size_t spatial_dimension = region.get_property("spatial_dimension").get_int();
for (size_t p = 0; p < proc_count; p++) {
auto *nb =
new Ioss::NodeBlock(proc_region[p]->get_database(), "node_block1", on_proc_count[p], 3);
auto *nb = new Ioss::NodeBlock(proc_region[p]->get_database(), "node_block1",
on_proc_count[p], spatial_dimension);
proc_region[p]->add(nb);
if (debug_level & 2) {
fmt::print(stderr, "\tProcessor {} has {} nodes.\n", fmt::group_digits(p),
Expand Down

0 comments on commit ade1fbb

Please sign in to comment.