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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4492 - (show annotations)
Tue Jul 2 01:44:11 2013 UTC (5 years, 9 months ago) by caltinay
File MIME type: text/plain
File size: 1737 byte(s)
Finley changes that were held back while in release mode - moved more stuff
into finley namespace.

1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2013 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development since 2012 by School of Earth Sciences
13 *
14 *****************************************************************************/
15
16
17 /****************************************************************************
18
19 Finley: Converting an element list into a matrix shape
20
21 *****************************************************************************/
22
23 #ifndef __FINLEY_INDEXLIST_H__
24 #define __FINLEY_INDEXLIST_H__
25
26 #include "Finley.h"
27
28 #include <list>
29
30 struct Paso_Pattern;
31
32 // helpers to build system matrix
33
34 namespace finley {
35
36 class ElementFile;
37
38 typedef std::list<int> IndexList;
39
40 void IndexList_insertIndex(IndexList&, int);
41 void IndexList_toArray(const IndexList&, int*, int, int, int);
42 int IndexList_count(const IndexList&, int, int);
43
44 Paso_Pattern* IndexList_createPattern(int n0, int n,
45 const IndexList* index_list, int range_min, int range_max,
46 int index_offset);
47
48 void IndexList_insertElements(IndexList* index_list, ElementFile* elements,
49 bool reduce_row_order, const int* row_map,
50 bool reduce_col_order, const int* col_map);
51
52 void IndexList_insertElementsWithRowRangeNoMainDiagonal(IndexList* index_list,
53 int firstRow, int lastRow, ElementFile* elements, int* row_map,
54 int* col_map);
55
56 } // namespace finley
57
58 #endif // __FINLEY_INDEXLIST_H__
59

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26