diff options
-rw-r--r-- | doc/documention.tex | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/doc/documention.tex b/doc/documention.tex index 34a1619..50b517b 100644 --- a/doc/documention.tex +++ b/doc/documention.tex @@ -18,8 +18,9 @@ decomposition of the grid. The routines are callable from C or Fortran. Currently these are only available for 3D. The boundary conditions available are \begin{itemize} -\item Constant -\item Flat (copying) +\item Scalar +\item Flat +\item Copy (static) \item Radiation \end{itemize} @@ -33,30 +34,30 @@ For example, a stencil size of two in each direction means that the boundary points, and also the points one in from the boundary must be calculated. -\subsection{Constant Boundary Condition} +\subsection{Scalar Boundary Condition} -A constant boundary condition means that the value of the given -field or fields at the boundary is set to a given number, for -example zero. The routines are called {\tt ConstantBCVar} and {\tt -ConstantBCGroup}, which +A scalar boundary condition means that the value of the given +field or fields at the boundary is set to a given scalar value, for +example zero. The routines are called {\tt ScalarBCVar} and {\tt +ScalarBCGroup}, which from C are given by: \begin{verbatim} -int ierr = ConstantBCVar(cGH *cctkGH, CCTK_REAL var0, int *stencil_size, char *variable_name) -int ierr = ConstantBCGroup(cGH *cctkGH, CCTK_REAL var0, int *stencil_size, char *group_name) +int ierr = ScalarBCVar(cGH *cctkGH, CCTK_REAL var0, int *stencil_size, char *variable_name) +int ierr = ScalarBCGroup(cGH *cctkGH, CCTK_REAL var0, int *stencil_size, char *group_name) \end{verbatim} and from Fortran \begin{verbatim} -call ConstantBCVar(ierr, cctkGH, var0, stencil_size, variable_name) +call ScalarBCVar(ierr, cctkGH, var0, stencil_size, variable_name) integer ierr CCTK_POINTER cctkGH CCTK_REAL var0 integer stencil_size(3) character*(*) variable_name -call ConstantBCGroup(ierr, cctkGH, var0, stencil_size, group_name) +call ScalarBCGroup(ierr, cctkGH, var0, stencil_size, group_name) integer ierr CCTK_POINTER cctkGH CCTK_REAL var0 @@ -78,7 +79,7 @@ Where \subsection{Flat Boundary Condition} -A flat (or copying) boundary condition means that the value of the given +A flat boundary condition means that the value of the given field or fields at the boundary is copied from the value on grid point in, in any direction. For example, for a stencil width of one, the boundary value of phi {\tt phi(nx,j,k)}, on the positive x-boundary will |