Skip to content

Commit 22278bb

Browse files
committed
fix typos
1 parent 23dba8f commit 22278bb

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

example/IO/forest/netcdf/t8_write_forest_netcdf.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ T8_EXTERN_C_BEGIN ();
5454
*/
5555
struct t8_example_netcdf_adapt_data
5656
{
57-
t8_3D_point midpoint; /* Midpoint of a aphere */
57+
t8_3D_point midpoint; /* Midpoint of a sphere */
5858
double refine_if_inside_radius; /* refine all elements inside this radius from the sphere's midpoint */
5959
double coarsen_if_outside_radius; /* coarsen all element families outside of this radius from the sphere's midpoint */
6060
};
6161

6262
/** This functions describe an adapt_function, an adapt_function describes the refinement/coarsening rules for a forest
63-
* \note If an element is inside a given radius from the midpoint of the hypercube, this element is refined. If a family of elements is outiside a given radius from the midpoint of the hypercube, it is coarsened.
63+
* \note If an element is inside a given radius from the midpoint of the hypercube, this element is refined. If a family of elements is outside a given radius from the midpoint of the hypercube, it is coarsened.
6464
* \note A detailed description of the adaption process is found in step 3 of the tutorial located in 't8code/example/tutorials'.
6565
*/
6666
int
@@ -109,7 +109,7 @@ t8_example_netcdf_adapt (t8_forest_t forest)
109109
{
110110
t8_forest_t forest_adapt;
111111

112-
/* The adapt data which controls which elements will be refined or corsened based on the given radii */
112+
/* The adapt data which controls which elements will be refined or coarsened based on the given radii */
113113
struct t8_example_netcdf_adapt_data adapt_data = {
114114
t8_3D_point ({ 0.5, 0.5, 0.5 }), /* Midpoints of the sphere. */
115115
0.2, /* Refine if inside this radius. */
@@ -195,7 +195,7 @@ t8_example_compare_performance_netcdf_var_properties (sc_MPI_Comm comm, int fore
195195
/* Construct a 3D hybrid hypercube as a cmesh */
196196
cmesh = t8_cmesh_new_hypercube_hybrid (comm, 1, 0);
197197

198-
/* Build a (partioined) uniform forest */
198+
/* Build a (partitioned) uniform forest */
199199
forest = t8_forest_new_uniform (cmesh, default_scheme, forest_refinement_level, 0, comm);
200200

201201
/* If the adapt_forest flag is set, the forest will be adapted */
@@ -343,12 +343,12 @@ t8_example_netcdf_write_forest (sc_MPI_Comm comm, int forest_refinement_level, i
343343

344344
t8_global_productionf ("New cmesh was created\n");
345345

346-
/* Build a (partioined) uniform forest */
346+
/* Build a (partitioned) uniform forest */
347347
forest = t8_forest_new_uniform (cmesh, default_scheme, level, 0, comm);
348348

349349
t8_global_productionf ("New forest was created\n");
350350

351-
/* Eventually, adapt the forest (based on the flag aadapt_forest) */
351+
/* Eventually, adapt the forest (based on the flag adapt_forest) */
352352
if (adapt_forest) {
353353
/** \note The forest is not repartitioned after the adapt-step.
354354
* Therefore, the workload may not be evenly distributed among the processes.

example/advect/t8_advection.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ typedef struct
114114
* element as well and is communicated with other processes in ghost_exchange. */
115115
sc_array_t *phi_values; /**< For each element and ghost its phi value. */
116116
sc_array_t
117-
*phi_values_adapt; /**< phi values for the adapted forest, used during adaptaption to interpolate values. */
117+
*phi_values_adapt; /**< phi values for the adapted forest, used during adaptation to interpolate values. */
118118
sc_MPI_Comm comm; /**< MPI communicator used */
119119
sc_statinfo_t stats[ADVECT_NUM_STATS]; /**< Runtimes and other statistics. */
120120
double t; /**< Current simulation time */
@@ -142,7 +142,7 @@ typedef struct
142142
t8_3D_point midpoint; /**< coordinates of element midpoint in R^3 */
143143
double vol; /**< Volume of this element */
144144
double phi_new; /**< Value of solution at midpoint in next time step */
145-
double *fluxes[MAX_FACES]; /**< The fluxes to each neeighbor at a given face */
145+
double *fluxes[MAX_FACES]; /**< The fluxes to each neighbor at a given face */
146146
int flux_valid[MAX_FACES]; /**< If > 0, this flux was computed, if 0 memory was allocated
147147
for this flux, but not computed. If < 0, no memory was allocated. */
148148
int level; /**< The refinement level of the element. */
@@ -343,7 +343,7 @@ t8_advect_flux_upwind_1d (const t8_advect_problem_t *problem, const t8_locidx_t
343343
}
344344
/* Compute u at the interval boundary. */
345345
problem->u (x_j_half, problem->t, u_at_x_j_half);
346-
/* In 1D we are only interested in the firs coordinate of u */
346+
/* In 1D we are only interested in the first coordinate of u */
347347

348348
sign = face == 0 ? -1 : 1;
349349
if (sign * u_at_x_j_half[0] >= 0) {
@@ -929,7 +929,7 @@ t8_advect_problem_init (t8_cmesh_t cmesh, t8_flow_function_3d_fn u, t8_example_l
929929
problem->num_time_steps = 0; /* current time step */
930930
problem->comm = comm; /* MPI communicator */
931931
problem->vtk_count = 0; /* number of pvtu files written */
932-
problem->band_width = band_width; /* width of the refinemen band around 0 level-set */
932+
problem->band_width = band_width; /* width of the refinement band around 0 level-set */
933933
problem->dim = dim; /* dimension of the mesh */
934934
problem->dummy_op = dummy_op; /* If true, emulate more computational load per element */
935935

src/t8_forest/t8_forest_general.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ t8_forest_leaf_face_orientation (t8_forest_t forest, const t8_locidx_t ltreeid,
571571
* \note Important! This routine allocates memory which must be freed. Do it like this:
572572
*
573573
* if (num_neighbors > 0) {
574-
* scheme->element_destroy (pneigh_eclass, num_neighbors, neighbors);
574+
* scheme->element_destroy (pneigh_eclass, num_neighbors, pneighbor_leaves);
575575
* T8_FREE (pneighbor_leaves);
576576
* T8_FREE (pelement_indices);
577577
* T8_FREE (dual_faces);
@@ -613,7 +613,7 @@ t8_forest_leaf_face_neighbors (t8_forest_t forest, t8_locidx_t ltreeid, const t8
613613
* \note Important! This routine allocates memory which must be freed. Do it like this:
614614
*
615615
* if (num_neighbors > 0) {
616-
* scheme->element_destroy (pneigh_eclass, num_neighbors, neighbors);
616+
* scheme->element_destroy (pneigh_eclass, num_neighbors, pneighbor_leaves);
617617
* T8_FREE (pneighbor_leaves);
618618
* T8_FREE (pelement_indices);
619619
* T8_FREE (dual_faces);
@@ -913,7 +913,7 @@ t8_forest_new_uniform (t8_cmesh_t cmesh, const t8_scheme_c *scheme, const int le
913913
/** Build a adapted forest from another forest.
914914
* \param [in] forest_from The forest to refine
915915
* \param [in] adapt_fn Adapt function to use
916-
* \param [in] recursive If true adptation is recursive
916+
* \param [in] recursive If true adaptation is recursive
917917
* \param [in] do_face_ghost If true, a layer of ghost elements is created for the forest.
918918
* \param [in] user_data If not NULL, the user data pointer of the forest is set to this value.
919919
* \return A new forest that is adapted from \a forest_from.

src/t8_forest/t8_forest_ghost.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ typedef struct
9090
} t8_ghost_remote_tree_t;
9191

9292
/**
93-
* This struct stores information about the data that the current process needds from a specific remote_process
93+
* This struct stores information about the data that the current process needs from a specific remote_process
9494
* as ghost data, such as the number of remote elements and the remote trees.
9595
*/
9696
typedef struct

tutorials/general/t8_step5_element_data_c_interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ t8_step5_output_data_to_vtu (t8_forest_t forest, struct t8_step5_data_per_elemen
218218
}
219219
{
220220
/* To write user defined data, we need to extended output function t8_forest_vtk_write_file
221-
* from t8_forest_vtk.h. Despite writin user data, it also offers more control over which
221+
* from t8_forest_vtk.h. Despite writing user data, it also offers more control over which
222222
* properties of the forest to write. */
223223
int write_treeid = 1;
224224
int write_mpirank = 1;

0 commit comments

Comments
 (0)