Skip to content

Commit

Permalink
indented all files
Browse files Browse the repository at this point in the history
  • Loading branch information
jfussbro committed Jul 24, 2023
1 parent 41e22fa commit b7e3593
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 5 additions & 3 deletions benchmarks/time_forest_partition.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -314,15 +314,17 @@ t8_time_forest_create_cmesh (const char *msh_file, int mesh_dim,
if (msh_file != NULL) {
if (use_occ) {
partition = 0;
t8_global_productionf("The cmesh is not partitioned due to the usage of the curved mesh option. \n"
"Timing will not be comparable to non-curved meshes. \n");
t8_global_productionf
("The cmesh is not partitioned due to the usage of the curved mesh option. \n"
"Timing will not be comparable to non-curved meshes. \n");
}
else {
partition = 1;
}
/* Create a cmesh from the given mesh files */
cmesh =
t8_cmesh_from_msh_file ((char *) msh_file, partition, comm, mesh_dim, 0, use_occ);
t8_cmesh_from_msh_file ((char *) msh_file, partition, comm, mesh_dim, 0,
use_occ);
}
else {
T8_ASSERT (cmesh_file != NULL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ t8_geometry_occ::t8_geom_evaluate_occ_hex (t8_cmesh_t cmesh,
active_tree_vertices, ref_coords,
out_coords);

int tree_is_linear = 1;
const int num_edges = t8_eclass_num_edges[active_tree_class];
const int num_faces = t8_eclass_num_faces[active_tree_class];
double interpolated_coords[3],
Expand All @@ -214,9 +213,6 @@ t8_geometry_occ::t8_geom_evaluate_occ_hex (t8_cmesh_t cmesh,
/* Check if only a surface or a curve is present. Abort if both is true. */
T8_ASSERT (!(edges[i_edge] > 0) != !(edges[i_edge + num_edges] > 0));

/* tree carries a surface or an edge and is therefore not */
tree_is_linear = 0;

/* Interpolate coordinates between edge vertices. Due to the indices i_edge of the edges, the edges point in
* direction of ref_coord i_edge / 4. Therefore, we can use ref_coords[i_edge / 4] for the interpolation.
* 6 -------E3------- 7
Expand Down

0 comments on commit b7e3593

Please sign in to comment.