Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sandro-elsweijer committed Apr 13, 2023
1 parent 70ccf3c commit e2a899e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,9 @@ t8_default_scheme_hex_c::t8_element_vertex_reference_coords (const

/* We divide the integer coordinates by the root length of the hex
* to obtain the reference coordinates. */
coords[0] /= (double) P8EST_ROOT_LEN;
coords[1] /= (double) P8EST_ROOT_LEN;
coords[2] /= (double) P8EST_ROOT_LEN;
coords[0] = coords_int[0] / (double) P8EST_ROOT_LEN;
coords[1] = coords_int[1] / (double) P8EST_ROOT_LEN;
coords[2] = coords_int[2] / (double) P8EST_ROOT_LEN;
}

int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,8 @@ t8_default_scheme_quad_c::t8_element_vertex_reference_coords (const

/* We divide the integer coordinates by the root length of the quad
* to obtain the reference coordinates. */
coords[0] /= (double) P4EST_ROOT_LEN;
coords[1] /= (double) P4EST_ROOT_LEN;
coords[0] = coords_int[0] / (double) P4EST_ROOT_LEN;
coords[1] = coords_int[1] / (double) P4EST_ROOT_LEN;
}

void
Expand Down
6 changes: 3 additions & 3 deletions src/t8_schemes/t8_default/t8_default_tri/t8_dtri_bits.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ t8_dtri_compute_vertex_ref_coords (const t8_dtri_t *elem, const int vertex,
/* Since the integer coordinates are coordinates w.r.t to
* the embedding into [0,T8_DTRI_ROOT_LEN]^d, we just need
* to divide them by the root length. */
coordinates[0] /= (double) T8_DTRI_ROOT_LEN;
coordinates[1] /= (double) T8_DTRI_ROOT_LEN;
coordinates[0] = coords_int[0] / (double) T8_DTRI_ROOT_LEN;
coordinates[1] = coords_int[1] / (double) T8_DTRI_ROOT_LEN;
#ifdef T8_DTRI_TO_DTET
coordinates[2] /= (double) T8_DTRI_ROOT_LEN;
coordinates[2] = coords_int[2] / (double) T8_DTRI_ROOT_LEN;
#endif
}

Expand Down

0 comments on commit e2a899e

Please sign in to comment.