Skip to content

Commit

Permalink
EXODUS: Replace use of variable size array since know the size
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Feb 14, 2024
1 parent 0e7f106 commit 29a9ebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/seacas/libraries/exodus/test/testwt-assembly.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright(C) 1999-2021 National Technology & Engineering Solutions
* Copyright(C) 1999-2021, 2024 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 @@ -92,7 +92,7 @@ int main(int argc, char **argv)

/* ======================================================================== */
/* write element block parameters */
struct ex_block blocks[num_elem_blk];
struct ex_block blocks[7];
for (int i = 0; i < num_elem_blk; i++) {
blocks[i] = (ex_block){.type = EX_ELEM_BLOCK, .num_entry = 1, .id = i + 10};
}
Expand Down

0 comments on commit 29a9ebe

Please sign in to comment.