Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcarlin committed Oct 15, 2023
1 parent 3936c28 commit 0de9313
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/p4est_geometry.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ p4est_geometry_destroy (p4est_geometry_t * geom)

/**
* Geometric coordinate transformation for default geometry created with
* \ref p4est_geometry_new_connectivity.
* \ref p4est_geometry_new_connectivity. May also be used for user
* convenience to build custom geometric coordinate transforms. See for
* example \ref p4est_geometry_sphere2d_X or \ref p4est_geometry_disk2d_X.
*
* Define the geometric transformation from logical space (where AMR
* is performed) to the physical space.
Expand All @@ -119,6 +121,9 @@ p4est_geometry_destroy (p4est_geometry_t * geom)
* \param[in] abc coordinates in AMR space : [0,1]^3
* \param[out] xyz cartesian coordinates in physical space after geometry
*
* \warning The associated geometry is assumed to have a connectivity
* as its *user field, and this connectivity is assumed to have vertex
* information in its *tree_to_vertex field.
*/
static void
p4est_geometry_connectivity_X (p4est_geometry_t * geom,
Expand Down
9 changes: 8 additions & 1 deletion src/p4est_geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ typedef void (*p4est_geometry_X_t) (p4est_geometry_t * geom,
*/
typedef void (*p4est_geometry_destroy_t) (p4est_geometry_t * geom);

/** This structure can be filled or allocated by the user.
/** Encapsulates a custom transformation from AMR space to
* user defined physical space.
*
* Used in \ref p4est_vtk.h to write vtk files for visualization.
* In this case *user is assumed to point to a \ref p4est_connectivity.
* In general it can be used however the user likes.
*
* This structure can be filled or allocated by the user.
* p4est will never change its contents.
*/
struct p4est_geometry
Expand Down

0 comments on commit 0de9313

Please sign in to comment.