diff options
author | eschnett <eschnett@0337457d-221f-4ee6-a5f0-14255d5370d8> | 2012-06-18 01:45:48 +0000 |
---|---|---|
committer | eschnett <eschnett@0337457d-221f-4ee6-a5f0-14255d5370d8> | 2012-06-18 01:45:48 +0000 |
commit | 13008424c6f9dd16a624e072c358557e71f6a225 (patch) | |
tree | 57d054b68fe7d530e7bd303adcd83439c390a3c8 /doc | |
parent | e034ea5620c39861c722849d666ff7e97992b3f3 (diff) |
Provide aliased function GetBoundarySizesAndTypes that describes which
faces have what size and what type.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CoordBase/trunk@53 0337457d-221f-4ee6-a5f0-14255d5370d8
Diffstat (limited to 'doc')
-rw-r--r-- | doc/documentation.tex | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/documentation.tex b/doc/documentation.tex index 1f27685..020e6c3 100644 --- a/doc/documentation.tex +++ b/doc/documentation.tex @@ -603,6 +603,33 @@ periodicity, staggered boundary & no & yes & 0 For other boundary conditions such as Dirichlet or Robin, one can choose these parameters freely. +\section{Querying about boundary points} +\label{CactusBase:CoordBase:boundary-query} + +When iterating over grid points, one usually needs to know about the +boundary sizes and boundary types present. One convenient way is +provided by the aliased function \texttt{GetBoundarySizesAndTypes}: +\begin{verbatim} +CCTK_INT FUNCTION GetBoundarySizesAndTypes + (CCTK_POINTER_TO_CONST IN cctkGH, + CCTK_INT IN size, + CCTK_INT OUT ARRAY bndsize, + CCTK_INT OUT ARRAY is_ghostbnd, + CCTK_INT OUT ARRAY is_symbnd, + CCTK_INT OUT ARRAY is_physbnd) +\end{verbatim} +The input argument \texttt{size} describes the size of the four output +arrays as allocated by the caller, and should be \texttt{2*cctk\_dim}. +The output of this routine describes, for each of the faces of the +domain: +\begin{description} +\item[\texttt{bndsize}] The number of boundary points +\item[\texttt{is\_ghostbnd}] Whether this face is a ghost + (inter-process) boundary +\item[\texttt{is\_symbnd}] Whether this face is a symmetry boundary +\item[\texttt{is\_physbnd}] Whether this face is a physical boundary +\end{description} + \section{Driver Issues} When using the CoordBase domain and boundary parameters, the driver |