/**
* Provide a tensor valued function which always returns a constant tensor
- * value. Obviously, all derivates of this function are zero.
+ * value. Obviously, all derivatives of this function are zero.
*
* @ingroup functions
*/
/**
* Provide a tensor valued function which always returns zero. Obviously, all
- * derivates of this function are zero.
+ * derivatives of this function are zero.
*
* @ingroup functions
*/
* the computed values overwrite the content in the output.
* @tparam max_derivative Sets the number of derivatives that should be
* computed. 0 means only values, 1 means values and first
- * derivatives, 2 up to second derivates. Note that all the
+ * derivatives, 2 up to second derivatives. Note that all the
* derivatives access the data in @p shape_values passed to
* the constructor of the class.
*
*/
template <int spacedim>
void
- remove_colinear_points(std::vector<Point<spacedim>> &points)
+ remove_collinear_points(std::vector<Point<spacedim>> &points)
{
while (points.size() > 2)
{
first_difference /= first_difference.norm();
Tensor<1, spacedim> second_difference = points[2] - points[1];
second_difference /= second_difference.norm();
- // If the three points are colinear then remove the middle one.
+ // If the three points are collinear then remove the middle one.
if ((first_difference - second_difference).norm() < 1e-10)
points.erase(points.begin() + 1);
else
gnuplot_flags.curved_inner_cells)
{
// Save the points on each face to a vector and then try
- // to remove colinear points that won't show up in the
+ // to remove collinear points that won't show up in the
// generated plot.
std::vector<Point<spacedim>> line_points;
// compute offset of quadrature points within set of
line_points.push_back(
mapping->transform_unit_to_real_cell(
cell, q_projector.point(offset + i)));
- internal::remove_colinear_points(line_points);
+ internal::remove_collinear_points(line_points);
for (const Point<spacedim> &point : line_points)
out << point << ' ' << cell->level() << ' '
gnuplot_flags.curved_inner_cells)
{
// Save the points on each face to a vector and
- // then try to remove colinear points that won't
+ // then try to remove collinear points that won't
// show up in the generated plot.
std::vector<Point<spacedim>> line_points;
// transform_real_to_unit_cell could be replaced
cell,
(1 - boundary_points[i][0]) * u0 +
boundary_points[i][0] * u1));
- internal::remove_colinear_points(line_points);
+ internal::remove_collinear_points(line_points);
for (const Point<spacedim> &point : line_points)
out << point << ' ' << cell->level() << ' '
<< static_cast<unsigned int>(