Skip to content

Commit

Permalink
Replace global by local tree id in call to t8_cmesh_get_attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasdreyer committed Mar 27, 2024
1 parent b32c83b commit 1f93f65
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ inline void
t8_geometry_lagrange::t8_geom_load_tree_data (t8_cmesh_t cmesh, t8_gloidx_t gtreeid)
{
t8_geometry_with_vertices::t8_geom_load_tree_data (cmesh, gtreeid);
degree = (const int *) t8_cmesh_get_attribute (cmesh, t8_get_package_id (), T8_CMESH_LAGRANGE_POLY_DEGREE, gtreeid);
t8_locidx_t ltreeid = t8_cmesh_get_local_id (cmesh, gtreeid);
degree = (const int *) t8_cmesh_get_attribute (cmesh, t8_get_package_id (), T8_CMESH_LAGRANGE_POLY_DEGREE, ltreeid);
T8_ASSERT (degree != NULL);
}

Expand Down

0 comments on commit 1f93f65

Please sign in to comment.