Skip to content

Commit

Permalink
Fixed typo, misleading documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcarlin committed Nov 3, 2023
1 parent 8e92e22 commit 76d7de4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/p4est_geometry.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ p4est_geometry_new_sphere2d (p4est_connectivity_t * conn, double R)
builtin = P4EST_ALLOC_ZERO (p4est_geometry_builtin_t, 1);

sphere2d = &builtin->p.sphere2d;
sphere2d->type = P4EST_GEOMETRY_BUILTIN_DISK2D;
sphere2d->type = P4EST_GEOMETRY_BUILTIN_SPHERE2D;
sphere2d->R = R;

builtin->geom.name = "p4est_sphere2d";
Expand Down
7 changes: 4 additions & 3 deletions src/p4est_geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ typedef void (*p4est_geometry_destroy_t) (p4est_geometry_t * geom);
/** Encapsulates a custom transformation from tree-local coordinates to
* user defined physical space.
*
* \warning Used in \ref p4est_vtk.h to write global-coordinate meshes.
* In this case *user is assumed to point to a \ref p4est_connectivity.
* In general it can be used however the user likes.
* Used in \ref p4est_vtk.h to write global-coordinate meshes.
*
* Some internal p4est functions assume that *user points to a
* \ref p4est_connectivity. However, in general it can be used as the user wishes.
*
* This structure can be filled or allocated by the user.
* p4est will never change its contents.
Expand Down

0 comments on commit 76d7de4

Please sign in to comment.