source: CIVL/examples/mpi-omp/AMG2013/utilities/amg_linklist.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: 1.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 * Header file link lists
17 *
18 *****************************************************************************/
19
20#ifndef HYPRE_LINKLIST_HEADER
21#define HYPRE_LINKLIST_HEADER
22
23#include <stdlib.h>
24#include <stdio.h>
25#include <string.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#define LIST_HEAD -1
32#define LIST_TAIL -2
33
34struct double_linked_list
35{
36 int data;
37 struct double_linked_list *next_elt;
38 struct double_linked_list *prev_elt;
39 int head;
40 int tail;
41};
42
43typedef struct double_linked_list hypre_ListElement;
44typedef hypre_ListElement *hypre_LinkList;
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif
Note: See TracBrowser for help on using the repository browser.