Skip to content

Commit

Permalink
Update asserts. (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Aug 8, 2024
1 parent 6395cef commit 0af6993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/aero/fsi/FSIturbine.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ vector_from_field(
const stk::mesh::Field<T>& field, const stk::mesh::Entity& node)
{
// debug only check for optimization
assert(field.max_size(stk::topology::NODE_RANK) == 3);
assert(field.max_size() == 3);
assert(field.template type_is<T>());
T* ptr = stk::mesh::field_data(field, node);
return {ptr[0], ptr[1], ptr[2]};
Expand All @@ -72,7 +72,7 @@ vector_to_field(
vs::VectorT<T> vec, stk::mesh::Field<T>& field, const stk::mesh::Entity& node)
{
// debug only check for optimization
assert(field.max_size(stk::topology::NODE_RANK) == 3);
assert(field.max_size() == 3);
assert(field.template type_is<T>());
T* ptr = stk::mesh::field_data(field, node);
for (int i = 0; i < 3; ++i) {
Expand Down

0 comments on commit 0af6993

Please sign in to comment.