escript  Revision_
finley/src/IndexList.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2016 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
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 <escript/IndexList.h>
30 
31 // helpers to build system matrix
32 
33 namespace finley {
34 
35 using escript::IndexList;
36 
37 class ElementFile;
38 
39 void IndexList_insertElements(IndexList* index_list, ElementFile* elements,
40  bool reduce_row_order, const index_t* row_map,
41  bool reduce_col_order, const index_t* col_map);
42 
44  IndexList* index_list, index_t firstRow, index_t lastRow,
45  ElementFile* elements, index_t* row_map, index_t* col_map);
46 
47 } // namespace finley
48 
49 #endif // __FINLEY_INDEXLIST_H__
50 
A suite of factory methods for creating various finley domains.
Definition: finley/src/Assemble.h:31
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:59
Definition: escriptcore/src/IndexList.h:28
void IndexList_insertElementsWithRowRangeNoMainDiagonal(IndexList *index_list, index_t firstRow, index_t lastRow, ElementFile *elements, index_t *row_map, index_t *col_map)
Definition: finley/src/IndexList.cpp:88
void IndexList_insertElements(IndexList *index_list, ElementFile *elements, bool reduce_row_order, const index_t *row_map, bool reduce_col_order, const index_t *col_map)
Definition: finley/src/IndexList.cpp:35