| 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 | *
|
|---|
| 18 | * Header info for Auxiliary Parallel Vector data structures
|
|---|
| 19 | *
|
|---|
| 20 | * Note: this vector currently uses 0-based indexing.
|
|---|
| 21 | *
|
|---|
| 22 | *****************************************************************************/
|
|---|
| 23 |
|
|---|
| 24 | #ifndef hypre_AUX_PAR_VECTOR_HEADER
|
|---|
| 25 | #define hypre_AUX_PAR_VECTOR_HEADER
|
|---|
| 26 |
|
|---|
| 27 | /*--------------------------------------------------------------------------
|
|---|
| 28 | * Auxiliary Parallel Vector
|
|---|
| 29 | *--------------------------------------------------------------------------*/
|
|---|
| 30 |
|
|---|
| 31 | typedef struct
|
|---|
| 32 | {
|
|---|
| 33 | int max_off_proc_elmts; /* length of off processor stash for
|
|---|
| 34 | SetValues and AddToValues*/
|
|---|
| 35 | int current_num_elmts; /* current no. of elements stored in stash */
|
|---|
| 36 | HYPRE_BigInt *off_proc_i; /* contains column indices */
|
|---|
| 37 | double *off_proc_data; /* contains corresponding data */
|
|---|
| 38 | } hypre_AuxParVector;
|
|---|
| 39 |
|
|---|
| 40 | /*--------------------------------------------------------------------------
|
|---|
| 41 | * Accessor functions for the Parallel Vector structure
|
|---|
| 42 | *--------------------------------------------------------------------------*/
|
|---|
| 43 |
|
|---|
| 44 | #define hypre_AuxParVectorMaxOffProcElmts(matrix) ((matrix) -> max_off_proc_elmts)
|
|---|
| 45 | #define hypre_AuxParVectorCurrentNumElmts(matrix) ((matrix) -> current_num_elmts)
|
|---|
| 46 | #define hypre_AuxParVectorOffProcI(matrix) ((matrix) -> off_proc_i)
|
|---|
| 47 | #define hypre_AuxParVectorOffProcData(matrix) ((matrix) -> off_proc_data)
|
|---|
| 48 |
|
|---|
| 49 | #endif
|
|---|