hypre/sstruct_mv/sstruct_stencil.h

52 lines
2.0 KiB
C

/*BHEADER**********************************************************************
* (c) 2000 The Regents of the University of California
*
* See the file COPYRIGHT_and_DISCLAIMER for a complete copyright
* notice, contact person, and disclaimer.
*
* $Revision$
*********************************************************************EHEADER*/
/******************************************************************************
*
* Header info for hypre_SStructStencil data structures
*
*****************************************************************************/
#ifndef hypre_SSTRUCT_STENCIL_HEADER
#define hypre_SSTRUCT_STENCIL_HEADER
/*--------------------------------------------------------------------------
* hypre_SStructStencil
*--------------------------------------------------------------------------*/
typedef struct hypre_SStructStencil_struct
{
hypre_StructStencil *sstencil;
int *vars;
int ref_count;
} hypre_SStructStencil;
/*--------------------------------------------------------------------------
* Accessor functions for the hypre_SStructStencil structure
*--------------------------------------------------------------------------*/
#define hypre_SStructStencilSStencil(stencil) ((stencil) -> sstencil)
#define hypre_SStructStencilVars(stencil) ((stencil) -> vars)
#define hypre_SStructStencilVar(stencil, i) ((stencil) -> vars[i])
#define hypre_SStructStencilRefCount(stencil) ((stencil) -> ref_count)
#define hypre_SStructStencilShape(stencil) \
hypre_StructStencilShape( hypre_SStructStencilSStencil(stencil) )
#define hypre_SStructStencilSize(stencil) \
hypre_StructStencilSize( hypre_SStructStencilSStencil(stencil) )
#define hypre_SStructStencilMaxOffset(stencil) \
hypre_StructStencilMaxOffset( hypre_SStructStencilSStencil(stencil) )
#define hypre_SStructStencilNDim(stencil) \
hypre_StructStencilDim( hypre_SStructStencilSStencil(stencil) )
#define hypre_SStructStencilEntry(stencil, i) \
hypre_StructStencilElement( hypre_SStructStencilSStencil(stencil), i )
#endif