escript
Revision_
|
00001 00002 /***************************************************************************** 00003 * 00004 * Copyright (c) 2003-2014 by University of Queensland 00005 * http://www.uq.edu.au 00006 * 00007 * Primary Business: Queensland, Australia 00008 * Licensed under the Open Software License version 3.0 00009 * http://www.opensource.org/licenses/osl-3.0.php 00010 * 00011 * Development until 2012 by Earth Systems Science Computational Center (ESSCC) 00012 * Development 2012-2013 by School of Earth Sciences 00013 * Development from 2014 by Centre for Geoscience Computing (GeoComp) 00014 * 00015 *****************************************************************************/ 00016 00017 00018 /**************************************************************************** 00019 00020 Finley: Converting an element list into a matrix shape 00021 00022 *****************************************************************************/ 00023 00024 #ifndef __FINLEY_INDEXLIST_H__ 00025 #define __FINLEY_INDEXLIST_H__ 00026 00027 #include "Finley.h" 00028 00029 #include "esysUtils/IndexList.h" 00030 00031 // helpers to build system matrix 00032 00033 namespace finley { 00034 00035 using esysUtils::IndexListArray; 00036 00037 class ElementFile; 00038 00039 void IndexList_insertElements(IndexListArray& index_list, ElementFile* elements, 00040 bool reduce_row_order, const int* row_map, 00041 bool reduce_col_order, const int* col_map); 00042 00043 void IndexList_insertElementsWithRowRangeNoMainDiagonal( 00044 IndexListArray& index_list, int firstRow, int lastRow, 00045 ElementFile* elements, int* row_map, int* col_map); 00046 00047 } // namespace finley 00048 00049 #endif // __FINLEY_INDEXLIST_H__ 00050