escript  Revision_
dudley/src/IndexList.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2020 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-2017 by Centre for Geoscience Computing (GeoComp)
14 * Development from 2019 by School of Earth and Environmental Sciences
15 **
16 *****************************************************************************/
17 
18 /****************************************************************************/
19 
20 /* Dudley: Converting an element list into a matrix shape */
21 
22 /****************************************************************************/
23 
24 #ifndef __DUDLEY_INDEXLIST_H__
25 #define __DUDLEY_INDEXLIST_H__
26 
27 #include "Dudley.h"
28 
29 #include <escript/IndexList.h>
30 
31 namespace dudley {
32 
33 using escript::IndexList;
34 
35 // helpers to build system matrix
36 
37 class ElementFile;
38 
39 void IndexList_insertElements(IndexList* indexlist, const ElementFile* elements,
40  const index_t* map);
41 
43  index_t firstRow, index_t lastRow,
44  const ElementFile* elements, const index_t* map);
45 
46 } // namespace dudley
47 
48 #endif // __DUDLEY_INDEXLIST_H__
49 
dudley::IndexList_insertElementsWithRowRangeNoMainDiagonal
void IndexList_insertElementsWithRowRangeNoMainDiagonal(IndexList *indexList, index_t firstRow, index_t lastRow, const ElementFile *elements, const index_t *map)
Definition: dudley/src/IndexList.cpp:63
Dudley.h
dudley::IndexList_insertElements
void IndexList_insertElements(IndexList *index_list, const ElementFile *elements, const index_t *map)
Definition: dudley/src/IndexList.cpp:35
dudley
A suite of factory methods for creating 2D and 3D dudley domains.
Definition: dudley/src/Assemble.h:32
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:60
escript::IndexList
Definition: escriptcore/src/IndexList.h:29