source: CIVL/examples/mpi-omp/AMG2013/seq_mv/HYPRE_vector.c

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: 2.3 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 * HYPRE_Vector interface
18 *
19 *****************************************************************************/
20
21#include "headers.h"
22
23/*--------------------------------------------------------------------------
24 * HYPRE_VectorCreate
25 *--------------------------------------------------------------------------*/
26
27HYPRE_Vector
28HYPRE_VectorCreate( int size )
29{
30 return ( (HYPRE_Vector) hypre_SeqVectorCreate(size) );
31}
32
33/*--------------------------------------------------------------------------
34 * HYPRE_VectorDestroy
35 *--------------------------------------------------------------------------*/
36
37int
38HYPRE_VectorDestroy( HYPRE_Vector vector )
39{
40 return ( hypre_SeqVectorDestroy( (hypre_Vector *) vector ) );
41}
42
43/*--------------------------------------------------------------------------
44 * HYPRE_VectorInitialize
45 *--------------------------------------------------------------------------*/
46
47int
48HYPRE_VectorInitialize( HYPRE_Vector vector )
49{
50 return ( hypre_SeqVectorInitialize( (hypre_Vector *) vector ) );
51}
52
53/*--------------------------------------------------------------------------
54 * HYPRE_VectorPrint
55 *--------------------------------------------------------------------------*/
56
57int
58HYPRE_VectorPrint( HYPRE_Vector vector,
59 char *file_name )
60{
61 return ( hypre_SeqVectorPrint( (hypre_Vector *) vector,
62 file_name ) );
63}
64
65/*--------------------------------------------------------------------------
66 * HYPRE_VectorRead
67 *--------------------------------------------------------------------------*/
68
69HYPRE_Vector
70HYPRE_VectorRead( char *file_name )
71{
72 return ( (HYPRE_Vector) hypre_SeqVectorRead( file_name ) );
73}
Note: See TracBrowser for help on using the repository browser.