mid_point += quad.weight(i)*quad.point(i);
}
// Project the mid_pont back to the right location
- Point<spacedim> R = mid_point-center;
+ Tensor<1,spacedim> R = mid_point-center;
// Scale it to have radius rho_average
R *= rho_average/R.norm();
// And return it.
Point<spacedim>
SphericalManifold<dim,spacedim>::pull_back(const Point<spacedim> &space_point) const
{
- const Point<spacedim> R = space_point-center;
+ const Tensor<1,spacedim> R = space_point-center;
const double rho = R.norm();
Point<spacedim> p;
return middle;
else
- return (vector_from_axis / vector_from_axis.norm() * radius +
- ((middle-point_on_axis) * direction) * direction +
- point_on_axis);
+ return Point<spacedim>((vector_from_axis / vector_from_axis.norm() * radius +
+ ((middle-point_on_axis) * direction) * direction +
+ point_on_axis));
}