pub fn regular_sphere<T: RealScalar + Equivalence, C: Communicator>(
refinement_level: u32,
degree: usize,
comm: &C,
) -> ParallelGrid<'_, C, SingleElementGrid<T, CiarletElement<T>>>
Expand description
Create a regular sphere
A regular sphere is created by starting with a regular octahedron. The shape is then refined refinement_level
times.
Each time the grid is refined, each triangle is split into four triangles (by adding lines connecting the midpoints of
each edge). The new points are then scaled so that they are a distance of 1 from the origin.