| 1 | /*BHEADER**********************************************************************
|
|---|
| 2 | * Copyright (c) 2008, Lawrence Livermore National Security, LLC.
|
|---|
| 3 | * Produced at the Lawrence Livermore National Laboratory.
|
|---|
| 4 | * This file is part of HYPRE. See file COPYRIGHT for details.
|
|---|
| 5 | *
|
|---|
| 6 | * HYPRE is free software; you can redistribute it and/or modify it under the
|
|---|
| 7 | * terms of the GNU Lesser General Public License (as published by the Free
|
|---|
| 8 | * Software Foundation) version 2.1 dated February 1999.
|
|---|
| 9 | *
|
|---|
| 10 | * $Revision: 2.4 $
|
|---|
| 11 | ***********************************************************************EHEADER*/
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | /******************************************************************************
|
|---|
| 16 | *
|
|---|
| 17 | * Header info for hypre_SStructStencil data structures
|
|---|
| 18 | *
|
|---|
| 19 | *****************************************************************************/
|
|---|
| 20 |
|
|---|
| 21 | #ifndef hypre_SSTRUCT_STENCIL_HEADER
|
|---|
| 22 | #define hypre_SSTRUCT_STENCIL_HEADER
|
|---|
| 23 |
|
|---|
| 24 | /*--------------------------------------------------------------------------
|
|---|
| 25 | * hypre_SStructStencil
|
|---|
| 26 | *--------------------------------------------------------------------------*/
|
|---|
| 27 |
|
|---|
| 28 | typedef struct hypre_SStructStencil_struct
|
|---|
| 29 | {
|
|---|
| 30 | hypre_StructStencil *sstencil;
|
|---|
| 31 | int *vars;
|
|---|
| 32 |
|
|---|
| 33 | int ref_count;
|
|---|
| 34 |
|
|---|
| 35 | } hypre_SStructStencil;
|
|---|
| 36 |
|
|---|
| 37 | /*--------------------------------------------------------------------------
|
|---|
| 38 | * Accessor functions for the hypre_SStructStencil structure
|
|---|
| 39 | *--------------------------------------------------------------------------*/
|
|---|
| 40 |
|
|---|
| 41 | #define hypre_SStructStencilSStencil(stencil) ((stencil) -> sstencil)
|
|---|
| 42 | #define hypre_SStructStencilVars(stencil) ((stencil) -> vars)
|
|---|
| 43 | #define hypre_SStructStencilVar(stencil, i) ((stencil) -> vars[i])
|
|---|
| 44 | #define hypre_SStructStencilRefCount(stencil) ((stencil) -> ref_count)
|
|---|
| 45 |
|
|---|
| 46 | #define hypre_SStructStencilShape(stencil) \
|
|---|
| 47 | hypre_StructStencilShape( hypre_SStructStencilSStencil(stencil) )
|
|---|
| 48 | #define hypre_SStructStencilSize(stencil) \
|
|---|
| 49 | hypre_StructStencilSize( hypre_SStructStencilSStencil(stencil) )
|
|---|
| 50 | #define hypre_SStructStencilMaxOffset(stencil) \
|
|---|
| 51 | hypre_StructStencilMaxOffset( hypre_SStructStencilSStencil(stencil) )
|
|---|
| 52 | #define hypre_SStructStencilNDim(stencil) \
|
|---|
| 53 | hypre_StructStencilDim( hypre_SStructStencilSStencil(stencil) )
|
|---|
| 54 | #define hypre_SStructStencilEntry(stencil, i) \
|
|---|
| 55 | hypre_StructStencilElement( hypre_SStructStencilSStencil(stencil), i )
|
|---|
| 56 |
|
|---|
| 57 | #endif
|
|---|