Skip to content

Commit

Permalink
fix memory error in promotion unit test (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcknaus committed Nov 10, 2022
1 parent 56d516d commit e67ddf4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions unit_tests/UnitTestHexElementPromotion.C
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,9 @@ protected:

setup_promotion();

const double zeroDouble = 0.0;
stk::mesh::put_field_on_mesh(
*coordField, meta->universal_part(), nDim, &zeroDouble);
stk::mesh::put_field_on_entire_mesh(*coordField, nDim);
stk::mesh::put_field_on_entire_mesh(*intField);

int zeroInt = 0;
stk::mesh::put_field_on_mesh(
*intField, meta->universal_part(), 1, &zeroInt);
fixture->m_meta.commit();
fixture->generate_mesh(stk::mesh::fixtures::FixedCartesianCoordinateMapping(
nx, ny, nz, nx, ny, nz));
Expand Down

0 comments on commit e67ddf4

Please sign in to comment.