source: CIVL/examples/mpi-omp/AMG2013/seq_mv/HYPRE_seq_mv.h

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 3.8 KB
Line 
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 file for HYPRE_mv library
18 *
19 *****************************************************************************/
20
21#ifndef HYPRE_SEQ_MV_HEADER
22#define HYPRE_SEQ_MV_HEADER
23
24#include "HYPRE_utilities.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30/*--------------------------------------------------------------------------
31 * Structures
32 *--------------------------------------------------------------------------*/
33
34struct hypre_CSRMatrix_struct;
35typedef struct hypre_CSRMatrix_struct *HYPRE_CSRMatrix;
36struct hypre_MappedMatrix_struct;
37typedef struct hypre_MappedMatrix_struct *HYPRE_MappedMatrix;
38struct hypre_MultiblockMatrix_struct;
39typedef struct hypre_MultiblockMatrix_struct *HYPRE_MultiblockMatrix;
40#ifndef HYPRE_VECTOR_STRUCT
41#define HYPRE_VECTOR_STRUCT
42struct hypre_Vector_struct;
43typedef struct hypre_Vector_struct *HYPRE_Vector;
44#endif
45
46/*--------------------------------------------------------------------------
47 * Prototypes
48 *--------------------------------------------------------------------------*/
49
50/* HYPRE_csr_matrix.c */
51HYPRE_CSRMatrix HYPRE_CSRMatrixCreate( int num_rows , int num_cols , int *row_sizes );
52int HYPRE_CSRMatrixDestroy( HYPRE_CSRMatrix matrix );
53int HYPRE_CSRMatrixInitialize( HYPRE_CSRMatrix matrix );
54HYPRE_CSRMatrix HYPRE_CSRMatrixRead( char *file_name );
55void HYPRE_CSRMatrixPrint( HYPRE_CSRMatrix matrix , char *file_name );
56int HYPRE_CSRMatrixGetNumRows( HYPRE_CSRMatrix matrix , int *num_rows );
57
58/* HYPRE_mapped_matrix.c */
59HYPRE_MappedMatrix HYPRE_MappedMatrixCreate( void );
60int HYPRE_MappedMatrixDestroy( HYPRE_MappedMatrix matrix );
61int HYPRE_MappedMatrixLimitedDestroy( HYPRE_MappedMatrix matrix );
62int HYPRE_MappedMatrixInitialize( HYPRE_MappedMatrix matrix );
63int HYPRE_MappedMatrixAssemble( HYPRE_MappedMatrix matrix );
64void HYPRE_MappedMatrixPrint( HYPRE_MappedMatrix matrix );
65int HYPRE_MappedMatrixGetColIndex( HYPRE_MappedMatrix matrix , int j );
66void *HYPRE_MappedMatrixGetMatrix( HYPRE_MappedMatrix matrix );
67int HYPRE_MappedMatrixSetMatrix( HYPRE_MappedMatrix matrix , void *matrix_data );
68int HYPRE_MappedMatrixSetColMap( HYPRE_MappedMatrix matrix , int (*ColMap )(int ,void *));
69int HYPRE_MappedMatrixSetMapData( HYPRE_MappedMatrix matrix , void *MapData );
70
71/* HYPRE_multiblock_matrix.c */
72HYPRE_MultiblockMatrix HYPRE_MultiblockMatrixCreate( void );
73int HYPRE_MultiblockMatrixDestroy( HYPRE_MultiblockMatrix matrix );
74int HYPRE_MultiblockMatrixLimitedDestroy( HYPRE_MultiblockMatrix matrix );
75int HYPRE_MultiblockMatrixInitialize( HYPRE_MultiblockMatrix matrix );
76int HYPRE_MultiblockMatrixAssemble( HYPRE_MultiblockMatrix matrix );
77void HYPRE_MultiblockMatrixPrint( HYPRE_MultiblockMatrix matrix );
78int HYPRE_MultiblockMatrixSetNumSubmatrices( HYPRE_MultiblockMatrix matrix , int n );
79int HYPRE_MultiblockMatrixSetSubmatrixType( HYPRE_MultiblockMatrix matrix , int j , int type );
80
81/* HYPRE_vector.c */
82HYPRE_Vector HYPRE_VectorCreate( int size );
83int HYPRE_VectorDestroy( HYPRE_Vector vector );
84int HYPRE_VectorInitialize( HYPRE_Vector vector );
85int HYPRE_VectorPrint( HYPRE_Vector vector , char *file_name );
86HYPRE_Vector HYPRE_VectorRead( char *file_name );
87
88#ifdef __cplusplus
89}
90
91#endif
92
93#endif
Note: See TracBrowser for help on using the repository browser.