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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4657 - (show annotations)
Thu Feb 6 06:12:20 2014 UTC (6 years, 5 months ago) by jfenwick
File MIME type: text/plain
File size: 1805 byte(s)
I changed some files.
Updated copyright notices, added GeoComp.



1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 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 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17
18 /****************************************************************************
19
20 Finley: Converting an element list into a matrix shape
21
22 *****************************************************************************/
23
24 #ifndef __FINLEY_INDEXLIST_H__
25 #define __FINLEY_INDEXLIST_H__
26
27 #include "Finley.h"
28
29 #include <list>
30
31 struct Paso_Pattern;
32
33 // helpers to build system matrix
34
35 namespace finley {
36
37 class ElementFile;
38
39 typedef std::list<int> IndexList;
40
41 void IndexList_insertIndex(IndexList&, int);
42 void IndexList_toArray(const IndexList&, int*, int, int, int);
43 int IndexList_count(const IndexList&, int, int);
44
45 Paso_Pattern* IndexList_createPattern(int n0, int n,
46 const IndexList* index_list, int range_min, int range_max,
47 int index_offset);
48
49 void IndexList_insertElements(IndexList* index_list, ElementFile* elements,
50 bool reduce_row_order, const int* row_map,
51 bool reduce_col_order, const int* col_map);
52
53 void IndexList_insertElementsWithRowRangeNoMainDiagonal(IndexList* index_list,
54 int firstRow, int lastRow, ElementFile* elements, int* row_map,
55 int* col_map);
56
57 } // namespace finley
58
59 #endif // __FINLEY_INDEXLIST_H__
60

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26