Skip to content

Commit

Permalink
Fix build and runtime errors (#1112)
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed Jan 18, 2023
1 parent 56b9e0b commit 84943e5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/aero/fsi/FSIturbine.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ inline vs::VectorT<T>
vector_from_field(stk::mesh::Field<T, P>& field, const stk::mesh::Entity& node)
{
// debug only check for optimization
assert(field.entity_rank() == 3);
assert(field.type_is<T>());
assert(field.max_size(stk::topology::NODE_RANK) == 3);
assert(field.template type_is<T>());
T* ptr = stk::mesh::field_data(field, node);
return {ptr[0], ptr[1], ptr[2]};
}

//! convenience function for putting vector computations back onto the
//! stk::fields
template <typename T, typename P>
Expand All @@ -47,8 +48,8 @@ vector_to_field(
const stk::mesh::Entity& node)
{
// debug only check for optimization
assert(field.entity_rank() == 3);
assert(field.type_is<T>());
assert(field.max_size(stk::topology::NODE_RANK) == 3);
assert(field.template type_is<T>());
T* ptr = stk::mesh::field_data(field, node);
for (int i = 0; i < 3; ++i) {
ptr[i] = vec[i];
Expand Down

0 comments on commit 84943e5

Please sign in to comment.