/[escript]/trunk/paso/src/IndexList.h
ViewVC logotype

Contents of /trunk/paso/src/IndexList.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3283 - (show annotations)
Mon Oct 18 22:39:28 2010 UTC (9 years ago) by gross
File MIME type: text/plain
File size: 1728 byte(s)
AMG reengineered, BUG is Smoother fixed.


1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14
15 /**************************************************************/
16
17 /* Paso: pattern */
18
19 /**************************************************************/
20
21 /* Author: Lutz Gross, l.gross@uq.edu.au */
22
23 /**************************************************************/
24
25 #ifndef INC_PASO_INDEX_LIST
26 #define INC_PASO_INDEX_LIST
27
28 #include "Common.h"
29
30 /**************************************************************/
31
32 #define INDEXLIST_LENGTH 85
33
34 typedef struct Paso_IndexList {
35 index_t index[INDEXLIST_LENGTH];
36 dim_t n;
37 struct Paso_IndexList *extension;
38 } Paso_IndexList;
39
40 typedef struct Paso_IndexListArray {
41 dim_t n;
42 Paso_IndexList* index_list;
43 } Paso_IndexListArray;
44
45 PASO_DLL_API
46 void Paso_IndexList_insertIndex(Paso_IndexList*, index_t);
47
48 PASO_DLL_API
49 void Paso_IndexList_toArray(Paso_IndexList*, index_t*, index_t, index_t, index_t);
50
51 PASO_DLL_API
52 dim_t Paso_IndexList_count(Paso_IndexList*, index_t, index_t);
53
54 PASO_DLL_API
55 void Paso_IndexList_free(Paso_IndexList*);
56
57 PASO_DLL_API
58 Paso_IndexListArray* Paso_IndexListArray_alloc(const dim_t n);
59
60 PASO_DLL_API
61 void Paso_IndexListArray_free(Paso_IndexListArray* in);
62
63 #define Paso_IndexListArray_insertIndex(__a__,i,j) Paso_IndexList_insertIndex(&((__a__)->index_list[i]),j);
64
65 #endif /* #ifndef INC_PASO_INDEX_LIST */

  ViewVC Help
Powered by ViewVC 1.1.26